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

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: Fixes Created 3 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 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void OnNodeChanged(ui::AXTree* tree, ui::AXNode* node) override; 170 void OnNodeChanged(ui::AXTree* tree, ui::AXNode* node) override;
168 void OnAtomicUpdateFinished(ui::AXTree* tree, 171 void OnAtomicUpdateFinished(ui::AXTree* tree,
169 bool root_changed, 172 bool root_changed,
170 const std::vector<Change>& changes) override; 173 const std::vector<Change>& changes) override;
171 void SendTreeChangeEvent(api::automation::TreeChangeType change_type, 174 void SendTreeChangeEvent(api::automation::TreeChangeType change_type,
172 ui::AXTree* tree, 175 ui::AXTree* tree,
173 ui::AXNode* node); 176 ui::AXNode* node);
174 void SendChildTreeIDEvent(ui::AXTree* tree, ui::AXNode* node); 177 void SendChildTreeIDEvent(ui::AXTree* tree, ui::AXNode* node);
175 void SendNodesRemovedEvent(ui::AXTree* tree, const std::vector<int>& ids); 178 void SendNodesRemovedEvent(ui::AXTree* tree, const std::vector<int>& ids);
176 179
177 base::hash_map<int, TreeCache*> tree_id_to_tree_cache_map_; 180 std::map<int, TreeCache*> tree_id_to_tree_cache_map_;
178 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_; 181 std::map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_;
179 scoped_refptr<AutomationMessageFilter> message_filter_; 182 scoped_refptr<AutomationMessageFilter> message_filter_;
180 bool is_active_profile_; 183 bool is_active_profile_;
181 std::vector<TreeChangeObserver> tree_change_observers_; 184 std::vector<TreeChangeObserver> tree_change_observers_;
182 // A bit-map of api::automation::TreeChangeObserverFilter. 185 // A bit-map of api::automation::TreeChangeObserverFilter.
183 int tree_change_observer_overall_filter_; 186 int tree_change_observer_overall_filter_;
184 std::vector<int> deleted_node_ids_; 187 std::vector<int> deleted_node_ids_;
185 std::vector<int> text_changed_node_ids_; 188 std::vector<int> text_changed_node_ids_;
186 ExtensionBindingsSystem* bindings_system_; 189 ExtensionBindingsSystem* bindings_system_;
187 bool should_ignore_context_; 190 bool should_ignore_context_;
188 191
189 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); 192 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
190 }; 193 };
191 194
192 } // namespace extensions 195 } // namespace extensions
193 196
194 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 197 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698