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

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

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)
Patch Set: Downloads back Created 3 years, 5 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 | « chrome/browser/sync_file_system/subtree_set.h ('k') | chrome/renderer/safe_browsing/features.h » ('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 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 <map>
9 #include <vector>
10
8 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
9 #include "base/macros.h" 12 #include "base/macros.h"
10 #include "chrome/common/extensions/api/automation.h" 13 #include "chrome/common/extensions/api/automation.h"
11 #include "extensions/renderer/object_backed_native_handler.h" 14 #include "extensions/renderer/object_backed_native_handler.h"
12 #include "ipc/ipc_message.h" 15 #include "ipc/ipc_message.h"
13 #include "ui/accessibility/ax_tree.h" 16 #include "ui/accessibility/ax_tree.h"
14 #include "v8/include/v8.h" 17 #include "v8/include/v8.h"
15 18
16 struct ExtensionMsg_AccessibilityEventParams; 19 struct ExtensionMsg_AccessibilityEventParams;
17 struct ExtensionMsg_AccessibilityLocationChangeParams; 20 struct ExtensionMsg_AccessibilityLocationChangeParams;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 void OnNodeChanged(ui::AXTree* tree, ui::AXNode* node) override; 174 void OnNodeChanged(ui::AXTree* tree, ui::AXNode* node) override;
172 void OnAtomicUpdateFinished(ui::AXTree* tree, 175 void OnAtomicUpdateFinished(ui::AXTree* tree,
173 bool root_changed, 176 bool root_changed,
174 const std::vector<Change>& changes) override; 177 const std::vector<Change>& changes) override;
175 void SendTreeChangeEvent(api::automation::TreeChangeType change_type, 178 void SendTreeChangeEvent(api::automation::TreeChangeType change_type,
176 ui::AXTree* tree, 179 ui::AXTree* tree,
177 ui::AXNode* node); 180 ui::AXNode* node);
178 void SendChildTreeIDEvent(ui::AXTree* tree, ui::AXNode* node); 181 void SendChildTreeIDEvent(ui::AXTree* tree, ui::AXNode* node);
179 void SendNodesRemovedEvent(ui::AXTree* tree, const std::vector<int>& ids); 182 void SendNodesRemovedEvent(ui::AXTree* tree, const std::vector<int>& ids);
180 183
181 base::hash_map<int, TreeCache*> tree_id_to_tree_cache_map_; 184 std::map<int, TreeCache*> tree_id_to_tree_cache_map_;
182 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_; 185 std::map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_;
183 scoped_refptr<AutomationMessageFilter> message_filter_; 186 scoped_refptr<AutomationMessageFilter> message_filter_;
184 bool is_active_profile_; 187 bool is_active_profile_;
185 std::vector<TreeChangeObserver> tree_change_observers_; 188 std::vector<TreeChangeObserver> tree_change_observers_;
186 // A bit-map of api::automation::TreeChangeObserverFilter. 189 // A bit-map of api::automation::TreeChangeObserverFilter.
187 int tree_change_observer_overall_filter_; 190 int tree_change_observer_overall_filter_;
188 std::vector<int> deleted_node_ids_; 191 std::vector<int> deleted_node_ids_;
189 std::vector<int> text_changed_node_ids_; 192 std::vector<int> text_changed_node_ids_;
190 ExtensionBindingsSystem* bindings_system_; 193 ExtensionBindingsSystem* bindings_system_;
191 bool should_ignore_context_; 194 bool should_ignore_context_;
192 195
193 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); 196 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
194 }; 197 };
195 198
196 } // namespace extensions 199 } // namespace extensions
197 200
198 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 201 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/subtree_set.h ('k') | chrome/renderer/safe_browsing/features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698