tor-browser

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

AccessibleWrap.h (1110B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=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 mozilla_a11y_AccessibleWrap_h_
      8 #define mozilla_a11y_AccessibleWrap_h_
      9 
     10 #include "LocalAccessible.h"
     11 
     12 namespace mozilla {
     13 namespace a11y {
     14 class MsaaAccessible;
     15 
     16 /**
     17 * Windows specific functionality for an accessibility tree node that originated
     18 * in mDoc's content process.
     19 */
     20 class AccessibleWrap : public LocalAccessible {
     21 public:  // construction, destruction
     22  AccessibleWrap(nsIContent* aContent, DocAccessible* aDoc);
     23 
     24  // nsISupports
     25  NS_DECL_ISUPPORTS_INHERITED
     26 
     27 public:
     28  // LocalAccessible
     29  virtual void Shutdown() override;
     30 
     31 public:
     32  MsaaAccessible* GetMsaa();
     33  virtual void GetNativeInterface(void** aOutAccessible) override;
     34 
     35 protected:
     36  virtual ~AccessibleWrap();
     37 
     38  RefPtr<MsaaAccessible> mMsaa;
     39 };
     40 
     41 }  // namespace a11y
     42 }  // namespace mozilla
     43 
     44 #endif