tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

XULTooltipElement.h (1167B)


      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/. */
      6 
      7 #ifndef XULTooltipElement_h__
      8 #define XULTooltipElement_h__
      9 
     10 #include "XULPopupElement.h"
     11 
     12 namespace mozilla::dom {
     13 
     14 nsXULElement* NS_NewXULTooltipElement(
     15    already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
     16 
     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();
     23 
     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;
     28 
     29 protected:
     30  virtual ~XULTooltipElement() = default;
     31 };
     32 
     33 }  // namespace mozilla::dom
     34 
     35 #endif  // XULPopupElement_h