| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLATFORM_AX_PLATFORM_NODE_H_ | 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_ |
| 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_ | 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ui/accessibility/ax_enums.h" | 9 #include "ui/accessibility/ax_enums.h" |
| 10 #include "ui/accessibility/ax_export.h" | 10 #include "ui/accessibility/ax_export.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // wrapper object or handle. | 39 // wrapper object or handle. |
| 40 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; | 40 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; |
| 41 | 41 |
| 42 // Fire a platform-specific notification that an event has occurred on | 42 // Fire a platform-specific notification that an event has occurred on |
| 43 // this object. | 43 // this object. |
| 44 virtual void NotifyAccessibilityEvent(ui::AXEvent event_type) = 0; | 44 virtual void NotifyAccessibilityEvent(ui::AXEvent event_type) = 0; |
| 45 | 45 |
| 46 // Return this object's delegate. | 46 // Return this object's delegate. |
| 47 virtual AXPlatformNodeDelegate* GetDelegate() const = 0; | 47 virtual AXPlatformNodeDelegate* GetDelegate() const = 0; |
| 48 | 48 |
| 49 int32_t unique_id() const { return unique_id_; } |
| 50 |
| 49 protected: | 51 protected: |
| 50 AXPlatformNode(); | 52 AXPlatformNode(); |
| 51 virtual ~AXPlatformNode(); | 53 virtual ~AXPlatformNode(); |
| 52 | 54 |
| 53 virtual AXPlatformNode* GetFromUniqueId(int32_t unique_id); | 55 virtual AXPlatformNode* GetFromUniqueId(int32_t unique_id); |
| 54 | 56 |
| 55 int32_t unique_id_; | 57 int32_t unique_id_; |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 } // namespace ui | 60 } // namespace ui |
| 59 | 61 |
| 60 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_ | 62 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_ |
| OLD | NEW |