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

Side by Side Diff: chrome/browser/extensions/extension_function_registry.cc

Issue 10080017: Switch platform apps from a declarative launch container to handling an onLaunched event. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove debug logging code Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 RegisterFunction<SetDefaultFixedFontSizeFunction>(); 430 RegisterFunction<SetDefaultFixedFontSizeFunction>();
431 RegisterFunction<GetMinimumFontSizeFunction>(); 431 RegisterFunction<GetMinimumFontSizeFunction>();
432 RegisterFunction<SetMinimumFontSizeFunction>(); 432 RegisterFunction<SetMinimumFontSizeFunction>();
433 RegisterFunction<GetDefaultCharacterSetFunction>(); 433 RegisterFunction<GetDefaultCharacterSetFunction>();
434 RegisterFunction<SetDefaultCharacterSetFunction>(); 434 RegisterFunction<SetDefaultCharacterSetFunction>();
435 435
436 // ChromeAuth settings. 436 // ChromeAuth settings.
437 RegisterFunction<SetCloudPrintCredentialsFunction>(); 437 RegisterFunction<SetCloudPrintCredentialsFunction>();
438 438
439 // Experimental App API. 439 // Experimental App API.
440 RegisterFunction<AppNotifyFunction>(); 440 RegisterFunction<extensions::AppNotifyFunction>();
441 RegisterFunction<AppClearAllNotificationsFunction>(); 441 RegisterFunction<extensions::AppClearAllNotificationsFunction>();
442 442
443 // Permissions 443 // Permissions
444 RegisterFunction<ContainsPermissionsFunction>(); 444 RegisterFunction<ContainsPermissionsFunction>();
445 RegisterFunction<GetAllPermissionsFunction>(); 445 RegisterFunction<GetAllPermissionsFunction>();
446 RegisterFunction<RemovePermissionsFunction>(); 446 RegisterFunction<RemovePermissionsFunction>();
447 RegisterFunction<RequestPermissionsFunction>(); 447 RegisterFunction<RequestPermissionsFunction>();
448 448
449 // Downloads 449 // Downloads
450 RegisterFunction<DownloadsDownloadFunction>(); 450 RegisterFunction<DownloadsDownloadFunction>();
451 RegisterFunction<DownloadsSearchFunction>(); 451 RegisterFunction<DownloadsSearchFunction>();
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } 529 }
530 530
531 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( 531 ExtensionFunction* ExtensionFunctionRegistry::NewFunction(
532 const std::string& name) { 532 const std::string& name) {
533 FactoryMap::iterator iter = factories_.find(name); 533 FactoryMap::iterator iter = factories_.find(name);
534 DCHECK(iter != factories_.end()); 534 DCHECK(iter != factories_.end());
535 ExtensionFunction* function = iter->second(); 535 ExtensionFunction* function = iter->second();
536 function->set_name(name); 536 function->set_name(name);
537 return function; 537 return function;
538 } 538 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_apitest.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698