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

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: git cl set_commit 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(ui::AXTree* tree,
145 const ui::AXNodeData& old_node_data,
146 const ui::AXNodeData& new_node_data) override;
144 void OnTreeDataChanged(ui::AXTree* tree) override; 147 void OnTreeDataChanged(ui::AXTree* tree) override;
145 void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; 148 void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override;
146 void OnSubtreeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; 149 void OnSubtreeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override;
147 void OnNodeCreated(ui::AXTree* tree, ui::AXNode* node) override; 150 void OnNodeCreated(ui::AXTree* tree, ui::AXNode* node) override;
148 void OnNodeChanged(ui::AXTree* tree, ui::AXNode* node) override; 151 void OnNodeChanged(ui::AXTree* tree, ui::AXNode* node) override;
149 void OnAtomicUpdateFinished(ui::AXTree* tree, 152 void OnAtomicUpdateFinished(ui::AXTree* tree,
150 bool root_changed, 153 bool root_changed,
151 const std::vector<Change>& changes) override; 154 const std::vector<Change>& changes) override;
152 void SendTreeChangeEvent(api::automation::TreeChangeType change_type, 155 void SendTreeChangeEvent(api::automation::TreeChangeType change_type,
153 ui::AXTree* tree, 156 ui::AXTree* tree,
154 ui::AXNode* node); 157 ui::AXNode* node);
155 void SendChildTreeIDEvent(ui::AXTree* tree, ui::AXNode* node); 158 void SendChildTreeIDEvent(ui::AXTree* tree, ui::AXNode* node);
156 void SendNodesRemovedEvent(ui::AXTree* tree, const std::vector<int>& ids); 159 void SendNodesRemovedEvent(ui::AXTree* tree, const std::vector<int>& ids);
157 160
158 base::hash_map<int, TreeCache*> tree_id_to_tree_cache_map_; 161 base::hash_map<int, TreeCache*> tree_id_to_tree_cache_map_;
159 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_; 162 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_;
160 scoped_refptr<AutomationMessageFilter> message_filter_; 163 scoped_refptr<AutomationMessageFilter> message_filter_;
161 bool is_active_profile_; 164 bool is_active_profile_;
162 std::vector<TreeChangeObserver> tree_change_observers_; 165 std::vector<TreeChangeObserver> tree_change_observers_;
163 api::automation::TreeChangeObserverFilter 166 api::automation::TreeChangeObserverFilter
164 tree_change_observer_overall_filter_; 167 tree_change_observer_overall_filter_;
165 std::vector<int> deleted_node_ids_; 168 std::vector<int> deleted_node_ids_;
169 std::vector<int> text_changed_node_ids_;
166 170
167 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); 171 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
168 }; 172 };
169 173
170 } // namespace extensions 174 } // namespace extensions
171 175
172 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 176 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | chrome/renderer/extensions/automation_internal_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698