| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const char kWebKitGlobalFixedFontFamily[] = | 122 const char kWebKitGlobalFixedFontFamily[] = |
| 123 "webkit.webprefs.global.fixed_font_family"; | 123 "webkit.webprefs.global.fixed_font_family"; |
| 124 const char kWebKitGlobalSerifFontFamily[] = | 124 const char kWebKitGlobalSerifFontFamily[] = |
| 125 "webkit.webprefs.global.serif_font_family"; | 125 "webkit.webprefs.global.serif_font_family"; |
| 126 const char kWebKitGlobalSansSerifFontFamily[] = | 126 const char kWebKitGlobalSansSerifFontFamily[] = |
| 127 "webkit.webprefs.global.sansserif_font_family"; | 127 "webkit.webprefs.global.sansserif_font_family"; |
| 128 const char kWebKitGlobalCursiveFontFamily[] = | 128 const char kWebKitGlobalCursiveFontFamily[] = |
| 129 "webkit.webprefs.global.cursive_font_family"; | 129 "webkit.webprefs.global.cursive_font_family"; |
| 130 const char kWebKitGlobalFantasyFontFamily[] = | 130 const char kWebKitGlobalFantasyFontFamily[] = |
| 131 "webkit.webprefs.global.fantasy_font_family"; | 131 "webkit.webprefs.global.fantasy_font_family"; |
| 132 const char kWebKitOldStandardFontFamily[] = |
| 133 "webkit.webprefs.standard_font_family"; |
| 134 const char kWebKitOldFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; |
| 135 const char kWebKitOldSerifFontFamily[] = "webkit.webprefs.serif_font_family"; |
| 136 const char kWebKitOldSansSerifFontFamily[] = |
| 137 "webkit.webprefs.sansserif_font_family"; |
| 138 const char kWebKitOldCursiveFontFamily[] = |
| 139 "webkit.webprefs.cursive_font_family"; |
| 140 const char kWebKitOldFantasyFontFamily[] = |
| 141 "webkit.webprefs.fantasy_font_family"; |
| 132 const char kWebKitStandardFontFamilyMap[] = | 142 const char kWebKitStandardFontFamilyMap[] = |
| 133 "webkit.webprefs.fonts.standard"; | 143 "webkit.webprefs.fonts.standard"; |
| 134 const char kWebKitFixedFontFamilyMap[] = | 144 const char kWebKitFixedFontFamilyMap[] = |
| 135 "webkit.webprefs.fonts.fixed"; | 145 "webkit.webprefs.fonts.fixed"; |
| 136 const char kWebKitSerifFontFamilyMap[] = | 146 const char kWebKitSerifFontFamilyMap[] = |
| 137 "webkit.webprefs.fonts.serif"; | 147 "webkit.webprefs.fonts.serif"; |
| 138 const char kWebKitSansSerifFontFamilyMap[] = | 148 const char kWebKitSansSerifFontFamilyMap[] = |
| 139 "webkit.webprefs.fonts.sansserif"; | 149 "webkit.webprefs.fonts.sansserif"; |
| 140 const char kWebKitCursiveFontFamilyMap[] = | 150 const char kWebKitCursiveFontFamilyMap[] = |
| 141 "webkit.webprefs.fonts.cursive"; | 151 "webkit.webprefs.fonts.cursive"; |
| 142 const char kWebKitFantasyFontFamilyMap[] = | 152 const char kWebKitFantasyFontFamilyMap[] = |
| 143 "webkit.webprefs.fonts.fantasy"; | 153 "webkit.webprefs.fonts.fantasy"; |
| 144 | 154 |
| 145 // If these change, the corresponding enums in the extension API | 155 // If these change, the corresponding enums in the extension API |
| 146 // experimental.fontSettings.json must also change. | 156 // experimental.fontSettings.json must also change. |
| 147 const char* const kWebKitScriptsForFontFamilyMaps[] = { | 157 const char* const kWebKitScriptsForFontFamilyMaps[] = { |
| 148 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor", | 158 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor", |
| 149 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt", "Knda", | 159 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt", "Knda", |
| 150 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu", | 160 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu", |
| 151 "Thaa", "Thai", "Tibt", "Yiii" | 161 "Thaa", "Thai", "Tibt", "Yiii", "Zyyy" |
| 152 }; | 162 }; |
| 153 | 163 |
| 154 const size_t kWebKitScriptsForFontFamilyMapsLength = | 164 const size_t kWebKitScriptsForFontFamilyMapsLength = |
| 155 arraysize(kWebKitScriptsForFontFamilyMaps); | 165 arraysize(kWebKitScriptsForFontFamilyMaps); |
| 156 | 166 |
| 157 const char kWebKitStandardFontFamilyArabic[] = | 167 const char kWebKitStandardFontFamilyArabic[] = |
| 158 "webkit.webprefs.fonts.standard.Arab"; | 168 "webkit.webprefs.fonts.standard.Arab"; |
| 159 const char kWebKitFixedFontFamilyArabic[] = | 169 const char kWebKitFixedFontFamilyArabic[] = |
| 160 "webkit.webprefs.fonts.fixed.Arab"; | 170 "webkit.webprefs.fonts.fixed.Arab"; |
| 161 const char kWebKitSerifFontFamilyArabic[] = | 171 const char kWebKitSerifFontFamilyArabic[] = |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 "webkit.webprefs.uses_universal_detector"; | 232 "webkit.webprefs.uses_universal_detector"; |
| 223 const char kWebKitTextAreasAreResizable[] = | 233 const char kWebKitTextAreasAreResizable[] = |
| 224 "webkit.webprefs.text_areas_are_resizable"; | 234 "webkit.webprefs.text_areas_are_resizable"; |
| 225 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; | 235 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; |
| 226 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; | 236 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; |
| 227 const char kWebKitAllowDisplayingInsecureContent[] = | 237 const char kWebKitAllowDisplayingInsecureContent[] = |
| 228 "webkit.webprefs.allow_displaying_insecure_content"; | 238 "webkit.webprefs.allow_displaying_insecure_content"; |
| 229 const char kWebKitAllowRunningInsecureContent[] = | 239 const char kWebKitAllowRunningInsecureContent[] = |
| 230 "webkit.webprefs.allow_running_insecure_content"; | 240 "webkit.webprefs.allow_running_insecure_content"; |
| 231 | 241 |
| 232 // Settings below can be overridden for each tab individually. | |
| 233 const char kDefaultCharset[] = "intl.charset_default"; | 242 const char kDefaultCharset[] = "intl.charset_default"; |
| 234 const char kWebKitStandardFontFamily[] = "webkit.webprefs.standard_font_family"; | 243 const char kWebKitCommonScript[] = "Zyyy"; |
| 235 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; | 244 const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy"; |
| 236 const char kWebKitSerifFontFamily[] = "webkit.webprefs.serif_font_family"; | 245 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy"; |
| 246 const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy"; |
| 237 const char kWebKitSansSerifFontFamily[] = | 247 const char kWebKitSansSerifFontFamily[] = |
| 238 "webkit.webprefs.sansserif_font_family"; | 248 "webkit.webprefs.fonts.sansserif.Zyyy"; |
| 239 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family"; | 249 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy"; |
| 240 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family"; | 250 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy"; |
| 241 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; | 251 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; |
| 242 const char kWebKitDefaultFixedFontSize[] = | 252 const char kWebKitDefaultFixedFontSize[] = |
| 243 "webkit.webprefs.default_fixed_font_size"; | 253 "webkit.webprefs.default_fixed_font_size"; |
| 244 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; | 254 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; |
| 245 const char kWebKitMinimumLogicalFontSize[] = | 255 const char kWebKitMinimumLogicalFontSize[] = |
| 246 "webkit.webprefs.minimum_logical_font_size"; | 256 "webkit.webprefs.minimum_logical_font_size"; |
| 247 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; | 257 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; |
| 248 const char kWebKitJavascriptCanOpenWindowsAutomatically[] = | 258 const char kWebKitJavascriptCanOpenWindowsAutomatically[] = |
| 249 "webkit.webprefs.javascript_can_open_windows_automatically"; | 259 "webkit.webprefs.javascript_can_open_windows_automatically"; |
| 250 const char kWebKitLoadsImagesAutomatically[] = | 260 const char kWebKitLoadsImagesAutomatically[] = |
| (...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1868 const char kInManagedMode[] = "managed_mode"; | 1878 const char kInManagedMode[] = "managed_mode"; |
| 1869 | 1879 |
| 1870 // Counts how many more times the 'profile on a network share' warning should be | 1880 // Counts how many more times the 'profile on a network share' warning should be |
| 1871 // shown to the user before the next silence period. | 1881 // shown to the user before the next silence period. |
| 1872 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; | 1882 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; |
| 1873 // Tracks the time of the last shown warning. Used to reset | 1883 // Tracks the time of the last shown warning. Used to reset |
| 1874 // |network_profile.warnings_left| after a silence period. | 1884 // |network_profile.warnings_left| after a silence period. |
| 1875 const char kNetworkProfileLastWarningTime[] = | 1885 const char kNetworkProfileLastWarningTime[] = |
| 1876 "network_profile.last_warning_time"; | 1886 "network_profile.last_warning_time"; |
| 1877 } // namespace prefs | 1887 } // namespace prefs |
| OLD | NEW |