Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: ui/accessibility/ax_tree.h

Issue 2873373005: Add custom action support (Closed)
Patch Set: Migrate to DataObjectBuilder. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/accessibility/ax_node_data.cc ('k') | ui/accessibility/ax_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/accessibility/ax_node_data.cc ('k') | ui/accessibility/ax_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698