Chromium Code Reviews| 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 namespace prefs { | 7 namespace prefs { |
| 8 | 8 |
| 9 // *************** PROFILE PREFS *************** | 9 // *************** PROFILE PREFS *************** |
| 10 // These are attached to the user profile | 10 // These are attached to the user profile |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 const char kPopupWhitelistedHosts[] = "profile.popup_whitelisted_sites"; | 103 const char kPopupWhitelistedHosts[] = "profile.popup_whitelisted_sites"; |
| 104 | 104 |
| 105 // WebKit preferences. | 105 // WebKit preferences. |
| 106 const char kWebKitStandardFontFamily[] = "webkit.webprefs.standard_font_family"; | 106 const char kWebKitStandardFontFamily[] = "webkit.webprefs.standard_font_family"; |
| 107 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; | 107 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; |
| 108 const char kWebKitSerifFontFamily[] = "webkit.webprefs.serif_font_family"; | 108 const char kWebKitSerifFontFamily[] = "webkit.webprefs.serif_font_family"; |
| 109 const char kWebKitSansSerifFontFamily[] = | 109 const char kWebKitSansSerifFontFamily[] = |
| 110 "webkit.webprefs.sansserif_font_family"; | 110 "webkit.webprefs.sansserif_font_family"; |
| 111 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family"; | 111 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family"; |
| 112 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family"; | 112 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family"; |
| 113 const char kWebKitStandardFontFamilyMap[] = | |
| 114 "webkit.webprefs.standard_font_family_map"; | |
| 115 const char kWebKitFixedFontFamilyMap[] = | |
| 116 "webkit.webprefs.fixed_font_family_map"; | |
| 117 const char kWebKitSerifFontFamilyMap[] = | |
| 118 "webkit.webprefs.serif_font_family_map"; | |
| 119 const char kWebKitSansSerifFontFamilyMap[] = | |
| 120 "webkit.webprefs.sansserif_font_family_map"; | |
| 121 const char kWebKitCursiveFontFamilyMap[] = | |
| 122 "webkit.webprefs.cursive_font_family_map"; | |
| 123 const char kWebKitFantasyFontFamilyMap[] = | |
| 124 "webkit.webprefs.fantasy_font_family_map"; | |
|
jungshik at Google
2011/08/15 22:50:40
I wonder if we can use the following names/hierarc
falken
2011/08/16 07:46:44
I don't know if we can change the current
webkit
| |
| 125 | |
| 126 // TODO(falken): Add all the scripts we should support. | |
|
jungshik at Google
2011/08/15 22:50:40
When we add 30+ scripts later, we may have to use
| |
| 127 const char* kWebKitScriptsForFontFamilyMaps[] = | |
| 128 { "Cyrl", "Hang", "Hans", "Hant", "Hrkt" }; | |
|
jungshik at Google
2011/08/15 22:50:40
As a pilot implementation, can you use 'Arab' rath
falken
2011/08/16 07:46:44
Done. I used "Droid Arabic Kufi" instead of Kufic
| |
| 129 const size_t kWebKitScriptsForFontFamilyMapsLength = | |
| 130 sizeof(kWebKitScriptsForFontFamilyMaps) / | |
| 131 sizeof(kWebKitScriptsForFontFamilyMaps[0]); | |
|
tony
2011/08/15 23:08:28
Can we use the arraysize() macro in base/basictype
falken
2011/08/16 07:46:44
Done.
| |
| 132 | |
| 133 const char kWebKitStandardFontFamilyJapanese[] = | |
| 134 "webkit.webprefs.standard_font_family_map.Hrkt"; | |
| 135 const char kWebKitFixedFontFamilyJapanese[] = | |
| 136 "webkit.webprefs.fixed_font_family_map.Hrkt"; | |
| 137 const char kWebKitSerifFontFamilyJapanese[] = | |
| 138 "webkit.webprefs.serif_font_family_map.Hrkt"; | |
| 139 const char kWebKitSansSerifFontFamilyJapanese[] = | |
| 140 "webkit.webprefs.sansserif_font_family_map.Hrkt"; | |
| 141 const char kWebKitStandardFontFamilyKorean[] = | |
| 142 "webkit.webprefs.standard_font_family_map.Hang"; | |
| 143 const char kWebKitFixedFontFamilyKorean[] = | |
| 144 "webkit.webprefs.fixed_font_family_map.Hang"; | |
| 145 const char kWebKitSerifFontFamilyKorean[] = | |
| 146 "webkit.webprefs.serif_font_family_map.Hang"; | |
| 147 const char kWebKitSansSerifFontFamilyKorean[] = | |
| 148 "webkit.webprefs.sansserif_font_family_map.Hang"; | |
| 149 const char kWebKitStandardFontFamilySimplifiedHan[] = | |
| 150 "webkit.webprefs.standard_font_family_map.Hans"; | |
| 151 const char kWebKitFixedFontFamilySimplifiedHan[] = | |
| 152 "webkit.webprefs.fixed_font_family_map.Hans"; | |
| 153 const char kWebKitSerifFontFamilySimplifiedHan[] = | |
| 154 "webkit.webprefs.serif_font_family_map.Hans"; | |
| 155 const char kWebKitSansSerifFontFamilySimplifiedHan[] = | |
| 156 "webkit.webprefs.sansserif_font_family_map.Hans"; | |
| 157 const char kWebKitStandardFontFamilyTraditionalHan[] = | |
| 158 "webkit.webprefs.standard_font_family_map.Hant"; | |
| 159 const char kWebKitFixedFontFamilyTraditionalHan[] = | |
| 160 "webkit.webprefs.fixed_font_family_map.Hant"; | |
| 161 const char kWebKitSerifFontFamilyTraditionalHan[] = | |
| 162 "webkit.webprefs.serif_font_family_map.Hant"; | |
| 163 const char kWebKitSansSerifFontFamilyTraditionalHan[] = | |
| 164 "webkit.webprefs.sansserif_font_family_map.Hant"; | |
| 165 | |
| 113 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; | 166 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; |
| 114 const char kWebKitDefaultFixedFontSize[] = | 167 const char kWebKitDefaultFixedFontSize[] = |
| 115 "webkit.webprefs.default_fixed_font_size"; | 168 "webkit.webprefs.default_fixed_font_size"; |
| 116 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; | 169 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; |
| 117 const char kWebKitMinimumLogicalFontSize[] = | 170 const char kWebKitMinimumLogicalFontSize[] = |
| 118 "webkit.webprefs.minimum_logical_font_size"; | 171 "webkit.webprefs.minimum_logical_font_size"; |
| 119 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; | 172 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; |
| 120 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; | 173 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; |
| 121 const char kWebKitJavascriptCanOpenWindowsAutomatically[] = | 174 const char kWebKitJavascriptCanOpenWindowsAutomatically[] = |
| 122 "webkit.webprefs.javascript_can_open_windows_automatically"; | 175 "webkit.webprefs.javascript_can_open_windows_automatically"; |
| (...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1467 // Whether user-specified handlers for protocols and content types can be | 1520 // Whether user-specified handlers for protocols and content types can be |
| 1468 // specified. | 1521 // specified. |
| 1469 const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; | 1522 const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; |
| 1470 | 1523 |
| 1471 // Integers that specify the policy refresh rate for device- and user-policy in | 1524 // Integers that specify the policy refresh rate for device- and user-policy in |
| 1472 // milliseconds. Not all values are meaningful, so it is clamped to a sane range | 1525 // milliseconds. Not all values are meaningful, so it is clamped to a sane range |
| 1473 // by the cloud policy subsystem. | 1526 // by the cloud policy subsystem. |
| 1474 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; | 1527 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; |
| 1475 const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate"; | 1528 const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate"; |
| 1476 } // namespace prefs | 1529 } // namespace prefs |
| OLD | NEW |