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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // for accessibility events. | 77 // for accessibility events. |
78 virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() = 0; | 78 virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() = 0; |
79 | 79 |
80 // | 80 // |
81 // Actions. | 81 // Actions. |
82 // | 82 // |
83 | 83 |
84 // Perform an accessibility action, switching on the ui::AXAction | 84 // Perform an accessibility action, switching on the ui::AXAction |
85 // provided in |data|. | 85 // provided in |data|. |
86 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0; | 86 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0; |
| 87 |
| 88 // |
| 89 // Testing. |
| 90 // |
| 91 |
| 92 // Accessibility objects can have the "hot tracked" state set when |
| 93 // the mouse is hovering over them, but this makes tests flaky because |
| 94 // the test behaves differently when the mouse happens to be over an |
| 95 // element. The default value should be true if not in testing mode. |
| 96 virtual bool IsHotTrackingOn() = 0; |
87 }; | 97 }; |
88 | 98 |
89 } // namespace ui | 99 } // namespace ui |
90 | 100 |
91 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ | 101 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ |
OLD | NEW |