| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 | 8 |
| 9 namespace prefs { | 9 namespace prefs { |
| 10 | 10 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 "webkit.webprefs.fonts.serif"; | 134 "webkit.webprefs.fonts.serif"; |
| 135 const char kWebKitSansSerifFontFamilyMap[] = | 135 const char kWebKitSansSerifFontFamilyMap[] = |
| 136 "webkit.webprefs.fonts.sansserif"; | 136 "webkit.webprefs.fonts.sansserif"; |
| 137 const char kWebKitCursiveFontFamilyMap[] = | 137 const char kWebKitCursiveFontFamilyMap[] = |
| 138 "webkit.webprefs.fonts.cursive"; | 138 "webkit.webprefs.fonts.cursive"; |
| 139 const char kWebKitFantasyFontFamilyMap[] = | 139 const char kWebKitFantasyFontFamilyMap[] = |
| 140 "webkit.webprefs.fonts.fantasy"; | 140 "webkit.webprefs.fonts.fantasy"; |
| 141 | 141 |
| 142 // If these change, the corresponding enums in the extension API | 142 // If these change, the corresponding enums in the extension API |
| 143 // experimental.fontSettings.json must also change. | 143 // experimental.fontSettings.json must also change. |
| 144 // TODO(falken): Add all the scripts we should support. | 144 const char* const kWebKitScriptsForFontFamilyMaps[] = { |
| 145 const char* const kWebKitScriptsForFontFamilyMaps[] = | 145 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor", |
| 146 { "Arab", "Hang", "Hans", "Hant", "Hrkt" }; | 146 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt", "Knda", |
| 147 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu", |
| 148 "Thaa", "Thai", "Tibt", "Yiii" |
| 149 }; |
| 147 | 150 |
| 148 const size_t kWebKitScriptsForFontFamilyMapsLength = | 151 const size_t kWebKitScriptsForFontFamilyMapsLength = |
| 149 arraysize(kWebKitScriptsForFontFamilyMaps); | 152 arraysize(kWebKitScriptsForFontFamilyMaps); |
| 150 | 153 |
| 151 const char kWebKitStandardFontFamilyArabic[] = | 154 const char kWebKitStandardFontFamilyArabic[] = |
| 152 "webkit.webprefs.fonts.standard.Arab"; | 155 "webkit.webprefs.fonts.standard.Arab"; |
| 153 const char kWebKitFixedFontFamilyArabic[] = | 156 const char kWebKitFixedFontFamilyArabic[] = |
| 154 "webkit.webprefs.fonts.fixed.Arab"; | 157 "webkit.webprefs.fonts.fixed.Arab"; |
| 155 const char kWebKitSerifFontFamilyArabic[] = | 158 const char kWebKitSerifFontFamilyArabic[] = |
| 156 "webkit.webprefs.fonts.serif.Arab"; | 159 "webkit.webprefs.fonts.serif.Arab"; |
| (...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1790 const char kMinFlickSpeedSquared[] = | 1793 const char kMinFlickSpeedSquared[] = |
| 1791 "gesture.min_flick_speed_squared"; | 1794 "gesture.min_flick_speed_squared"; |
| 1792 const char kMinimumTouchDownDurationInSecondsForClick[] = | 1795 const char kMinimumTouchDownDurationInSecondsForClick[] = |
| 1793 "gesture.minimum_touch_down_duration_in_seconds_for_click"; | 1796 "gesture.minimum_touch_down_duration_in_seconds_for_click"; |
| 1794 #endif | 1797 #endif |
| 1795 | 1798 |
| 1796 // Indicates whether the browser is in managed mode. | 1799 // Indicates whether the browser is in managed mode. |
| 1797 const char kInManagedMode[] = "managed_mode"; | 1800 const char kInManagedMode[] = "managed_mode"; |
| 1798 | 1801 |
| 1799 } // namespace prefs | 1802 } // namespace prefs |
| OLD | NEW |