Bug 1769952 - Fix running raptor on a Win10-64 VM r=sparky
[gecko.git] / dom / xul / XULTooltipElement.h
blob5907fce8351467fa9b82f9a46beabd3262688364
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 virtual nsresult AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
25 const nsAttrValue* aValue,
26 const nsAttrValue* aOldValue,
27 nsIPrincipal* aSubjectPrincipal,
28 bool aNotify) override;
29 virtual nsresult PostHandleEvent(EventChainPostVisitor& aVisitor) override;
31 protected:
32 virtual ~XULTooltipElement() = default;
35 } // namespace mozilla::dom
37 #endif // XULPopupElement_h