| 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_DELEGATE_H_ | 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ |
| 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ | 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/accessibility/ax_enums.h" | 8 #include "ui/accessibility/ax_enums.h" |
| 9 #include "ui/accessibility/ax_export.h" | 9 #include "ui/accessibility/ax_export.h" |
| 10 #include "ui/gfx/geometry/vector2d.h" | 10 #include "ui/gfx/geometry/vector2d.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // only an immediate child and not the deepest descendant. | 66 // only an immediate child and not the deepest descendant. |
| 67 // | 67 // |
| 68 // This function is mainly used by accessibility debugging software. | 68 // This function is mainly used by accessibility debugging software. |
| 69 // Platforms with touch accessibility use a different asynchronous interface. | 69 // Platforms with touch accessibility use a different asynchronous interface. |
| 70 virtual gfx::NativeViewAccessible HitTestSync(int x, int y) = 0; | 70 virtual gfx::NativeViewAccessible HitTestSync(int x, int y) = 0; |
| 71 | 71 |
| 72 // Return the node within this node's subtree (inclusive) that currently | 72 // Return the node within this node's subtree (inclusive) that currently |
| 73 // has focus. | 73 // has focus. |
| 74 virtual gfx::NativeViewAccessible GetFocus() = 0; | 74 virtual gfx::NativeViewAccessible GetFocus() = 0; |
| 75 | 75 |
| 76 virtual ui::AXPlatformNode* GetFromNodeID(int32_t id) = 0; |
| 77 |
| 76 // | 78 // |
| 77 // Events. | 79 // Events. |
| 78 // | 80 // |
| 79 | 81 |
| 80 // Return the platform-native GUI object that should be used as a target | 82 // Return the platform-native GUI object that should be used as a target |
| 81 // for accessibility events. | 83 // for accessibility events. |
| 82 virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() = 0; | 84 virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() = 0; |
| 83 | 85 |
| 84 // | 86 // |
| 85 // Actions. | 87 // Actions. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 96 // Accessibility objects can have the "hot tracked" state set when | 98 // Accessibility objects can have the "hot tracked" state set when |
| 97 // the mouse is hovering over them, but this makes tests flaky because | 99 // the mouse is hovering over them, but this makes tests flaky because |
| 98 // the test behaves differently when the mouse happens to be over an | 100 // the test behaves differently when the mouse happens to be over an |
| 99 // element. The default value should be falses if not in testing mode. | 101 // element. The default value should be falses if not in testing mode. |
| 100 virtual bool ShouldIgnoreHoveredStateForTesting() = 0; | 102 virtual bool ShouldIgnoreHoveredStateForTesting() = 0; |
| 101 }; | 103 }; |
| 102 | 104 |
| 103 } // namespace ui | 105 } // namespace ui |
| 104 | 106 |
| 105 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ | 107 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ |
| OLD | NEW |