| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 const char kWebKitOldStandardFontFamily[] = | 158 const char kWebKitOldStandardFontFamily[] = |
| 159 "webkit.webprefs.standard_font_family"; | 159 "webkit.webprefs.standard_font_family"; |
| 160 const char kWebKitOldFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; | 160 const char kWebKitOldFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; |
| 161 const char kWebKitOldSerifFontFamily[] = "webkit.webprefs.serif_font_family"; | 161 const char kWebKitOldSerifFontFamily[] = "webkit.webprefs.serif_font_family"; |
| 162 const char kWebKitOldSansSerifFontFamily[] = | 162 const char kWebKitOldSansSerifFontFamily[] = |
| 163 "webkit.webprefs.sansserif_font_family"; | 163 "webkit.webprefs.sansserif_font_family"; |
| 164 const char kWebKitOldCursiveFontFamily[] = | 164 const char kWebKitOldCursiveFontFamily[] = |
| 165 "webkit.webprefs.cursive_font_family"; | 165 "webkit.webprefs.cursive_font_family"; |
| 166 const char kWebKitOldFantasyFontFamily[] = | 166 const char kWebKitOldFantasyFontFamily[] = |
| 167 "webkit.webprefs.fantasy_font_family"; | 167 "webkit.webprefs.fantasy_font_family"; |
| 168 const char kWebKitStandardFontFamilyMap[] = | |
| 169 "webkit.webprefs.fonts.standard"; | |
| 170 const char kWebKitFixedFontFamilyMap[] = | |
| 171 "webkit.webprefs.fonts.fixed"; | |
| 172 const char kWebKitSerifFontFamilyMap[] = | |
| 173 "webkit.webprefs.fonts.serif"; | |
| 174 const char kWebKitSansSerifFontFamilyMap[] = | |
| 175 "webkit.webprefs.fonts.sansserif"; | |
| 176 const char kWebKitCursiveFontFamilyMap[] = | |
| 177 "webkit.webprefs.fonts.cursive"; | |
| 178 const char kWebKitFantasyFontFamilyMap[] = | |
| 179 "webkit.webprefs.fonts.fantasy"; | |
| 180 const char kWebKitPictographFontFamilyMap[] = | |
| 181 "webkit.webprefs.fonts.pictograph"; | |
| 182 | 168 |
| 183 // If these change, the corresponding enums in the extension API | 169 // If these change, the corresponding enums in the extension API |
| 184 // experimental.fontSettings.json must also change. | 170 // experimental.fontSettings.json must also change. |
| 185 const char* const kWebKitScriptsForFontFamilyMaps[] = { | 171 const char* const kWebKitScriptsForFontFamilyMaps[] = { |
| 186 "Afak", "Arab", "Armi", "Armn", "Avst", "Bali", "Bamu", "Bass", "Batk", | 172 "Afak", "Arab", "Armi", "Armn", "Avst", "Bali", "Bamu", "Bass", "Batk", |
| 187 "Beng", "Blis", "Bopo", "Brah", "Brai", "Bugi", "Buhd", "Cakm", "Cans", | 173 "Beng", "Blis", "Bopo", "Brah", "Brai", "Bugi", "Buhd", "Cakm", "Cans", |
| 188 "Cari", "Cham", "Cher", "Cirt", "Copt", "Cprt", "Cyrl", "Cyrs", "Deva", | 174 "Cari", "Cham", "Cher", "Cirt", "Copt", "Cprt", "Cyrl", "Cyrs", "Deva", |
| 189 "Dsrt", "Dupl", "Egyd", "Egyh", "Egyp", "Elba", "Ethi", "Geor", "Geok", | 175 "Dsrt", "Dupl", "Egyd", "Egyh", "Egyp", "Elba", "Ethi", "Geor", "Geok", |
| 190 "Glag", "Goth", "Gran", "Grek", "Gujr", "Guru", "Hang", "Hani", "Hano", | 176 "Glag", "Goth", "Gran", "Grek", "Gujr", "Guru", "Hang", "Hani", "Hano", |
| 191 "Hans", "Hant", "Hebr", "Hluw", "Hmng", "Hung", "Inds", "Ital", "Java", | 177 "Hans", "Hant", "Hebr", "Hluw", "Hmng", "Hung", "Inds", "Ital", "Java", |
| 192 "Jpan", "Jurc", "Kali", "Khar", "Khmr", "Khoj", "Knda", "Kpel", "Kthi", | 178 "Jpan", "Jurc", "Kali", "Khar", "Khmr", "Khoj", "Knda", "Kpel", "Kthi", |
| 193 "Lana", "Laoo", "Latf", "Latg", "Latn", "Lepc", "Limb", "Lina", "Linb", | 179 "Lana", "Laoo", "Latf", "Latg", "Latn", "Lepc", "Limb", "Lina", "Linb", |
| 194 "Lisu", "Loma", "Lyci", "Lydi", "Mand", "Mani", "Maya", "Mend", "Merc", | 180 "Lisu", "Loma", "Lyci", "Lydi", "Mand", "Mani", "Maya", "Mend", "Merc", |
| 195 "Mero", "Mlym", "Moon", "Mong", "Mroo", "Mtei", "Mymr", "Narb", "Nbat", | 181 "Mero", "Mlym", "Moon", "Mong", "Mroo", "Mtei", "Mymr", "Narb", "Nbat", |
| 196 "Nkgb", "Nkoo", "Nshu", "Ogam", "Olck", "Orkh", "Orya", "Osma", "Palm", | 182 "Nkgb", "Nkoo", "Nshu", "Ogam", "Olck", "Orkh", "Orya", "Osma", "Palm", |
| 197 "Perm", "Phag", "Phli", "Phlp", "Phlv", "Phnx", "Plrd", "Prti", "Rjng", | 183 "Perm", "Phag", "Phli", "Phlp", "Phlv", "Phnx", "Plrd", "Prti", "Rjng", |
| 198 "Roro", "Runr", "Samr", "Sara", "Sarb", "Saur", "Sgnw", "Shaw", "Shrd", | 184 "Roro", "Runr", "Samr", "Sara", "Sarb", "Saur", "Sgnw", "Shaw", "Shrd", |
| 199 "Sind", "Sinh", "Sora", "Sund", "Sylo", "Syrc", "Syre", "Syrj", "Syrn", | 185 "Sind", "Sinh", "Sora", "Sund", "Sylo", "Syrc", "Syre", "Syrj", "Syrn", |
| 200 "Tagb", "Takr", "Tale", "Talu", "Taml", "Tang", "Tavt", "Telu", "Teng", | 186 "Tagb", "Takr", "Tale", "Talu", "Taml", "Tang", "Tavt", "Telu", "Teng", |
| 201 "Tfng", "Tglg", "Thaa", "Thai", "Tibt", "Tirh", "Ugar", "Vaii", "Visp", | 187 "Tfng", "Tglg", "Thaa", "Thai", "Tibt", "Tirh", "Ugar", "Vaii", "Visp", |
| 202 "Wara", "Wole", "Xpeo", "Xsux", "Yiii", "Zmth", "Zsym", "Zyyy" | 188 "Wara", "Wole", "Xpeo", "Xsux", "Yiii", "Zmth", "Zsym", "Zyyy" |
| 203 }; | 189 }; |
| 204 | 190 |
| 205 const size_t kWebKitScriptsForFontFamilyMapsLength = | 191 const size_t kWebKitScriptsForFontFamilyMapsLength = |
| 206 arraysize(kWebKitScriptsForFontFamilyMaps); | 192 arraysize(kWebKitScriptsForFontFamilyMaps); |
| 207 | 193 |
| 208 // WebKit preferences. | 194 // Strings for WebKit font family preferences. If these change, the pref prefix |
| 195 // in pref_names_util.cc and the pref format in font_settings_api.cc must also |
| 196 // change. |
| 197 const char kWebKitStandardFontFamilyMap[] = |
| 198 "webkit.webprefs.fonts.standard"; |
| 199 const char kWebKitFixedFontFamilyMap[] = |
| 200 "webkit.webprefs.fonts.fixed"; |
| 201 const char kWebKitSerifFontFamilyMap[] = |
| 202 "webkit.webprefs.fonts.serif"; |
| 203 const char kWebKitSansSerifFontFamilyMap[] = |
| 204 "webkit.webprefs.fonts.sansserif"; |
| 205 const char kWebKitCursiveFontFamilyMap[] = |
| 206 "webkit.webprefs.fonts.cursive"; |
| 207 const char kWebKitFantasyFontFamilyMap[] = |
| 208 "webkit.webprefs.fonts.fantasy"; |
| 209 const char kWebKitPictographFontFamilyMap[] = |
| 210 "webkit.webprefs.fonts.pictograph"; |
| 209 const char kWebKitStandardFontFamilyArabic[] = | 211 const char kWebKitStandardFontFamilyArabic[] = |
| 210 "webkit.webprefs.fonts.standard.Arab"; | 212 "webkit.webprefs.fonts.standard.Arab"; |
| 211 const char kWebKitFixedFontFamilyArabic[] = | 213 const char kWebKitFixedFontFamilyArabic[] = |
| 212 "webkit.webprefs.fonts.fixed.Arab"; | 214 "webkit.webprefs.fonts.fixed.Arab"; |
| 213 const char kWebKitSerifFontFamilyArabic[] = | 215 const char kWebKitSerifFontFamilyArabic[] = |
| 214 "webkit.webprefs.fonts.serif.Arab"; | 216 "webkit.webprefs.fonts.serif.Arab"; |
| 215 const char kWebKitSansSerifFontFamilyArabic[] = | 217 const char kWebKitSansSerifFontFamilyArabic[] = |
| 216 "webkit.webprefs.fonts.sansserif.Arab"; | 218 "webkit.webprefs.fonts.sansserif.Arab"; |
| 217 const char kWebKitStandardFontFamilyCyrillic[] = | 219 const char kWebKitStandardFontFamilyCyrillic[] = |
| 218 "webkit.webprefs.fonts.standard.Cyrl"; | 220 "webkit.webprefs.fonts.standard.Cyrl"; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 "webkit.webprefs.fonts.sansserif.Hans"; | 260 "webkit.webprefs.fonts.sansserif.Hans"; |
| 259 const char kWebKitStandardFontFamilyTraditionalHan[] = | 261 const char kWebKitStandardFontFamilyTraditionalHan[] = |
| 260 "webkit.webprefs.fonts.standard.Hant"; | 262 "webkit.webprefs.fonts.standard.Hant"; |
| 261 const char kWebKitFixedFontFamilyTraditionalHan[] = | 263 const char kWebKitFixedFontFamilyTraditionalHan[] = |
| 262 "webkit.webprefs.fonts.fixed.Hant"; | 264 "webkit.webprefs.fonts.fixed.Hant"; |
| 263 const char kWebKitSerifFontFamilyTraditionalHan[] = | 265 const char kWebKitSerifFontFamilyTraditionalHan[] = |
| 264 "webkit.webprefs.fonts.serif.Hant"; | 266 "webkit.webprefs.fonts.serif.Hant"; |
| 265 const char kWebKitSansSerifFontFamilyTraditionalHan[] = | 267 const char kWebKitSansSerifFontFamilyTraditionalHan[] = |
| 266 "webkit.webprefs.fonts.sansserif.Hant"; | 268 "webkit.webprefs.fonts.sansserif.Hant"; |
| 267 | 269 |
| 270 // WebKit preferences. |
| 268 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; | 271 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; |
| 269 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; | 272 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; |
| 270 const char kWebKitShrinksStandaloneImagesToFit[] = | 273 const char kWebKitShrinksStandaloneImagesToFit[] = |
| 271 "webkit.webprefs.shrinks_standalone_images_to_fit"; | 274 "webkit.webprefs.shrinks_standalone_images_to_fit"; |
| 272 const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; | 275 const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; |
| 273 const char kWebKitUsesUniversalDetector[] = | 276 const char kWebKitUsesUniversalDetector[] = |
| 274 "webkit.webprefs.uses_universal_detector"; | 277 "webkit.webprefs.uses_universal_detector"; |
| 275 const char kWebKitTextAreasAreResizable[] = | 278 const char kWebKitTextAreasAreResizable[] = |
| 276 "webkit.webprefs.text_areas_are_resizable"; | 279 "webkit.webprefs.text_areas_are_resizable"; |
| 277 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; | 280 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; |
| (...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2127 // Tracks the time of the last shown warning. Used to reset | 2130 // Tracks the time of the last shown warning. Used to reset |
| 2128 // |network_profile.warnings_left| after a silence period. | 2131 // |network_profile.warnings_left| after a silence period. |
| 2129 const char kNetworkProfileLastWarningTime[] = | 2132 const char kNetworkProfileLastWarningTime[] = |
| 2130 "network_profile.last_warning_time"; | 2133 "network_profile.last_warning_time"; |
| 2131 | 2134 |
| 2132 // 64-bit serialization of the time last policy usage statistics were collected | 2135 // 64-bit serialization of the time last policy usage statistics were collected |
| 2133 // by UMA_HISTOGRAM_ENUMERATION. | 2136 // by UMA_HISTOGRAM_ENUMERATION. |
| 2134 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; | 2137 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; |
| 2135 | 2138 |
| 2136 } // namespace prefs | 2139 } // namespace prefs |
| OLD | NEW |