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