| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_registry.h" | 5 #include "chrome/browser/extensions/extension_function_registry.h" |
| 6 | 6 |
| 7 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 7 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
| 8 #include "chrome/browser/bookmarks/bookmark_extension_api.h" | 8 #include "chrome/browser/bookmarks/bookmark_extension_api.h" |
| 9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" | 9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" |
| 10 #include "chrome/browser/download/download_extension_api.h" | 10 #include "chrome/browser/download/download_extension_api.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 233 |
| 234 // Test. | 234 // Test. |
| 235 RegisterFunction<ExtensionTestPassFunction>(); | 235 RegisterFunction<ExtensionTestPassFunction>(); |
| 236 RegisterFunction<ExtensionTestFailFunction>(); | 236 RegisterFunction<ExtensionTestFailFunction>(); |
| 237 RegisterFunction<ExtensionTestLogFunction>(); | 237 RegisterFunction<ExtensionTestLogFunction>(); |
| 238 RegisterFunction<ExtensionTestQuotaResetFunction>(); | 238 RegisterFunction<ExtensionTestQuotaResetFunction>(); |
| 239 RegisterFunction<ExtensionTestCreateIncognitoTabFunction>(); | 239 RegisterFunction<ExtensionTestCreateIncognitoTabFunction>(); |
| 240 RegisterFunction<ExtensionTestSendMessageFunction>(); | 240 RegisterFunction<ExtensionTestSendMessageFunction>(); |
| 241 RegisterFunction<ExtensionTestGetConfigFunction>(); | 241 RegisterFunction<ExtensionTestGetConfigFunction>(); |
| 242 | 242 |
| 243 // Record. |
| 244 RegisterFunction<CaptureURLsFunction>(); |
| 245 RegisterFunction<ReplayURLsFunction>(); |
| 246 |
| 243 // Accessibility. | 247 // Accessibility. |
| 244 RegisterFunction<GetFocusedControlFunction>(); | 248 RegisterFunction<GetFocusedControlFunction>(); |
| 245 RegisterFunction<SetAccessibilityEnabledFunction>(); | 249 RegisterFunction<SetAccessibilityEnabledFunction>(); |
| 246 RegisterFunction<GetAlertsForTabFunction>(); | 250 RegisterFunction<GetAlertsForTabFunction>(); |
| 247 | 251 |
| 248 // Text-to-speech. | 252 // Text-to-speech. |
| 249 RegisterFunction<ExtensionTtsEngineSendTtsEventFunction>(); | 253 RegisterFunction<ExtensionTtsEngineSendTtsEventFunction>(); |
| 250 RegisterFunction<ExtensionTtsGetVoicesFunction>(); | 254 RegisterFunction<ExtensionTtsGetVoicesFunction>(); |
| 251 RegisterFunction<ExtensionTtsIsSpeakingFunction>(); | 255 RegisterFunction<ExtensionTtsIsSpeakingFunction>(); |
| 252 RegisterFunction<ExtensionTtsSpeakFunction>(); | 256 RegisterFunction<ExtensionTtsSpeakFunction>(); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 } | 539 } |
| 536 | 540 |
| 537 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( | 541 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( |
| 538 const std::string& name) { | 542 const std::string& name) { |
| 539 FactoryMap::iterator iter = factories_.find(name); | 543 FactoryMap::iterator iter = factories_.find(name); |
| 540 DCHECK(iter != factories_.end()); | 544 DCHECK(iter != factories_.end()); |
| 541 ExtensionFunction* function = iter->second(); | 545 ExtensionFunction* function = iter->second(); |
| 542 function->set_name(name); | 546 function->set_name(name); |
| 543 return function; | 547 return function; |
| 544 } | 548 } |
| OLD | NEW |