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

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

Issue 10108007: Font Settings Extension API: Rename get/setFontName to get/setFont. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 RegisterFunction<extensions::GetBytesInUseSettingsFunction>(); 416 RegisterFunction<extensions::GetBytesInUseSettingsFunction>();
417 417
418 // Content settings. 418 // Content settings.
419 RegisterFunction<GetResourceIdentifiersFunction>(); 419 RegisterFunction<GetResourceIdentifiersFunction>();
420 RegisterFunction<ClearContentSettingsFunction>(); 420 RegisterFunction<ClearContentSettingsFunction>();
421 RegisterFunction<GetContentSettingFunction>(); 421 RegisterFunction<GetContentSettingFunction>();
422 RegisterFunction<SetContentSettingFunction>(); 422 RegisterFunction<SetContentSettingFunction>();
423 423
424 // Font settings. 424 // Font settings.
425 RegisterFunction<GetFontListFunction>(); 425 RegisterFunction<GetFontListFunction>();
426 RegisterFunction<GetFontNameFunction>(); 426 RegisterFunction<GetFontFunction>();
427 RegisterFunction<SetFontNameFunction>(); 427 RegisterFunction<SetFontFunction>();
428 RegisterFunction<GetDefaultFontSizeFunction>(); 428 RegisterFunction<GetDefaultFontSizeFunction>();
429 RegisterFunction<SetDefaultFontSizeFunction>(); 429 RegisterFunction<SetDefaultFontSizeFunction>();
430 RegisterFunction<GetDefaultFixedFontSizeFunction>(); 430 RegisterFunction<GetDefaultFixedFontSizeFunction>();
431 RegisterFunction<SetDefaultFixedFontSizeFunction>(); 431 RegisterFunction<SetDefaultFixedFontSizeFunction>();
432 RegisterFunction<GetMinimumFontSizeFunction>(); 432 RegisterFunction<GetMinimumFontSizeFunction>();
433 RegisterFunction<SetMinimumFontSizeFunction>(); 433 RegisterFunction<SetMinimumFontSizeFunction>();
434 434
435 // ChromeAuth settings. 435 // ChromeAuth settings.
436 RegisterFunction<SetCloudPrintCredentialsFunction>(); 436 RegisterFunction<SetCloudPrintCredentialsFunction>();
437 437
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 } 528 }
529 529
530 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( 530 ExtensionFunction* ExtensionFunctionRegistry::NewFunction(
531 const std::string& name) { 531 const std::string& name) {
532 FactoryMap::iterator iter = factories_.find(name); 532 FactoryMap::iterator iter = factories_.find(name);
533 DCHECK(iter != factories_.end()); 533 DCHECK(iter != factories_.end());
534 ExtensionFunction* function = iter->second(); 534 ExtensionFunction* function = iter->second();
535 function->set_name(name); 535 function->set_name(name);
536 return function; 536 return function;
537 } 537 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_font_settings_api.cc ('k') | chrome/common/extensions/api/experimental.fontSettings.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698