OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 5 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
6 | 6 |
7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
8 #include "base/singleton.h" | 8 #include "base/singleton.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
11 #include "chrome/browser/browser_window.h" | 11 #include "chrome/browser/browser_window.h" |
12 #include "chrome/browser/extensions/execute_code_in_tab_function.h" | 12 #include "chrome/browser/extensions/execute_code_in_tab_function.h" |
| 13 #include "chrome/browser/extensions/extension_accessibility_api.h" |
13 #include "chrome/browser/extensions/extension_bookmark_manager_api.h" | 14 #include "chrome/browser/extensions/extension_bookmark_manager_api.h" |
14 #include "chrome/browser/extensions/extension_bookmarks_module.h" | 15 #include "chrome/browser/extensions/extension_bookmarks_module.h" |
15 #include "chrome/browser/extensions/extension_bookmarks_module_constants.h" | 16 #include "chrome/browser/extensions/extension_bookmarks_module_constants.h" |
16 #include "chrome/browser/extensions/extension_browser_actions_api.h" | 17 #include "chrome/browser/extensions/extension_browser_actions_api.h" |
17 #include "chrome/browser/extensions/extension_dom_ui.h" | 18 #include "chrome/browser/extensions/extension_dom_ui.h" |
18 #include "chrome/browser/extensions/extension_function.h" | 19 #include "chrome/browser/extensions/extension_function.h" |
19 #include "chrome/browser/extensions/extension_history_api.h" | 20 #include "chrome/browser/extensions/extension_history_api.h" |
20 #include "chrome/browser/extensions/extension_i18n_api.h" | 21 #include "chrome/browser/extensions/extension_i18n_api.h" |
21 #include "chrome/browser/extensions/extension_message_service.h" | 22 #include "chrome/browser/extensions/extension_message_service.h" |
22 #include "chrome/browser/extensions/extension_page_actions_module.h" | 23 #include "chrome/browser/extensions/extension_page_actions_module.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 RegisterFunction<PopupShowFunction>(); | 162 RegisterFunction<PopupShowFunction>(); |
162 | 163 |
163 // Processes. | 164 // Processes. |
164 RegisterFunction<GetProcessForTabFunction>(); | 165 RegisterFunction<GetProcessForTabFunction>(); |
165 | 166 |
166 // Test. | 167 // Test. |
167 RegisterFunction<ExtensionTestPassFunction>(); | 168 RegisterFunction<ExtensionTestPassFunction>(); |
168 RegisterFunction<ExtensionTestFailFunction>(); | 169 RegisterFunction<ExtensionTestFailFunction>(); |
169 RegisterFunction<ExtensionTestLogFunction>(); | 170 RegisterFunction<ExtensionTestLogFunction>(); |
170 RegisterFunction<ExtensionTestQuotaResetFunction>(); | 171 RegisterFunction<ExtensionTestQuotaResetFunction>(); |
| 172 |
| 173 // Accessibility. |
| 174 RegisterFunction<GetFocusedControlFunction>(); |
| 175 RegisterFunction<SetAccessibilityEnabledFunction>(); |
171 } | 176 } |
172 | 177 |
173 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { | 178 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { |
174 for (FactoryMap::iterator iter = factories_.begin(); | 179 for (FactoryMap::iterator iter = factories_.begin(); |
175 iter != factories_.end(); ++iter) { | 180 iter != factories_.end(); ++iter) { |
176 names->push_back(iter->first); | 181 names->push_back(iter->first); |
177 } | 182 } |
178 } | 183 } |
179 | 184 |
180 bool FactoryRegistry::OverrideFunction(const std::string& name, | 185 bool FactoryRegistry::OverrideFunction(const std::string& name, |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 } | 351 } |
347 } | 352 } |
348 | 353 |
349 Profile* ExtensionFunctionDispatcher::profile() { | 354 Profile* ExtensionFunctionDispatcher::profile() { |
350 return render_view_host_->process()->profile(); | 355 return render_view_host_->process()->profile(); |
351 } | 356 } |
352 | 357 |
353 gfx::NativeWindow ExtensionFunctionDispatcher::GetFrameNativeWindow() { | 358 gfx::NativeWindow ExtensionFunctionDispatcher::GetFrameNativeWindow() { |
354 return delegate_ ? delegate_->GetFrameNativeWindow() : NULL; | 359 return delegate_ ? delegate_->GetFrameNativeWindow() : NULL; |
355 } | 360 } |
OLD | NEW |