tor-browser

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

AccessibleWrap.h (1166B)


      1 /* clang-format off */
      2 /* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      3 /* clang-format on */
      4 /* This Source Code Form is subject to the terms of the Mozilla Public
      5 * License, v. 2.0. If a copy of the MPL was not distributed with this
      6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      7 
      8 /* For documentation of the accessibility architecture,
      9 * see https://firefox-source-docs.mozilla.org/accessible/index.html
     10 */
     11 
     12 #ifndef mozilla_a11y_AccessibleWrap_h_
     13 #define mozilla_a11y_AccessibleWrap_h_
     14 
     15 #include <objc/objc.h>
     16 
     17 #include "nsCOMPtr.h"
     18 #include "LocalAccessible.h"
     19 
     20 namespace mozilla {
     21 namespace a11y {
     22 
     23 class AccessibleWrap : public LocalAccessible {
     24 public:  // construction, destruction
     25  AccessibleWrap(nsIContent* aContent, DocAccessible* aDoc);
     26  virtual ~AccessibleWrap() = default;
     27 
     28  virtual void Shutdown() override;
     29 
     30  /**
     31   * Get the native Obj-C object (MUIAccessible).
     32   */
     33  virtual void GetNativeInterface(void** aOutAccessible) override;
     34 
     35 protected:
     36  id GetNativeObject();
     37 
     38 private:
     39  id mNativeObject;
     40 
     41  bool mNativeInited;
     42 };
     43 
     44 }  // namespace a11y
     45 }  // namespace mozilla
     46 
     47 #endif