OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_AX_TREE_H_ | 5 #ifndef UI_ACCESSIBILITY_AX_TREE_H_ |
6 #define UI_ACCESSIBILITY_AX_TREE_H_ | 6 #define UI_ACCESSIBILITY_AX_TREE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual void OnBoolAttributeChanged(AXTree* tree, | 76 virtual void OnBoolAttributeChanged(AXTree* tree, |
77 AXNode* node, | 77 AXNode* node, |
78 AXBoolAttribute attr, | 78 AXBoolAttribute attr, |
79 bool new_value) {} | 79 bool new_value) {} |
80 virtual void OnIntListAttributeChanged( | 80 virtual void OnIntListAttributeChanged( |
81 AXTree* tree, | 81 AXTree* tree, |
82 AXNode* node, | 82 AXNode* node, |
83 AXIntListAttribute attr, | 83 AXIntListAttribute attr, |
84 const std::vector<int32_t>& old_value, | 84 const std::vector<int32_t>& old_value, |
85 const std::vector<int32_t>& new_value) {} | 85 const std::vector<int32_t>& new_value) {} |
| 86 virtual void OnStringListAttributeChanged( |
| 87 AXTree* tree, |
| 88 AXNode* node, |
| 89 AXStringListAttribute attr, |
| 90 const std::vector<std::string>& old_value, |
| 91 const std::vector<std::string>& new_value) {} |
86 | 92 |
87 // Called when tree data changes. | 93 // Called when tree data changes. |
88 virtual void OnTreeDataChanged(AXTree* tree, | 94 virtual void OnTreeDataChanged(AXTree* tree, |
89 const ui::AXTreeData& old_data, | 95 const ui::AXTreeData& old_data, |
90 const ui::AXTreeData& new_data) = 0; | 96 const ui::AXTreeData& new_data) = 0; |
91 // Called just before a node is deleted. Its id and data will be valid, | 97 // Called just before a node is deleted. Its id and data will be valid, |
92 // but its links to parents and children are invalid. This is called | 98 // but its links to parents and children are invalid. This is called |
93 // in the middle of an update, the tree may be in an invalid state! | 99 // in the middle of an update, the tree may be in an invalid state! |
94 virtual void OnNodeWillBeDeleted(AXTree* tree, AXNode* node) = 0; | 100 virtual void OnNodeWillBeDeleted(AXTree* tree, AXNode* node) = 0; |
95 | 101 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 AXTreeDelegate* delegate_; | 238 AXTreeDelegate* delegate_; |
233 AXNode* root_; | 239 AXNode* root_; |
234 base::hash_map<int32_t, AXNode*> id_map_; | 240 base::hash_map<int32_t, AXNode*> id_map_; |
235 std::string error_; | 241 std::string error_; |
236 AXTreeData data_; | 242 AXTreeData data_; |
237 }; | 243 }; |
238 | 244 |
239 } // namespace ui | 245 } // namespace ui |
240 | 246 |
241 #endif // UI_ACCESSIBILITY_AX_TREE_H_ | 247 #endif // UI_ACCESSIBILITY_AX_TREE_H_ |
OLD | NEW |