| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 void GetExtents(gint* x, gint* y, gint* width, gint* height, | 38 void GetExtents(gint* x, gint* y, gint* width, gint* height, |
| 39 AtkCoordType coord_type); | 39 AtkCoordType coord_type); |
| 40 void GetPosition(gint* x, gint* y, AtkCoordType coord_type); | 40 void GetPosition(gint* x, gint* y, AtkCoordType coord_type); |
| 41 void GetSize(gint* width, gint* height); | 41 void GetSize(gint* width, gint* height); |
| 42 | 42 |
| 43 void SetExtentsRelativeToAtkCoordinateType( | 43 void SetExtentsRelativeToAtkCoordinateType( |
| 44 gint* x, gint* y, gint* width, gint* height, | 44 gint* x, gint* y, gint* width, gint* height, |
| 45 AtkCoordType coord_type); | 45 AtkCoordType coord_type); |
| 46 | 46 |
| 47 // AXPlatformNode overrides. | 47 // AXPlatformNode overrides. |
| 48 void Destroy() override; | |
| 49 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 48 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 50 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; | 49 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; |
| 51 | 50 |
| 52 // AXPlatformNodeBase overrides. | 51 // AXPlatformNodeBase overrides. |
| 53 void Init(AXPlatformNodeDelegate* delegate) override; | 52 void Init(AXPlatformNodeDelegate* delegate) override; |
| 54 int GetIndexInParent() override; | 53 int GetIndexInParent() override; |
| 55 | 54 |
| 56 private: | 55 private: |
| 57 ~AXPlatformNodeAuraLinux() override; | 56 ~AXPlatformNodeAuraLinux() override; |
| 58 | 57 |
| 59 // We own a reference to this ref-counted object. | 58 // We own a reference to this ref-counted object. |
| 60 AtkObject* atk_object_; | 59 AtkObject* atk_object_; |
| 61 | 60 |
| 62 // The root-level Application object that's the parent of all | 61 // The root-level Application object that's the parent of all |
| 63 // top-level windows. | 62 // top-level windows. |
| 64 static AXPlatformNode* application_; | 63 static AXPlatformNode* application_; |
| 65 | 64 |
| 66 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux); | 65 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux); |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 } // namespace ui | 68 } // namespace ui |
| 70 | 69 |
| 71 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ | 70 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ |
| OLD | NEW |