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

Unified Diff: chrome/browser/extensions/extension_font_settings_api.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_font_settings_api.cc
diff --git a/chrome/browser/extensions/extension_font_settings_api.cc b/chrome/browser/extensions/extension_font_settings_api.cc
index 8ef7ba149224075c515e830c85b89843a4f4fb5a..87ea3b95e52bde107f3bfc759cbad36019fcb4c3 100644
--- a/chrome/browser/extensions/extension_font_settings_api.cc
+++ b/chrome/browser/extensions/extension_font_settings_api.cc
@@ -34,8 +34,7 @@ const char kLocalizedNameKey[] = "localizedName";
const char kPixelSizeKey[] = "pixelSize";
const char kScriptKey[] = "script";
-const char kOnFontNameChanged[] =
- "experimental.fontSettings.onFontNameChanged";
+const char kOnFontChanged[] = "experimental.fontSettings.onFontChanged";
// Format for per-script font preference keys.
// E.g., "webkit.webprefs.fonts.standard.Hrkt"
@@ -196,14 +195,14 @@ void ExtensionFontSettingsEventRouter::Observe(
extension_preference_helpers::DispatchEventToExtensions(
profile_,
- kOnFontNameChanged,
+ kOnFontChanged,
&args,
ExtensionAPIPermission::kExperimental,
incognito,
*pref_key);
}
-bool GetFontNameFunction::RunImpl() {
+bool GetFontFunction::RunImpl() {
DictionaryValue* details = NULL;
EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(0, &details));
@@ -225,7 +224,7 @@ bool GetFontNameFunction::RunImpl() {
return true;
}
-bool SetFontNameFunction::RunImpl() {
+bool SetFontFunction::RunImpl() {
DictionaryValue* details = NULL;
EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(0, &details));
« no previous file with comments | « chrome/browser/extensions/extension_font_settings_api.h ('k') | chrome/browser/extensions/extension_function_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698