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

Unified Diff: webkit/glue/webpreferences.h

Issue 7606028: Pass per-script fonts to WebKit settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revised patch to address sky's comment Created 9 years, 4 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: webkit/glue/webpreferences.h
diff --git a/webkit/glue/webpreferences.h b/webkit/glue/webpreferences.h
index 985f7ece8cd0f19c9a58b9752bffb2c923d72619..26a4e5f3cafc1732051a25cab937a8380a413471 100644
--- a/webkit/glue/webpreferences.h
+++ b/webkit/glue/webpreferences.h
@@ -22,12 +22,19 @@ class WebView;
}
struct WebPreferences {
+ typedef std::vector<std::pair<std::string, string16> > ScriptFontFamilyMap;
brettw 2011/08/22 23:23:28 Can you provide a comment here what this is mappin
falken 2011/08/23 12:05:53 Done.
string16 standard_font_family;
string16 fixed_font_family;
string16 serif_font_family;
string16 sans_serif_font_family;
string16 cursive_font_family;
string16 fantasy_font_family;
+ ScriptFontFamilyMap standard_font_family_map;
+ ScriptFontFamilyMap fixed_font_family_map;
+ ScriptFontFamilyMap serif_font_family_map;
+ ScriptFontFamilyMap sans_serif_font_family_map;
+ ScriptFontFamilyMap cursive_font_family_map;
+ ScriptFontFamilyMap fantasy_font_family_map;
int default_font_size;
int default_fixed_font_size;
int minimum_font_size;

Powered by Google App Engine
This is Rietveld 408576698