| 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 #include "chrome/common/pref_font_webkit_names.h" |
| 8 | 9 |
| 9 namespace prefs { | 10 namespace prefs { |
| 10 | 11 |
| 11 // *************** PROFILE PREFS *************** | 12 // *************** PROFILE PREFS *************** |
| 12 // These are attached to the user profile | 13 // These are attached to the user profile |
| 13 | 14 |
| 14 // A string property indicating whether default apps should be installed | 15 // A string property indicating whether default apps should be installed |
| 15 // in this profile. Use the value "install" to enable defaults apps, or | 16 // in this profile. Use the value "install" to enable defaults apps, or |
| 16 // "noinstall" to disable them. This property is usually set in the | 17 // "noinstall" to disable them. This property is usually set in the |
| 17 // master_preferences and copied into the profile preferences on first run. | 18 // master_preferences and copied into the profile preferences on first run. |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 const char kWebKitOldSansSerifFontFamily[] = | 172 const char kWebKitOldSansSerifFontFamily[] = |
| 172 "webkit.webprefs.sansserif_font_family"; | 173 "webkit.webprefs.sansserif_font_family"; |
| 173 const char kWebKitOldCursiveFontFamily[] = | 174 const char kWebKitOldCursiveFontFamily[] = |
| 174 "webkit.webprefs.cursive_font_family"; | 175 "webkit.webprefs.cursive_font_family"; |
| 175 const char kWebKitOldFantasyFontFamily[] = | 176 const char kWebKitOldFantasyFontFamily[] = |
| 176 "webkit.webprefs.fantasy_font_family"; | 177 "webkit.webprefs.fantasy_font_family"; |
| 177 | 178 |
| 178 // If these change, the corresponding enums in the extension API | 179 // If these change, the corresponding enums in the extension API |
| 179 // experimental.fontSettings.json must also change. | 180 // experimental.fontSettings.json must also change. |
| 180 const char* const kWebKitScriptsForFontFamilyMaps[] = { | 181 const char* const kWebKitScriptsForFontFamilyMaps[] = { |
| 181 "Afak", "Arab", "Armi", "Armn", "Avst", "Bali", "Bamu", "Bass", "Batk", | 182 #define EXPAND_SCRIPT_FONT(x, script_name) script_name , |
| 182 "Beng", "Blis", "Bopo", "Brah", "Brai", "Bugi", "Buhd", "Cakm", "Cans", | 183 #include "chrome/common/pref_font_script_names-inl.h" |
| 183 "Cari", "Cham", "Cher", "Cirt", "Copt", "Cprt", "Cyrl", "Cyrs", "Deva", | 184 ALL_FONT_SCRIPTS("unused param") |
| 184 "Dsrt", "Dupl", "Egyd", "Egyh", "Egyp", "Elba", "Ethi", "Geor", "Geok", | 185 #undef EXPAND_SCRIPT_FONT |
| 185 "Glag", "Goth", "Gran", "Grek", "Gujr", "Guru", "Hang", "Hani", "Hano", | |
| 186 "Hans", "Hant", "Hebr", "Hluw", "Hmng", "Hung", "Inds", "Ital", "Java", | |
| 187 "Jpan", "Jurc", "Kali", "Khar", "Khmr", "Khoj", "Knda", "Kpel", "Kthi", | |
| 188 "Lana", "Laoo", "Latf", "Latg", "Latn", "Lepc", "Limb", "Lina", "Linb", | |
| 189 "Lisu", "Loma", "Lyci", "Lydi", "Mand", "Mani", "Maya", "Mend", "Merc", | |
| 190 "Mero", "Mlym", "Moon", "Mong", "Mroo", "Mtei", "Mymr", "Narb", "Nbat", | |
| 191 "Nkgb", "Nkoo", "Nshu", "Ogam", "Olck", "Orkh", "Orya", "Osma", "Palm", | |
| 192 "Perm", "Phag", "Phli", "Phlp", "Phlv", "Phnx", "Plrd", "Prti", "Rjng", | |
| 193 "Roro", "Runr", "Samr", "Sara", "Sarb", "Saur", "Sgnw", "Shaw", "Shrd", | |
| 194 "Sind", "Sinh", "Sora", "Sund", "Sylo", "Syrc", "Syre", "Syrj", "Syrn", | |
| 195 "Tagb", "Takr", "Tale", "Talu", "Taml", "Tang", "Tavt", "Telu", "Teng", | |
| 196 "Tfng", "Tglg", "Thaa", "Thai", "Tibt", "Tirh", "Ugar", "Vaii", "Visp", | |
| 197 "Wara", "Wole", "Xpeo", "Xsux", "Yiii", "Zmth", "Zsym", "Zyyy" | |
| 198 }; | 186 }; |
| 199 | 187 |
| 200 const size_t kWebKitScriptsForFontFamilyMapsLength = | 188 const size_t kWebKitScriptsForFontFamilyMapsLength = |
| 201 arraysize(kWebKitScriptsForFontFamilyMaps); | 189 arraysize(kWebKitScriptsForFontFamilyMaps); |
| 202 | 190 |
| 203 // Strings for WebKit font family preferences. If these change, the pref prefix | 191 // Strings for WebKit font family preferences. If these change, the pref prefix |
| 204 // in pref_names_util.cc and the pref format in font_settings_api.cc must also | 192 // in pref_names_util.cc and the pref format in font_settings_api.cc must also |
| 205 // change. | 193 // change. |
| 206 const char kWebKitStandardFontFamilyMap[] = | 194 const char kWebKitStandardFontFamilyMap[] = |
| 207 "webkit.webprefs.fonts.standard"; | 195 WEBKIT_WEBPREFS_FONTS_STANDARD; |
| 208 const char kWebKitFixedFontFamilyMap[] = | 196 const char kWebKitFixedFontFamilyMap[] = |
| 209 "webkit.webprefs.fonts.fixed"; | 197 WEBKIT_WEBPREFS_FONTS_FIXED; |
| 210 const char kWebKitSerifFontFamilyMap[] = | 198 const char kWebKitSerifFontFamilyMap[] = |
| 211 "webkit.webprefs.fonts.serif"; | 199 WEBKIT_WEBPREFS_FONTS_SERIF; |
| 212 const char kWebKitSansSerifFontFamilyMap[] = | 200 const char kWebKitSansSerifFontFamilyMap[] = |
| 213 "webkit.webprefs.fonts.sansserif"; | 201 WEBKIT_WEBPREFS_FONTS_SANSERIF; |
| 214 const char kWebKitCursiveFontFamilyMap[] = | 202 const char kWebKitCursiveFontFamilyMap[] = |
| 215 "webkit.webprefs.fonts.cursive"; | 203 WEBKIT_WEBPREFS_FONTS_CURSIVE; |
| 216 const char kWebKitFantasyFontFamilyMap[] = | 204 const char kWebKitFantasyFontFamilyMap[] = |
| 217 "webkit.webprefs.fonts.fantasy"; | 205 WEBKIT_WEBPREFS_FONTS_FANTASY; |
| 218 const char kWebKitPictographFontFamilyMap[] = | 206 const char kWebKitPictographFontFamilyMap[] = |
| 219 "webkit.webprefs.fonts.pictograph"; | 207 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH; |
| 220 const char kWebKitStandardFontFamilyArabic[] = | 208 const char kWebKitStandardFontFamilyArabic[] = |
| 221 "webkit.webprefs.fonts.standard.Arab"; | 209 "webkit.webprefs.fonts.standard.Arab"; |
| 222 const char kWebKitFixedFontFamilyArabic[] = | 210 const char kWebKitFixedFontFamilyArabic[] = |
| 223 "webkit.webprefs.fonts.fixed.Arab"; | 211 "webkit.webprefs.fonts.fixed.Arab"; |
| 224 const char kWebKitSerifFontFamilyArabic[] = | 212 const char kWebKitSerifFontFamilyArabic[] = |
| 225 "webkit.webprefs.fonts.serif.Arab"; | 213 "webkit.webprefs.fonts.serif.Arab"; |
| 226 const char kWebKitSansSerifFontFamilyArabic[] = | 214 const char kWebKitSansSerifFontFamilyArabic[] = |
| 227 "webkit.webprefs.fonts.sansserif.Arab"; | 215 "webkit.webprefs.fonts.sansserif.Arab"; |
| 228 const char kWebKitStandardFontFamilyCyrillic[] = | 216 const char kWebKitStandardFontFamilyCyrillic[] = |
| 229 "webkit.webprefs.fonts.standard.Cyrl"; | 217 "webkit.webprefs.fonts.standard.Cyrl"; |
| (...skipping 2134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 const char kRLZBrand[] = "rlz.brand"; | 2352 const char kRLZBrand[] = "rlz.brand"; |
| 2365 // Whether RLZ pings are disabled. | 2353 // Whether RLZ pings are disabled. |
| 2366 const char kRLZDisabled[] = "rlz.disabled"; | 2354 const char kRLZDisabled[] = "rlz.disabled"; |
| 2367 #endif | 2355 #endif |
| 2368 | 2356 |
| 2369 // The directory in user data dir that contains the profile to be used with the | 2357 // The directory in user data dir that contains the profile to be used with the |
| 2370 // app launcher. | 2358 // app launcher. |
| 2371 extern const char kAppListProfile[] = "app_list.profile"; | 2359 extern const char kAppListProfile[] = "app_list.profile"; |
| 2372 | 2360 |
| 2373 } // namespace prefs | 2361 } // namespace prefs |
| OLD | NEW |