| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 const char kWebKitGlobalFixedFontFamily[] = | 115 const char kWebKitGlobalFixedFontFamily[] = |
| 116 "webkit.webprefs.global.fixed_font_family"; | 116 "webkit.webprefs.global.fixed_font_family"; |
| 117 const char kWebKitGlobalSerifFontFamily[] = | 117 const char kWebKitGlobalSerifFontFamily[] = |
| 118 "webkit.webprefs.global.serif_font_family"; | 118 "webkit.webprefs.global.serif_font_family"; |
| 119 const char kWebKitGlobalSansSerifFontFamily[] = | 119 const char kWebKitGlobalSansSerifFontFamily[] = |
| 120 "webkit.webprefs.global.sansserif_font_family"; | 120 "webkit.webprefs.global.sansserif_font_family"; |
| 121 const char kWebKitGlobalCursiveFontFamily[] = | 121 const char kWebKitGlobalCursiveFontFamily[] = |
| 122 "webkit.webprefs.global.cursive_font_family"; | 122 "webkit.webprefs.global.cursive_font_family"; |
| 123 const char kWebKitGlobalFantasyFontFamily[] = | 123 const char kWebKitGlobalFantasyFontFamily[] = |
| 124 "webkit.webprefs.global.fantasy_font_family"; | 124 "webkit.webprefs.global.fantasy_font_family"; |
| 125 const char kWebKitOldStandardFontFamily[] = |
| 126 "webkit.webprefs.standard_font_family"; |
| 127 const char kWebKitOldFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; |
| 128 const char kWebKitOldSerifFontFamily[] = "webkit.webprefs.serif_font_family"; |
| 129 const char kWebKitOldSansSerifFontFamily[] = |
| 130 "webkit.webprefs.sansserif_font_family"; |
| 131 const char kWebKitOldCursiveFontFamily[] = |
| 132 "webkit.webprefs.cursive_font_family"; |
| 133 const char kWebKitOldFantasyFontFamily[] = |
| 134 "webkit.webprefs.fantasy_font_family"; |
| 125 const char kWebKitStandardFontFamilyMap[] = | 135 const char kWebKitStandardFontFamilyMap[] = |
| 126 "webkit.webprefs.fonts.standard"; | 136 "webkit.webprefs.fonts.standard"; |
| 127 const char kWebKitFixedFontFamilyMap[] = | 137 const char kWebKitFixedFontFamilyMap[] = |
| 128 "webkit.webprefs.fonts.fixed"; | 138 "webkit.webprefs.fonts.fixed"; |
| 129 const char kWebKitSerifFontFamilyMap[] = | 139 const char kWebKitSerifFontFamilyMap[] = |
| 130 "webkit.webprefs.fonts.serif"; | 140 "webkit.webprefs.fonts.serif"; |
| 131 const char kWebKitSansSerifFontFamilyMap[] = | 141 const char kWebKitSansSerifFontFamilyMap[] = |
| 132 "webkit.webprefs.fonts.sansserif"; | 142 "webkit.webprefs.fonts.sansserif"; |
| 133 const char kWebKitCursiveFontFamilyMap[] = | 143 const char kWebKitCursiveFontFamilyMap[] = |
| 134 "webkit.webprefs.fonts.cursive"; | 144 "webkit.webprefs.fonts.cursive"; |
| 135 const char kWebKitFantasyFontFamilyMap[] = | 145 const char kWebKitFantasyFontFamilyMap[] = |
| 136 "webkit.webprefs.fonts.fantasy"; | 146 "webkit.webprefs.fonts.fantasy"; |
| 137 | 147 |
| 138 // If these change, the corresponding enums in the extension API | 148 // If these change, the corresponding enums in the extension API |
| 139 // experimental.fontSettings.json must also change. | 149 // experimental.fontSettings.json must also change. |
| 140 const char* const kWebKitScriptsForFontFamilyMaps[] = { | 150 const char* const kWebKitScriptsForFontFamilyMaps[] = { |
| 141 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor", | 151 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor", |
| 142 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt", "Knda", | 152 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt", "Knda", |
| 143 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu", | 153 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu", |
| 144 "Thaa", "Thai", "Tibt", "Yiii" | 154 "Thaa", "Thai", "Tibt", "Yiii", "Zyyy" |
| 145 }; | 155 }; |
| 146 | 156 |
| 147 const size_t kWebKitScriptsForFontFamilyMapsLength = | 157 const size_t kWebKitScriptsForFontFamilyMapsLength = |
| 148 arraysize(kWebKitScriptsForFontFamilyMaps); | 158 arraysize(kWebKitScriptsForFontFamilyMaps); |
| 149 | 159 |
| 150 const char kWebKitStandardFontFamilyArabic[] = | 160 const char kWebKitStandardFontFamilyArabic[] = |
| 151 "webkit.webprefs.fonts.standard.Arab"; | 161 "webkit.webprefs.fonts.standard.Arab"; |
| 152 const char kWebKitFixedFontFamilyArabic[] = | 162 const char kWebKitFixedFontFamilyArabic[] = |
| 153 "webkit.webprefs.fonts.fixed.Arab"; | 163 "webkit.webprefs.fonts.fixed.Arab"; |
| 154 const char kWebKitSerifFontFamilyArabic[] = | 164 const char kWebKitSerifFontFamilyArabic[] = |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 "webkit.webprefs.uses_universal_detector"; | 225 "webkit.webprefs.uses_universal_detector"; |
| 216 const char kWebKitTextAreasAreResizable[] = | 226 const char kWebKitTextAreasAreResizable[] = |
| 217 "webkit.webprefs.text_areas_are_resizable"; | 227 "webkit.webprefs.text_areas_are_resizable"; |
| 218 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; | 228 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; |
| 219 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; | 229 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; |
| 220 const char kWebKitAllowDisplayingInsecureContent[] = | 230 const char kWebKitAllowDisplayingInsecureContent[] = |
| 221 "webkit.webprefs.allow_displaying_insecure_content"; | 231 "webkit.webprefs.allow_displaying_insecure_content"; |
| 222 const char kWebKitAllowRunningInsecureContent[] = | 232 const char kWebKitAllowRunningInsecureContent[] = |
| 223 "webkit.webprefs.allow_running_insecure_content"; | 233 "webkit.webprefs.allow_running_insecure_content"; |
| 224 | 234 |
| 225 // Settings below can be overridden for each tab individually. | |
| 226 const char kDefaultCharset[] = "intl.charset_default"; | 235 const char kDefaultCharset[] = "intl.charset_default"; |
| 227 const char kWebKitStandardFontFamily[] = "webkit.webprefs.standard_font_family"; | 236 const char kWebKitCommonScript[] = "Zyyy"; |
| 228 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; | 237 const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy"; |
| 229 const char kWebKitSerifFontFamily[] = "webkit.webprefs.serif_font_family"; | 238 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy"; |
| 239 const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy"; |
| 230 const char kWebKitSansSerifFontFamily[] = | 240 const char kWebKitSansSerifFontFamily[] = |
| 231 "webkit.webprefs.sansserif_font_family"; | 241 "webkit.webprefs.fonts.sansserif.Zyyy"; |
| 232 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family"; | 242 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy"; |
| 233 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family"; | 243 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy"; |
| 234 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; | 244 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; |
| 235 const char kWebKitDefaultFixedFontSize[] = | 245 const char kWebKitDefaultFixedFontSize[] = |
| 236 "webkit.webprefs.default_fixed_font_size"; | 246 "webkit.webprefs.default_fixed_font_size"; |
| 237 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; | 247 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; |
| 238 const char kWebKitMinimumLogicalFontSize[] = | 248 const char kWebKitMinimumLogicalFontSize[] = |
| 239 "webkit.webprefs.minimum_logical_font_size"; | 249 "webkit.webprefs.minimum_logical_font_size"; |
| 240 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; | 250 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; |
| 241 const char kWebKitJavascriptCanOpenWindowsAutomatically[] = | 251 const char kWebKitJavascriptCanOpenWindowsAutomatically[] = |
| 242 "webkit.webprefs.javascript_can_open_windows_automatically"; | 252 "webkit.webprefs.javascript_can_open_windows_automatically"; |
| 243 const char kWebKitLoadsImagesAutomatically[] = | 253 const char kWebKitLoadsImagesAutomatically[] = |
| (...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1842 const char kRailBreakProportion[] = | 1852 const char kRailBreakProportion[] = |
| 1843 "gesture.rail_break_proportion"; | 1853 "gesture.rail_break_proportion"; |
| 1844 const char kRailStartProportion[] = | 1854 const char kRailStartProportion[] = |
| 1845 "gesture.rail_start_proportion"; | 1855 "gesture.rail_start_proportion"; |
| 1846 #endif | 1856 #endif |
| 1847 | 1857 |
| 1848 // Indicates whether the browser is in managed mode. | 1858 // Indicates whether the browser is in managed mode. |
| 1849 const char kInManagedMode[] = "managed_mode"; | 1859 const char kInManagedMode[] = "managed_mode"; |
| 1850 | 1860 |
| 1851 } // namespace prefs | 1861 } // namespace prefs |
| OLD | NEW |