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

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

Issue 1978373002: Correctly ignore AXTree event creation change state for reparented nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add subtree and node reparented. Created 4 years, 7 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // the middle of an update, don't walk the parents and children now. 63 // the middle of an update, don't walk the parents and children now.
64 virtual void OnNodeCreated(AXTree* tree, AXNode* node) = 0; 64 virtual void OnNodeCreated(AXTree* tree, AXNode* node) = 0;
65 65
66 // Called when a node changes its data or children. The tree may be in 66 // Called when a node changes its data or children. The tree may be in
67 // the middle of an update, don't walk the parents and children now. 67 // the middle of an update, don't walk the parents and children now.
68 virtual void OnNodeChanged(AXTree* tree, AXNode* node) = 0; 68 virtual void OnNodeChanged(AXTree* tree, AXNode* node) = 0;
69 69
70 enum ChangeType { 70 enum ChangeType {
71 NODE_CREATED, 71 NODE_CREATED,
72 SUBTREE_CREATED, 72 SUBTREE_CREATED,
73 NODE_CHANGED 73 NODE_CHANGED,
74 NODE_REPARENTED,
75 SUBTREE_REPARENTED
74 }; 76 };
75 77
76 struct Change { 78 struct Change {
77 Change(AXNode* node, ChangeType type) { 79 Change(AXNode* node, ChangeType type) {
78 this->node = node; 80 this->node = node;
79 this->type = type; 81 this->type = type;
80 } 82 }
81 AXNode* node; 83 AXNode* node;
82 ChangeType type; 84 ChangeType type;
83 }; 85 };
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 AXTreeDelegate* delegate_; 168 AXTreeDelegate* delegate_;
167 AXNode* root_; 169 AXNode* root_;
168 base::hash_map<int32_t, AXNode*> id_map_; 170 base::hash_map<int32_t, AXNode*> id_map_;
169 std::string error_; 171 std::string error_;
170 AXTreeData data_; 172 AXTreeData data_;
171 }; 173 };
172 174
173 } // namespace ui 175 } // namespace ui
174 176
175 #endif // UI_ACCESSIBILITY_AX_TREE_H_ 177 #endif // UI_ACCESSIBILITY_AX_TREE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/automation_internal_custom_bindings.cc ('k') | ui/accessibility/ax_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698