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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // for accessibility events. | 81 // for accessibility events. |
82 virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() = 0; | 82 virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() = 0; |
83 | 83 |
84 // | 84 // |
85 // Actions. | 85 // Actions. |
86 // | 86 // |
87 | 87 |
88 // Perform an accessibility action, switching on the ui::AXAction | 88 // Perform an accessibility action, switching on the ui::AXAction |
89 // provided in |data|. | 89 // provided in |data|. |
90 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0; | 90 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0; |
| 91 |
| 92 // |
| 93 // Testing. |
| 94 // |
| 95 |
| 96 // Accessibility objects can have the "hot tracked" state set when |
| 97 // 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 |
| 99 // element. The default value should be falses if not in testing mode. |
| 100 virtual bool ShouldIgnoreHoveredStateForTesting() = 0; |
91 }; | 101 }; |
92 | 102 |
93 } // namespace ui | 103 } // namespace ui |
94 | 104 |
95 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ | 105 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ |
OLD | NEW |