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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 RegisterFunction<GetOffscreenTabFunction>(); | 498 RegisterFunction<GetOffscreenTabFunction>(); |
499 RegisterFunction<GetAllOffscreenTabFunction>(); | 499 RegisterFunction<GetAllOffscreenTabFunction>(); |
500 RegisterFunction<RemoveOffscreenTabFunction>(); | 500 RegisterFunction<RemoveOffscreenTabFunction>(); |
501 RegisterFunction<SendKeyboardEventOffscreenTabFunction>(); | 501 RegisterFunction<SendKeyboardEventOffscreenTabFunction>(); |
502 RegisterFunction<SendMouseEventOffscreenTabFunction>(); | 502 RegisterFunction<SendMouseEventOffscreenTabFunction>(); |
503 RegisterFunction<ToDataUrlOffscreenTabFunction>(); | 503 RegisterFunction<ToDataUrlOffscreenTabFunction>(); |
504 RegisterFunction<UpdateOffscreenTabFunction>(); | 504 RegisterFunction<UpdateOffscreenTabFunction>(); |
505 | 505 |
506 // Identity | 506 // Identity |
507 RegisterFunction<extensions::GetAuthTokenFunction>(); | 507 RegisterFunction<extensions::GetAuthTokenFunction>(); |
| 508 RegisterFunction<extensions::LaunchAuthFlowFunction>(); |
508 | 509 |
509 // Runtime | 510 // Runtime |
510 RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>(); | 511 RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>(); |
511 | 512 |
512 // Generated APIs | 513 // Generated APIs |
513 extensions::api::GeneratedFunctionRegistry::RegisterAll(this); | 514 extensions::api::GeneratedFunctionRegistry::RegisterAll(this); |
514 #endif // defined(ENABLE_EXTENSIONS) | 515 #endif // defined(ENABLE_EXTENSIONS) |
515 } | 516 } |
516 | 517 |
517 void ExtensionFunctionRegistry::GetAllNames(std::vector<std::string>* names) { | 518 void ExtensionFunctionRegistry::GetAllNames(std::vector<std::string>* names) { |
(...skipping 16 matching lines...) Expand all Loading... |
534 } | 535 } |
535 | 536 |
536 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( | 537 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( |
537 const std::string& name) { | 538 const std::string& name) { |
538 FactoryMap::iterator iter = factories_.find(name); | 539 FactoryMap::iterator iter = factories_.find(name); |
539 DCHECK(iter != factories_.end()); | 540 DCHECK(iter != factories_.end()); |
540 ExtensionFunction* function = iter->second(); | 541 ExtensionFunction* function = iter->second(); |
541 function->set_name(name); | 542 function->set_name(name); |
542 return function; | 543 return function; |
543 } | 544 } |
OLD | NEW |