Chromium Code Reviews| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 // | 74 // |
| 75 | 75 |
| 76 // Return the platform-native GUI object that should be used as a target | 76 // Return the platform-native GUI object that should be used as a target |
| 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 // Calls one of the methods below to perform an accessibility action, | 84 // Calls one of the methods below to perform an accessibility action, |
|
tapted
2017/04/03 23:28:22
nit: comment out of date (no more "methods below"
dmazzoni
2017/04/03 23:55:16
Done.
| |
| 85 // switching on the ui::AXAction provided in |data|. | 85 // switching on the ui::AXAction provided in |data|. |
| 86 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0; | 86 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0; |
| 87 | |
| 88 // Perform the default action, e.g. click a button, follow a link, or | |
| 89 // toggle a checkbox. | |
| 90 virtual void DoDefaultAction() = 0; | |
|
tapted
2017/04/03 23:28:23
test_ax_node_wrapper.h still has one of these by t
dmazzoni
2017/04/03 23:55:16
Done.
| |
| 91 }; | 87 }; |
| 92 | 88 |
| 93 } // namespace ui | 89 } // namespace ui |
| 94 | 90 |
| 95 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ | 91 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ |
| OLD | NEW |