| 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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 AX_EXPORT static void SetApplication(AXPlatformNode* application); | 27 AX_EXPORT static void SetApplication(AXPlatformNode* application); |
| 28 static AXPlatformNode* application() { return application_; } | 28 static AXPlatformNode* application() { return application_; } |
| 29 | 29 |
| 30 // Do static initialization using the given task runner for file operations. | 30 // Do static initialization using the given task runner for file operations. |
| 31 AX_EXPORT static void StaticInitialize( | 31 AX_EXPORT static void StaticInitialize( |
| 32 scoped_refptr<base::TaskRunner> init_task_runner); | 32 scoped_refptr<base::TaskRunner> init_task_runner); |
| 33 | 33 |
| 34 AtkRole GetAtkRole(); | 34 AtkRole GetAtkRole(); |
| 35 void GetAtkState(AtkStateSet* state_set); | 35 void GetAtkState(AtkStateSet* state_set); |
| 36 void GetAtkRelations(AtkRelationSet* atk_relation_set); | 36 void GetAtkRelations(AtkRelationSet* atk_relation_set); |
| 37 void GetExtents(gint* x, gint* y, gint* width, gint* height, |
| 38 AtkCoordType coord_type); |
| 39 void GetPosition(gint* x, gint* y, AtkCoordType coord_type); |
| 40 void GetSize(gint* width, gint* height); |
| 37 | 41 |
| 38 // AXPlatformNode overrides. | 42 // AXPlatformNode overrides. |
| 39 void Destroy() override; | 43 void Destroy() override; |
| 40 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 44 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 41 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; | 45 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; |
| 42 | 46 |
| 43 // AXPlatformNodeBase overrides. | 47 // AXPlatformNodeBase overrides. |
| 44 void Init(AXPlatformNodeDelegate* delegate) override; | 48 void Init(AXPlatformNodeDelegate* delegate) override; |
| 45 int GetIndexInParent() override; | 49 int GetIndexInParent() override; |
| 46 | 50 |
| 47 private: | 51 private: |
| 48 ~AXPlatformNodeAuraLinux() override; | 52 ~AXPlatformNodeAuraLinux() override; |
| 49 | 53 |
| 50 // We own a reference to this ref-counted object. | 54 // We own a reference to this ref-counted object. |
| 51 AtkObject* atk_object_; | 55 AtkObject* atk_object_; |
| 52 | 56 |
| 53 // The root-level Application object that's the parent of all | 57 // The root-level Application object that's the parent of all |
| 54 // top-level windows. | 58 // top-level windows. |
| 55 static AXPlatformNode* application_; | 59 static AXPlatformNode* application_; |
| 56 | 60 |
| 57 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux); | 61 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux); |
| 58 }; | 62 }; |
| 59 | 63 |
| 60 } // namespace ui | 64 } // namespace ui |
| 61 | 65 |
| 62 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ | 66 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ |
| OLD | NEW |