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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Accept (A) A A A | 98 // Accept (A) A A A |
99 // ----------------------------------------------------------- | 99 // ----------------------------------------------------------- |
100 // Initial login - A - | 100 // Initial login - A - |
101 // Sync B A - | 101 // Sync B A - |
102 // Revert A A - | 102 // Revert A A - |
103 const char kApplicationLocaleBackup[] = "intl.app_locale_backup"; | 103 const char kApplicationLocaleBackup[] = "intl.app_locale_backup"; |
104 #endif | 104 #endif |
105 | 105 |
106 // The default character encoding to assume for a web page in the | 106 // The default character encoding to assume for a web page in the |
107 // absence of MIME charset specification | 107 // absence of MIME charset specification |
108 const char kGlobalDefaultCharset[] = "intl.global.charset_default"; | 108 const char kDefaultCharset[] = "intl.charset_default"; |
109 | 109 |
110 // The value to use for Accept-Languages HTTP header when making an HTTP | 110 // The value to use for Accept-Languages HTTP header when making an HTTP |
111 // request. | 111 // request. |
112 const char kAcceptLanguages[] = "intl.accept_languages"; | 112 const char kAcceptLanguages[] = "intl.accept_languages"; |
113 | 113 |
114 // The value to use for showing locale-dependent encoding list for different | 114 // The value to use for showing locale-dependent encoding list for different |
115 // locale, it's initialized from the corresponding string resource that is | 115 // locale, it's initialized from the corresponding string resource that is |
116 // stored in non-translatable part of the resource bundle. | 116 // stored in non-translatable part of the resource bundle. |
117 const char kStaticEncodings[] = "intl.static_encodings"; | 117 const char kStaticEncodings[] = "intl.static_encodings"; |
118 | 118 |
119 // WebKit preferences. | 119 // Obselete WebKit prefs for migration. |
| 120 const char kGlobalDefaultCharset[] = "intl.global.charset_default"; |
| 121 const char kWebKitGlobalDefaultFontSize[] = |
| 122 "webkit.webprefs.global.default_font_size"; |
| 123 const char kWebKitGlobalDefaultFixedFontSize[] = |
| 124 "webkit.webprefs.global.default_fixed_font_size"; |
| 125 const char kWebKitGlobalMinimumFontSize[] = |
| 126 "webkit.webprefs.global.minimum_font_size"; |
| 127 const char kWebKitGlobalMinimumLogicalFontSize[] = |
| 128 "webkit.webprefs.global.minimum_logical_font_size"; |
| 129 const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] = |
| 130 "webkit.webprefs.global.javascript_can_open_windows_automatically"; |
| 131 const char kWebKitGlobalJavascriptEnabled[] = |
| 132 "webkit.webprefs.global.javascript_enabled"; |
| 133 const char kWebKitGlobalLoadsImagesAutomatically[] = |
| 134 "webkit.webprefs.global.loads_images_automatically"; |
| 135 const char kWebKitGlobalPluginsEnabled[] = |
| 136 "webkit.webprefs.global.plugins_enabled"; |
120 const char kWebKitGlobalStandardFontFamily[] = | 137 const char kWebKitGlobalStandardFontFamily[] = |
121 "webkit.webprefs.global.standard_font_family"; | 138 "webkit.webprefs.global.standard_font_family"; |
122 const char kWebKitGlobalFixedFontFamily[] = | 139 const char kWebKitGlobalFixedFontFamily[] = |
123 "webkit.webprefs.global.fixed_font_family"; | 140 "webkit.webprefs.global.fixed_font_family"; |
124 const char kWebKitGlobalSerifFontFamily[] = | 141 const char kWebKitGlobalSerifFontFamily[] = |
125 "webkit.webprefs.global.serif_font_family"; | 142 "webkit.webprefs.global.serif_font_family"; |
126 const char kWebKitGlobalSansSerifFontFamily[] = | 143 const char kWebKitGlobalSansSerifFontFamily[] = |
127 "webkit.webprefs.global.sansserif_font_family"; | 144 "webkit.webprefs.global.sansserif_font_family"; |
128 const char kWebKitGlobalCursiveFontFamily[] = | 145 const char kWebKitGlobalCursiveFontFamily[] = |
129 "webkit.webprefs.global.cursive_font_family"; | 146 "webkit.webprefs.global.cursive_font_family"; |
(...skipping 27 matching lines...) Expand all Loading... |
157 const char* const kWebKitScriptsForFontFamilyMaps[] = { | 174 const char* const kWebKitScriptsForFontFamilyMaps[] = { |
158 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor", | 175 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor", |
159 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt", "Knda", | 176 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt", "Knda", |
160 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu", | 177 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu", |
161 "Thaa", "Thai", "Tibt", "Yiii", "Zyyy" | 178 "Thaa", "Thai", "Tibt", "Yiii", "Zyyy" |
162 }; | 179 }; |
163 | 180 |
164 const size_t kWebKitScriptsForFontFamilyMapsLength = | 181 const size_t kWebKitScriptsForFontFamilyMapsLength = |
165 arraysize(kWebKitScriptsForFontFamilyMaps); | 182 arraysize(kWebKitScriptsForFontFamilyMaps); |
166 | 183 |
| 184 // WebKit preferences. |
167 const char kWebKitStandardFontFamilyArabic[] = | 185 const char kWebKitStandardFontFamilyArabic[] = |
168 "webkit.webprefs.fonts.standard.Arab"; | 186 "webkit.webprefs.fonts.standard.Arab"; |
169 const char kWebKitFixedFontFamilyArabic[] = | 187 const char kWebKitFixedFontFamilyArabic[] = |
170 "webkit.webprefs.fonts.fixed.Arab"; | 188 "webkit.webprefs.fonts.fixed.Arab"; |
171 const char kWebKitSerifFontFamilyArabic[] = | 189 const char kWebKitSerifFontFamilyArabic[] = |
172 "webkit.webprefs.fonts.serif.Arab"; | 190 "webkit.webprefs.fonts.serif.Arab"; |
173 const char kWebKitSansSerifFontFamilyArabic[] = | 191 const char kWebKitSansSerifFontFamilyArabic[] = |
174 "webkit.webprefs.fonts.sansserif.Arab"; | 192 "webkit.webprefs.fonts.sansserif.Arab"; |
175 const char kWebKitStandardFontFamilyJapanese[] = | 193 const char kWebKitStandardFontFamilyJapanese[] = |
176 "webkit.webprefs.fonts.standard.Hrkt"; | 194 "webkit.webprefs.fonts.standard.Hrkt"; |
(...skipping 23 matching lines...) Expand all Loading... |
200 "webkit.webprefs.fonts.sansserif.Hans"; | 218 "webkit.webprefs.fonts.sansserif.Hans"; |
201 const char kWebKitStandardFontFamilyTraditionalHan[] = | 219 const char kWebKitStandardFontFamilyTraditionalHan[] = |
202 "webkit.webprefs.fonts.standard.Hant"; | 220 "webkit.webprefs.fonts.standard.Hant"; |
203 const char kWebKitFixedFontFamilyTraditionalHan[] = | 221 const char kWebKitFixedFontFamilyTraditionalHan[] = |
204 "webkit.webprefs.fonts.fixed.Hant"; | 222 "webkit.webprefs.fonts.fixed.Hant"; |
205 const char kWebKitSerifFontFamilyTraditionalHan[] = | 223 const char kWebKitSerifFontFamilyTraditionalHan[] = |
206 "webkit.webprefs.fonts.serif.Hant"; | 224 "webkit.webprefs.fonts.serif.Hant"; |
207 const char kWebKitSansSerifFontFamilyTraditionalHan[] = | 225 const char kWebKitSansSerifFontFamilyTraditionalHan[] = |
208 "webkit.webprefs.fonts.sansserif.Hant"; | 226 "webkit.webprefs.fonts.sansserif.Hant"; |
209 | 227 |
210 const char kWebKitGlobalDefaultFontSize[] = | |
211 "webkit.webprefs.global.default_font_size"; | |
212 const char kWebKitGlobalDefaultFixedFontSize[] = | |
213 "webkit.webprefs.global.default_fixed_font_size"; | |
214 const char kWebKitGlobalMinimumFontSize[] = | |
215 "webkit.webprefs.global.minimum_font_size"; | |
216 const char kWebKitGlobalMinimumLogicalFontSize[] = | |
217 "webkit.webprefs.global.minimum_logical_font_size"; | |
218 const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] = | |
219 "webkit.webprefs.global.javascript_can_open_windows_automatically"; | |
220 const char kWebKitGlobalJavascriptEnabled[] = | |
221 "webkit.webprefs.global.javascript_enabled"; | |
222 const char kWebKitGlobalLoadsImagesAutomatically[] = | |
223 "webkit.webprefs.global.loads_images_automatically"; | |
224 const char kWebKitGlobalPluginsEnabled[] = | |
225 "webkit.webprefs.global.plugins_enabled"; | |
226 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; | 228 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; |
227 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; | 229 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; |
228 const char kWebKitShrinksStandaloneImagesToFit[] = | 230 const char kWebKitShrinksStandaloneImagesToFit[] = |
229 "webkit.webprefs.shrinks_standalone_images_to_fit"; | 231 "webkit.webprefs.shrinks_standalone_images_to_fit"; |
230 const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; | 232 const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; |
231 const char kWebKitUsesUniversalDetector[] = | 233 const char kWebKitUsesUniversalDetector[] = |
232 "webkit.webprefs.uses_universal_detector"; | 234 "webkit.webprefs.uses_universal_detector"; |
233 const char kWebKitTextAreasAreResizable[] = | 235 const char kWebKitTextAreasAreResizable[] = |
234 "webkit.webprefs.text_areas_are_resizable"; | 236 "webkit.webprefs.text_areas_are_resizable"; |
235 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; | 237 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; |
236 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; | 238 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; |
237 const char kWebKitAllowDisplayingInsecureContent[] = | 239 const char kWebKitAllowDisplayingInsecureContent[] = |
238 "webkit.webprefs.allow_displaying_insecure_content"; | 240 "webkit.webprefs.allow_displaying_insecure_content"; |
239 const char kWebKitAllowRunningInsecureContent[] = | 241 const char kWebKitAllowRunningInsecureContent[] = |
240 "webkit.webprefs.allow_running_insecure_content"; | 242 "webkit.webprefs.allow_running_insecure_content"; |
241 | 243 |
242 const char kDefaultCharset[] = "intl.charset_default"; | |
243 const char kWebKitCommonScript[] = "Zyyy"; | 244 const char kWebKitCommonScript[] = "Zyyy"; |
244 const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy"; | 245 const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy"; |
245 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy"; | 246 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy"; |
246 const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy"; | 247 const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy"; |
247 const char kWebKitSansSerifFontFamily[] = | 248 const char kWebKitSansSerifFontFamily[] = |
248 "webkit.webprefs.fonts.sansserif.Zyyy"; | 249 "webkit.webprefs.fonts.sansserif.Zyyy"; |
249 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy"; | 250 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy"; |
250 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy"; | 251 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy"; |
251 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; | 252 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; |
252 const char kWebKitDefaultFixedFontSize[] = | 253 const char kWebKitDefaultFixedFontSize[] = |
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1884 const char kInManagedMode[] = "managed_mode"; | 1885 const char kInManagedMode[] = "managed_mode"; |
1885 | 1886 |
1886 // Counts how many more times the 'profile on a network share' warning should be | 1887 // Counts how many more times the 'profile on a network share' warning should be |
1887 // shown to the user before the next silence period. | 1888 // shown to the user before the next silence period. |
1888 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; | 1889 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; |
1889 // Tracks the time of the last shown warning. Used to reset | 1890 // Tracks the time of the last shown warning. Used to reset |
1890 // |network_profile.warnings_left| after a silence period. | 1891 // |network_profile.warnings_left| after a silence period. |
1891 const char kNetworkProfileLastWarningTime[] = | 1892 const char kNetworkProfileLastWarningTime[] = |
1892 "network_profile.last_warning_time"; | 1893 "network_profile.last_warning_time"; |
1893 } // namespace prefs | 1894 } // namespace prefs |
OLD | NEW |