tor-browser

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

XULAlertAccessible.h (1122B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 #ifndef mozilla_a11y_XULAlertAccessible_h__
      7 #define mozilla_a11y_XULAlertAccessible_h__
      8 
      9 #include "AccessibleWrap.h"
     10 
     11 namespace mozilla {
     12 namespace a11y {
     13 
     14 /**
     15 * LocalAccessible for supporting XUL alerts.
     16 */
     17 
     18 class XULAlertAccessible : public AccessibleWrap {
     19 public:
     20  XULAlertAccessible(nsIContent* aContent, DocAccessible* aDoc);
     21 
     22  NS_INLINE_DECL_REFCOUNTING_INHERITED(XULAlertAccessible, AccessibleWrap)
     23 
     24  // LocalAccessible
     25  virtual mozilla::a11y::ENameValueFlag DirectName(
     26      nsString& aName) const override;
     27  virtual a11y::role NativeRole() const override;
     28  virtual uint64_t NativeState() const override;
     29 
     30  // Widgets
     31  virtual bool IsWidget() const override;
     32  virtual LocalAccessible* ContainerWidget() const override;
     33 
     34 protected:
     35  ~XULAlertAccessible();
     36 };
     37 
     38 }  // namespace a11y
     39 }  // namespace mozilla
     40 
     41 #endif