Chromium Code Reviews| Index: chrome/common/pref_names.cc |
| diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc |
| index 337c9ca1be8656dfdab563c703c15d42be93cf87..9160dd1ee5e3c051f9cb93bb0e0fef69a0e401c8 100644 |
| --- a/chrome/common/pref_names.cc |
| +++ b/chrome/common/pref_names.cc |
| @@ -110,6 +110,59 @@ const char kWebKitSansSerifFontFamily[] = |
| "webkit.webprefs.sansserif_font_family"; |
| const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family"; |
| const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family"; |
| +const char kWebKitStandardFontFamilyMap[] = |
| + "webkit.webprefs.standard_font_family_map"; |
| +const char kWebKitFixedFontFamilyMap[] = |
| + "webkit.webprefs.fixed_font_family_map"; |
| +const char kWebKitSerifFontFamilyMap[] = |
| + "webkit.webprefs.serif_font_family_map"; |
| +const char kWebKitSansSerifFontFamilyMap[] = |
| + "webkit.webprefs.sansserif_font_family_map"; |
| +const char kWebKitCursiveFontFamilyMap[] = |
| + "webkit.webprefs.cursive_font_family_map"; |
| +const char kWebKitFantasyFontFamilyMap[] = |
| + "webkit.webprefs.fantasy_font_family_map"; |
|
jungshik at Google
2011/08/15 22:50:40
I wonder if we can use the following names/hierarc
falken
2011/08/16 07:46:44
I don't know if we can change the current
webkit
|
| + |
| +// TODO(falken): Add all the scripts we should support. |
|
jungshik at Google
2011/08/15 22:50:40
When we add 30+ scripts later, we may have to use
|
| +const char* kWebKitScriptsForFontFamilyMaps[] = |
| + { "Cyrl", "Hang", "Hans", "Hant", "Hrkt" }; |
|
jungshik at Google
2011/08/15 22:50:40
As a pilot implementation, can you use 'Arab' rath
falken
2011/08/16 07:46:44
Done. I used "Droid Arabic Kufi" instead of Kufic
|
| +const size_t kWebKitScriptsForFontFamilyMapsLength = |
| + sizeof(kWebKitScriptsForFontFamilyMaps) / |
| + sizeof(kWebKitScriptsForFontFamilyMaps[0]); |
|
tony
2011/08/15 23:08:28
Can we use the arraysize() macro in base/basictype
falken
2011/08/16 07:46:44
Done.
|
| + |
| +const char kWebKitStandardFontFamilyJapanese[] = |
| + "webkit.webprefs.standard_font_family_map.Hrkt"; |
| +const char kWebKitFixedFontFamilyJapanese[] = |
| + "webkit.webprefs.fixed_font_family_map.Hrkt"; |
| +const char kWebKitSerifFontFamilyJapanese[] = |
| + "webkit.webprefs.serif_font_family_map.Hrkt"; |
| +const char kWebKitSansSerifFontFamilyJapanese[] = |
| + "webkit.webprefs.sansserif_font_family_map.Hrkt"; |
| +const char kWebKitStandardFontFamilyKorean[] = |
| + "webkit.webprefs.standard_font_family_map.Hang"; |
| +const char kWebKitFixedFontFamilyKorean[] = |
| + "webkit.webprefs.fixed_font_family_map.Hang"; |
| +const char kWebKitSerifFontFamilyKorean[] = |
| + "webkit.webprefs.serif_font_family_map.Hang"; |
| +const char kWebKitSansSerifFontFamilyKorean[] = |
| + "webkit.webprefs.sansserif_font_family_map.Hang"; |
| +const char kWebKitStandardFontFamilySimplifiedHan[] = |
| + "webkit.webprefs.standard_font_family_map.Hans"; |
| +const char kWebKitFixedFontFamilySimplifiedHan[] = |
| + "webkit.webprefs.fixed_font_family_map.Hans"; |
| +const char kWebKitSerifFontFamilySimplifiedHan[] = |
| + "webkit.webprefs.serif_font_family_map.Hans"; |
| +const char kWebKitSansSerifFontFamilySimplifiedHan[] = |
| + "webkit.webprefs.sansserif_font_family_map.Hans"; |
| +const char kWebKitStandardFontFamilyTraditionalHan[] = |
| + "webkit.webprefs.standard_font_family_map.Hant"; |
| +const char kWebKitFixedFontFamilyTraditionalHan[] = |
| + "webkit.webprefs.fixed_font_family_map.Hant"; |
| +const char kWebKitSerifFontFamilyTraditionalHan[] = |
| + "webkit.webprefs.serif_font_family_map.Hant"; |
| +const char kWebKitSansSerifFontFamilyTraditionalHan[] = |
| + "webkit.webprefs.sansserif_font_family_map.Hant"; |
| + |
| const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; |
| const char kWebKitDefaultFixedFontSize[] = |
| "webkit.webprefs.default_fixed_font_size"; |