OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ |
| 6 #define UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ |
| 7 |
| 8 #include <atk/atk.h> |
| 9 |
| 10 #include "ui/accessibility/ax_export.h" |
| 11 #include "ui/accessibility/platform/ax_platform_node_base.h" |
| 12 |
| 13 namespace ui { |
| 14 |
| 15 // Implements accessibility on Aura Linux using ATK. |
| 16 class AXPlatformNodeAuraLinux : public AXPlatformNodeBase { |
| 17 public: |
| 18 AXPlatformNodeAuraLinux(); |
| 19 |
| 20 // Set or get the root-level Application object that's the parent of all |
| 21 // top-level windows. |
| 22 AX_EXPORT static void SetApplication(AXPlatformNode* application); |
| 23 static AXPlatformNode* application() { return application_; } |
| 24 |
| 25 AtkRole GetAtkRole(); |
| 26 |
| 27 // AXPlatformNode overrides. |
| 28 void Destroy() override; |
| 29 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 30 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; |
| 31 |
| 32 // AXPlatformNodeBase overrides. |
| 33 void Init(AXPlatformNodeDelegate* delegate) override; |
| 34 int GetIndexInParent() override; |
| 35 |
| 36 private: |
| 37 ~AXPlatformNodeAuraLinux() override; |
| 38 |
| 39 // We own a reference to this ref-counted object. |
| 40 AtkObject* atk_object_; |
| 41 |
| 42 // The root-level Application object that's the parent of all |
| 43 // top-level windows. |
| 44 static AXPlatformNode* application_; |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux); |
| 47 }; |
| 48 |
| 49 } // namespace ui |
| 50 |
| 51 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ |
OLD | NEW |