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) = 0; | 94 virtual void OnTreeDataChanged(AXTree* tree) = 0; |
89 | 95 |
90 // Called just before a node is deleted. Its id and data will be valid, | 96 // Called just before a node is deleted. Its id and data will be valid, |
91 // but its links to parents and children are invalid. This is called | 97 // but its links to parents and children are invalid. This is called |
92 // in the middle of an update, the tree may be in an invalid state! | 98 // in the middle of an update, the tree may be in an invalid state! |
93 virtual void OnNodeWillBeDeleted(AXTree* tree, AXNode* node) = 0; | 99 virtual void OnNodeWillBeDeleted(AXTree* tree, AXNode* node) = 0; |
94 | 100 |
95 // Same as OnNodeWillBeDeleted, but only called once for an entire subtree. | 101 // Same as OnNodeWillBeDeleted, but only called once for an entire subtree. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 AXTreeDelegate* delegate_; | 229 AXTreeDelegate* delegate_; |
224 AXNode* root_; | 230 AXNode* root_; |
225 base::hash_map<int32_t, AXNode*> id_map_; | 231 base::hash_map<int32_t, AXNode*> id_map_; |
226 std::string error_; | 232 std::string error_; |
227 AXTreeData data_; | 233 AXTreeData data_; |
228 }; | 234 }; |
229 | 235 |
230 } // namespace ui | 236 } // namespace ui |
231 | 237 |
232 #endif // UI_ACCESSIBILITY_AX_TREE_H_ | 238 #endif // UI_ACCESSIBILITY_AX_TREE_H_ |
OLD | NEW |