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

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

Issue 9836036: Add getDefaultFontSize and setDefaultFontSize to Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 // Content settings. 408 // Content settings.
409 RegisterFunction<GetResourceIdentifiersFunction>(); 409 RegisterFunction<GetResourceIdentifiersFunction>();
410 RegisterFunction<ClearContentSettingsFunction>(); 410 RegisterFunction<ClearContentSettingsFunction>();
411 RegisterFunction<GetContentSettingFunction>(); 411 RegisterFunction<GetContentSettingFunction>();
412 RegisterFunction<SetContentSettingFunction>(); 412 RegisterFunction<SetContentSettingFunction>();
413 413
414 // Font settings. 414 // Font settings.
415 RegisterFunction<GetFontListFunction>(); 415 RegisterFunction<GetFontListFunction>();
416 RegisterFunction<GetFontNameFunction>(); 416 RegisterFunction<GetFontNameFunction>();
417 RegisterFunction<SetFontNameFunction>(); 417 RegisterFunction<SetFontNameFunction>();
418 RegisterFunction<GetDefaultFontSizeFunction>();
419 RegisterFunction<SetDefaultFontSizeFunction>();
418 420
419 // ChromeAuth settings. 421 // ChromeAuth settings.
420 RegisterFunction<SetCloudPrintCredentialsFunction>(); 422 RegisterFunction<SetCloudPrintCredentialsFunction>();
421 423
422 // Experimental App API. 424 // Experimental App API.
423 RegisterFunction<AppNotifyFunction>(); 425 RegisterFunction<AppNotifyFunction>();
424 RegisterFunction<AppClearAllNotificationsFunction>(); 426 RegisterFunction<AppClearAllNotificationsFunction>();
425 427
426 // Permissions 428 // Permissions
427 RegisterFunction<ContainsPermissionsFunction>(); 429 RegisterFunction<ContainsPermissionsFunction>();
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 } 507 }
506 508
507 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( 509 ExtensionFunction* ExtensionFunctionRegistry::NewFunction(
508 const std::string& name) { 510 const std::string& name) {
509 FactoryMap::iterator iter = factories_.find(name); 511 FactoryMap::iterator iter = factories_.find(name);
510 DCHECK(iter != factories_.end()); 512 DCHECK(iter != factories_.end());
511 ExtensionFunction* function = iter->second(); 513 ExtensionFunction* function = iter->second();
512 function->set_name(name); 514 function->set_name(name);
513 return function; 515 return function;
514 } 516 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698