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

Side by Side Diff: chrome/renderer/extensions/automation_internal_custom_bindings.h

Issue 1716663002: Add a treeChange type to Automation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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 CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/common/extensions/api/automation.h" 10 #include "chrome/common/extensions/api/automation.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Helper functions. 134 // Helper functions.
135 // 135 //
136 136
137 // Handle accessibility events from the browser process. 137 // Handle accessibility events from the browser process.
138 void OnAccessibilityEvent(const ExtensionMsg_AccessibilityEventParams& params, 138 void OnAccessibilityEvent(const ExtensionMsg_AccessibilityEventParams& params,
139 bool is_active_profile); 139 bool is_active_profile);
140 140
141 void UpdateOverallTreeChangeObserverFilter(); 141 void UpdateOverallTreeChangeObserverFilter();
142 142
143 // AXTreeDelegate implementation. 143 // AXTreeDelegate implementation.
144 void OnNodeDataWillChange(const ui::AXNodeData& old_node_data,
145 const ui::AXNodeData& new_node_data) override;
144 void OnTreeDataChanged(ui::AXTree* tree) override; 146 void OnTreeDataChanged(ui::AXTree* tree) override;
145 void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; 147 void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override;
146 void OnSubtreeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; 148 void OnSubtreeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override;
147 void OnNodeCreated(ui::AXTree* tree, ui::AXNode* node) override; 149 void OnNodeCreated(ui::AXTree* tree, ui::AXNode* node) override;
148 void OnNodeChanged(ui::AXTree* tree, ui::AXNode* node) override; 150 void OnNodeChanged(ui::AXTree* tree, ui::AXNode* node) override;
149 void OnAtomicUpdateFinished(ui::AXTree* tree, 151 void OnAtomicUpdateFinished(ui::AXTree* tree,
150 bool root_changed, 152 bool root_changed,
151 const std::vector<Change>& changes) override; 153 const std::vector<Change>& changes) override;
152 void SendTreeChangeEvent(api::automation::TreeChangeType change_type, 154 void SendTreeChangeEvent(api::automation::TreeChangeType change_type,
153 ui::AXTree* tree, 155 ui::AXTree* tree,
154 ui::AXNode* node); 156 ui::AXNode* node);
155 void SendChildTreeIDEvent(ui::AXTree* tree, ui::AXNode* node); 157 void SendChildTreeIDEvent(ui::AXTree* tree, ui::AXNode* node);
156 void SendNodesRemovedEvent(ui::AXTree* tree, const std::vector<int>& ids); 158 void SendNodesRemovedEvent(ui::AXTree* tree, const std::vector<int>& ids);
157 159
158 base::hash_map<int, TreeCache*> tree_id_to_tree_cache_map_; 160 base::hash_map<int, TreeCache*> tree_id_to_tree_cache_map_;
159 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_; 161 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_;
160 scoped_refptr<AutomationMessageFilter> message_filter_; 162 scoped_refptr<AutomationMessageFilter> message_filter_;
161 bool is_active_profile_; 163 bool is_active_profile_;
162 std::vector<TreeChangeObserver> tree_change_observers_; 164 std::vector<TreeChangeObserver> tree_change_observers_;
163 api::automation::TreeChangeObserverFilter 165 api::automation::TreeChangeObserverFilter
164 tree_change_observer_overall_filter_; 166 tree_change_observer_overall_filter_;
165 std::vector<int> deleted_node_ids_; 167 std::vector<int> deleted_node_ids_;
168 std::vector<int> text_changed_node_ids_;
166 169
167 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); 170 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
168 }; 171 };
169 172
170 } // namespace extensions 173 } // namespace extensions
171 174
172 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 175 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698