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

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: patch to commit 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..927c18cfd15ed1fd67370db39dc7fbbf1cb7024b 100644
--- a/webkit/glue/webpreferences.h
+++ b/webkit/glue/webpreferences.h
@@ -22,12 +22,22 @@ class WebView;
}
struct WebPreferences {
+ // Map of ISO 15924 four-letter script code to font family. For example,
+ // "Arab" to "My Arabic Font".
+ typedef std::vector<std::pair<std::string, string16> > ScriptFontFamilyMap;
+
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