no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / dom / xul / XULTooltipElement.h
blob1f39ad7f676dba20700ce1d45fc9fd069b833d43
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef XULTooltipElement_h__
8 #define XULTooltipElement_h__
10 #include "XULPopupElement.h"
12 namespace mozilla::dom {
14 nsXULElement* NS_NewXULTooltipElement(
15 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
17 class XULTooltipElement final : public XULPopupElement {
18 public:
19 explicit XULTooltipElement(
20 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
21 : XULPopupElement(std::move(aNodeInfo)) {}
22 nsresult Init();
24 void AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
25 const nsAttrValue* aValue, const nsAttrValue* aOldValue,
26 nsIPrincipal* aSubjectPrincipal, bool aNotify) override;
27 nsresult PostHandleEvent(EventChainPostVisitor& aVisitor) override;
29 protected:
30 virtual ~XULTooltipElement() = default;
33 } // namespace mozilla::dom
35 #endif // XULPopupElement_h