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
{
19 explicit XULTooltipElement(
20 already_AddRefed
<mozilla::dom::NodeInfo
>&& aNodeInfo
)
21 : XULPopupElement(std::move(aNodeInfo
)) {}
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
;
30 virtual ~XULTooltipElement() = default;
33 } // namespace mozilla::dom
35 #endif // XULPopupElement_h