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

Unified Diff: chrome/browser/ui/webui/options/font_settings_utils_mac.mm

Issue 7044012: Support getting the font list in Pepper. This currently only works out of (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/ui/webui/options/font_settings_utils_mac.mm
===================================================================
--- chrome/browser/ui/webui/options/font_settings_utils_mac.mm (revision 85766)
+++ chrome/browser/ui/webui/options/font_settings_utils_mac.mm (working copy)
@@ -30,24 +30,7 @@
}
}
-ListValue* FontSettingsUtilities::GetFontsList() {
- base::mac::ScopedNSAutoreleasePool autorelease_pool;
- ListValue* font_list = new ListValue;
- NSFontManager* fontManager = [[[NSFontManager alloc] init] autorelease];
- NSArray* fonts = [fontManager availableFontFamilies];
- for (NSString* family_name in fonts) {
- NSString* localized_family_name =
- [fontManager localizedNameForFamily:family_name face:nil];
- ListValue* font_item = new ListValue();
- string16 family = base::SysNSStringToUTF16(family_name);
- font_item->Append(Value::CreateStringValue(family));
- string16 loc_family = base::SysNSStringToUTF16(localized_family_name);
- font_item->Append(Value::CreateStringValue(loc_family));
- font_list->Append(font_item);
- }
- return font_list;
-}
-
+// static
void FontSettingsUtilities::ValidateSavedFonts(PrefService* prefs) {
ValidateFontFamily(prefs, prefs::kWebKitSerifFontFamily);
ValidateFontFamily(prefs, prefs::kWebKitSansSerifFontFamily);
« no previous file with comments | « chrome/browser/ui/webui/options/font_settings_utils_gtk.cc ('k') | chrome/browser/ui/webui/options/font_settings_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698