RootAccessibleWrap.h (1200B)
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 /* For documentation of the accessibility architecture, 7 * see https://firefox-source-docs.mozilla.org/accessible/index.html 8 */ 9 10 #ifndef mozilla_a11y_RootAccessibleWrap_h__ 11 #define mozilla_a11y_RootAccessibleWrap_h__ 12 13 #include "RootAccessible.h" 14 15 struct CGRect; 16 17 namespace mozilla { 18 19 class PresShell; 20 21 namespace a11y { 22 23 /** 24 * iOS specific functionality for the node at a root of the accessibility 25 * tree: see the RootAccessible superclass for further details. 26 */ 27 class RootAccessibleWrap : public RootAccessible { 28 public: 29 RootAccessibleWrap(dom::Document* aDocument, PresShell* aPresShell); 30 virtual ~RootAccessibleWrap() = default; 31 32 // Lets our native accessible get in touch with the 33 // native cocoa view that is our accessible parent. 34 void GetNativeWidget(void** aOutView); 35 36 CGRect DevPixelsRectToUIKit(const LayoutDeviceIntRect& aRect); 37 }; 38 39 } // namespace a11y 40 } // namespace mozilla 41 42 #endif