| 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_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_ | 5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_ |
| 6 #define UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_ | 6 #define UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 virtual ~AXAuraObjWrapper() {} | 28 virtual ~AXAuraObjWrapper() {} |
| 29 | 29 |
| 30 // Traversal and serialization. | 30 // Traversal and serialization. |
| 31 virtual AXAuraObjWrapper* GetParent() = 0; | 31 virtual AXAuraObjWrapper* GetParent() = 0; |
| 32 virtual void GetChildren( | 32 virtual void GetChildren( |
| 33 std::vector<AXAuraObjWrapper*>* out_children) = 0; | 33 std::vector<AXAuraObjWrapper*>* out_children) = 0; |
| 34 virtual void Serialize(ui::AXNodeData* out_node_data) = 0; | 34 virtual void Serialize(ui::AXNodeData* out_node_data) = 0; |
| 35 virtual int32_t GetID() = 0; | 35 virtual int32_t GetID() = 0; |
| 36 | 36 |
| 37 // Actions. | 37 // Actions. |
| 38 virtual void DoDefault() {} | |
| 39 virtual void Focus() {} | |
| 40 virtual void MakeVisible() {} | |
| 41 virtual void SetSelection(int32_t start, int32_t end) {} | |
| 42 virtual void ShowContextMenu() {} | |
| 43 virtual bool HandleAccessibleAction(const ui::AXActionData& action); | 38 virtual bool HandleAccessibleAction(const ui::AXActionData& action); |
| 44 }; | 39 }; |
| 45 | 40 |
| 46 } // namespace views | 41 } // namespace views |
| 47 | 42 |
| 48 #endif // UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_ | 43 #endif // UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_ |
| OLD | NEW |