OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 // Accept (A) A A A | 88 // Accept (A) A A A |
89 // ----------------------------------------------------------- | 89 // ----------------------------------------------------------- |
90 // Initial login - A - | 90 // Initial login - A - |
91 // Sync B A - | 91 // Sync B A - |
92 // Revert A A - | 92 // Revert A A - |
93 const char kApplicationLocaleBackup[] = "intl.app_locale_backup"; | 93 const char kApplicationLocaleBackup[] = "intl.app_locale_backup"; |
94 #endif | 94 #endif |
95 | 95 |
96 // The default character encoding to assume for a web page in the | 96 // The default character encoding to assume for a web page in the |
97 // absence of MIME charset specification | 97 // absence of MIME charset specification |
98 const char kDefaultCharset[] = "intl.charset_default"; | 98 const char kGlobalDefaultCharset[] = "intl.global.charset_default"; |
99 | 99 |
100 // The value to use for Accept-Languages HTTP header when making an HTTP | 100 // The value to use for Accept-Languages HTTP header when making an HTTP |
101 // request. | 101 // request. |
102 const char kAcceptLanguages[] = "intl.accept_languages"; | 102 const char kAcceptLanguages[] = "intl.accept_languages"; |
103 | 103 |
104 // The value to use for showing locale-dependent encoding list for different | 104 // The value to use for showing locale-dependent encoding list for different |
105 // locale, it's initialized from the corresponding string resource that is | 105 // locale, it's initialized from the corresponding string resource that is |
106 // stored in non-translatable part of the resource bundle. | 106 // stored in non-translatable part of the resource bundle. |
107 const char kStaticEncodings[] = "intl.static_encodings"; | 107 const char kStaticEncodings[] = "intl.static_encodings"; |
108 | 108 |
109 // OBSOLETE. The list of hostnames for which we whitelist popups (rather than | 109 // OBSOLETE. The list of hostnames for which we whitelist popups (rather than |
110 // blocking). | 110 // blocking). |
111 const char kPopupWhitelistedHosts[] = "profile.popup_whitelisted_sites"; | 111 const char kPopupWhitelistedHosts[] = "profile.popup_whitelisted_sites"; |
112 | 112 |
113 // WebKit preferences. | 113 // WebKit preferences. |
114 const char kWebKitStandardFontFamily[] = "webkit.webprefs.standard_font_family"; | 114 const char kWebKitGlobalStandardFontFamily[] = |
115 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; | 115 "webkit.webprefs.global.standard_font_family"; |
Mattias Nissler (ping if slow)
2011/12/09 09:54:44
How do we handle migration of existing prefs?
mnaganov (inactive)
2011/12/12 18:19:04
A good question, indeed! I've found this code dial
| |
116 const char kWebKitSerifFontFamily[] = "webkit.webprefs.serif_font_family"; | 116 const char kWebKitGlobalFixedFontFamily[] = |
117 const char kWebKitSansSerifFontFamily[] = | 117 "webkit.webprefs.global.fixed_font_family"; |
118 "webkit.webprefs.sansserif_font_family"; | 118 const char kWebKitGlobalSerifFontFamily[] = |
119 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family"; | 119 "webkit.webprefs.global.serif_font_family"; |
120 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family"; | 120 const char kWebKitGlobalSansSerifFontFamily[] = |
121 "webkit.webprefs.global.sansserif_font_family"; | |
122 const char kWebKitGlobalCursiveFontFamily[] = | |
123 "webkit.webprefs.global.cursive_font_family"; | |
124 const char kWebKitGlobalFantasyFontFamily[] = | |
125 "webkit.webprefs.global.fantasy_font_family"; | |
121 const char kWebKitStandardFontFamilyMap[] = | 126 const char kWebKitStandardFontFamilyMap[] = |
122 "webkit.webprefs.fonts.standard"; | 127 "webkit.webprefs.fonts.standard"; |
123 const char kWebKitFixedFontFamilyMap[] = | 128 const char kWebKitFixedFontFamilyMap[] = |
124 "webkit.webprefs.fonts.fixed"; | 129 "webkit.webprefs.fonts.fixed"; |
125 const char kWebKitSerifFontFamilyMap[] = | 130 const char kWebKitSerifFontFamilyMap[] = |
126 "webkit.webprefs.fonts.serif"; | 131 "webkit.webprefs.fonts.serif"; |
127 const char kWebKitSansSerifFontFamilyMap[] = | 132 const char kWebKitSansSerifFontFamilyMap[] = |
128 "webkit.webprefs.fonts.sansserif"; | 133 "webkit.webprefs.fonts.sansserif"; |
129 const char kWebKitCursiveFontFamilyMap[] = | 134 const char kWebKitCursiveFontFamilyMap[] = |
130 "webkit.webprefs.fonts.cursive"; | 135 "webkit.webprefs.fonts.cursive"; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 "webkit.webprefs.fonts.sansserif.Hans"; | 178 "webkit.webprefs.fonts.sansserif.Hans"; |
174 const char kWebKitStandardFontFamilyTraditionalHan[] = | 179 const char kWebKitStandardFontFamilyTraditionalHan[] = |
175 "webkit.webprefs.fonts.standard.Hant"; | 180 "webkit.webprefs.fonts.standard.Hant"; |
176 const char kWebKitFixedFontFamilyTraditionalHan[] = | 181 const char kWebKitFixedFontFamilyTraditionalHan[] = |
177 "webkit.webprefs.fonts.fixed.Hant"; | 182 "webkit.webprefs.fonts.fixed.Hant"; |
178 const char kWebKitSerifFontFamilyTraditionalHan[] = | 183 const char kWebKitSerifFontFamilyTraditionalHan[] = |
179 "webkit.webprefs.fonts.serif.Hant"; | 184 "webkit.webprefs.fonts.serif.Hant"; |
180 const char kWebKitSansSerifFontFamilyTraditionalHan[] = | 185 const char kWebKitSansSerifFontFamilyTraditionalHan[] = |
181 "webkit.webprefs.fonts.sansserif.Hant"; | 186 "webkit.webprefs.fonts.sansserif.Hant"; |
182 | 187 |
183 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; | 188 const char kWebKitGlobalDefaultFontSize[] = |
184 const char kWebKitDefaultFixedFontSize[] = | 189 "webkit.webprefs.global.default_font_size"; |
185 "webkit.webprefs.default_fixed_font_size"; | 190 const char kWebKitGlobalDefaultFixedFontSize[] = |
186 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; | 191 "webkit.webprefs.global.default_fixed_font_size"; |
187 const char kWebKitMinimumLogicalFontSize[] = | 192 const char kWebKitGlobalMinimumFontSize[] = |
188 "webkit.webprefs.minimum_logical_font_size"; | 193 "webkit.webprefs.global.minimum_font_size"; |
194 const char kWebKitGlobalMinimumLogicalFontSize[] = | |
195 "webkit.webprefs.global.minimum_logical_font_size"; | |
196 const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] = | |
197 "webkit.webprefs.global.javascript_can_open_windows_automatically"; | |
189 const char kWebKitGlobalJavascriptEnabled[] = | 198 const char kWebKitGlobalJavascriptEnabled[] = |
190 "webkit.webprefs.global.javascript_enabled"; | 199 "webkit.webprefs.global.javascript_enabled"; |
200 const char kWebKitGlobalLoadsImagesAutomatically[] = | |
201 "webkit.webprefs.global.loads_images_automatically"; | |
202 const char kWebKitGlobalPluginsEnabled[] = | |
203 "webkit.webprefs.global.plugins_enabled"; | |
191 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; | 204 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; |
192 const char kWebKitJavascriptCanOpenWindowsAutomatically[] = | |
193 "webkit.webprefs.javascript_can_open_windows_automatically"; | |
194 const char kWebKitLoadsImagesAutomatically[] = | |
195 "webkit.webprefs.loads_images_automatically"; | |
196 const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled"; | |
197 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; | 205 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; |
198 const char kWebKitShrinksStandaloneImagesToFit[] = | 206 const char kWebKitShrinksStandaloneImagesToFit[] = |
199 "webkit.webprefs.shrinks_standalone_images_to_fit"; | 207 "webkit.webprefs.shrinks_standalone_images_to_fit"; |
200 const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; | 208 const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; |
201 const char kWebKitUsesUniversalDetector[] = | 209 const char kWebKitUsesUniversalDetector[] = |
202 "webkit.webprefs.uses_universal_detector"; | 210 "webkit.webprefs.uses_universal_detector"; |
203 const char kWebKitTextAreasAreResizable[] = | 211 const char kWebKitTextAreasAreResizable[] = |
204 "webkit.webprefs.text_areas_are_resizable"; | 212 "webkit.webprefs.text_areas_are_resizable"; |
205 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; | 213 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; |
206 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; | 214 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; |
207 const char kWebKitAllowDisplayingInsecureContent[] = | 215 const char kWebKitAllowDisplayingInsecureContent[] = |
208 "webkit.webprefs.allow_displaying_insecure_content"; | 216 "webkit.webprefs.allow_displaying_insecure_content"; |
209 const char kWebKitAllowRunningInsecureContent[] = | 217 const char kWebKitAllowRunningInsecureContent[] = |
210 "webkit.webprefs.allow_running_insecure_content"; | 218 "webkit.webprefs.allow_running_insecure_content"; |
211 | 219 |
212 // Settings below can be overridden for each tab individually. | 220 // Settings below can be overridden for each tab individually. |
221 const char kDefaultCharset[] = "intl.charset_default"; | |
222 const char kWebKitStandardFontFamily[] = "webkit.webprefs.standard_font_family"; | |
223 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; | |
224 const char kWebKitSerifFontFamily[] = "webkit.webprefs.serif_font_family"; | |
225 const char kWebKitSansSerifFontFamily[] = | |
226 "webkit.webprefs.sansserif_font_family"; | |
227 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family"; | |
228 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family"; | |
229 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; | |
230 const char kWebKitDefaultFixedFontSize[] = | |
231 "webkit.webprefs.default_fixed_font_size"; | |
232 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; | |
233 const char kWebKitMinimumLogicalFontSize[] = | |
234 "webkit.webprefs.minimum_logical_font_size"; | |
213 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; | 235 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; |
236 const char kWebKitJavascriptCanOpenWindowsAutomatically[] = | |
237 "webkit.webprefs.javascript_can_open_windows_automatically"; | |
238 const char kWebKitLoadsImagesAutomatically[] = | |
239 "webkit.webprefs.loads_images_automatically"; | |
240 const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled"; | |
214 | 241 |
215 // Boolean which specifies whether the bookmark bar is visible on all tabs. | 242 // Boolean which specifies whether the bookmark bar is visible on all tabs. |
216 const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs"; | 243 const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs"; |
217 | 244 |
218 // Boolean which specifies the ids of the bookmark nodes that are expanded in | 245 // Boolean which specifies the ids of the bookmark nodes that are expanded in |
219 // the bookmark editor. | 246 // the bookmark editor. |
220 const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes"; | 247 const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes"; |
221 | 248 |
222 // Boolean that is true if the password manager is on (will record new | 249 // Boolean that is true if the password manager is on (will record new |
223 // passwords and fill in known passwords). | 250 // passwords and fill in known passwords). |
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1677 | 1704 |
1678 // String that represents the recovery component last downloaded version. This | 1705 // String that represents the recovery component last downloaded version. This |
1679 // takes the usual 'a.b.c.d' notation. | 1706 // takes the usual 'a.b.c.d' notation. |
1680 const char kRecoveryComponentVersion[] = "recovery_component.version"; | 1707 const char kRecoveryComponentVersion[] = "recovery_component.version"; |
1681 | 1708 |
1682 // String that stores the component updater last known state. This is used for | 1709 // String that stores the component updater last known state. This is used for |
1683 // troubleshooting. | 1710 // troubleshooting. |
1684 const char kComponentUpdaterState[] = "component_updater.state"; | 1711 const char kComponentUpdaterState[] = "component_updater.state"; |
1685 | 1712 |
1686 } // namespace prefs | 1713 } // namespace prefs |
OLD | NEW |