Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: chrome/common/pref_names.cc

Issue 7606028: Pass per-script fonts to WebKit settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch to commit Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
8
7 namespace prefs { 9 namespace prefs {
8 10
9 // *************** PROFILE PREFS *************** 11 // *************** PROFILE PREFS ***************
10 // These are attached to the user profile 12 // These are attached to the user profile
11 13
12 // A counter that controls whether the apps promo is shown in the app launcher 14 // A counter that controls whether the apps promo is shown in the app launcher
13 // or not. 15 // or not.
14 const char kAppsPromoCounter[] = "apps_promo_counter"; 16 const char kAppsPromoCounter[] = "apps_promo_counter";
15 17
16 // Whether we have installed default apps yet in this profile. 18 // Whether we have installed default apps yet in this profile.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const char kPopupWhitelistedHosts[] = "profile.popup_whitelisted_sites"; 105 const char kPopupWhitelistedHosts[] = "profile.popup_whitelisted_sites";
104 106
105 // WebKit preferences. 107 // WebKit preferences.
106 const char kWebKitStandardFontFamily[] = "webkit.webprefs.standard_font_family"; 108 const char kWebKitStandardFontFamily[] = "webkit.webprefs.standard_font_family";
107 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; 109 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fixed_font_family";
108 const char kWebKitSerifFontFamily[] = "webkit.webprefs.serif_font_family"; 110 const char kWebKitSerifFontFamily[] = "webkit.webprefs.serif_font_family";
109 const char kWebKitSansSerifFontFamily[] = 111 const char kWebKitSansSerifFontFamily[] =
110 "webkit.webprefs.sansserif_font_family"; 112 "webkit.webprefs.sansserif_font_family";
111 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family"; 113 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.cursive_font_family";
112 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family"; 114 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fantasy_font_family";
115 const char kWebKitStandardFontFamilyMap[] =
116 "webkit.webprefs.fonts.standard";
117 const char kWebKitFixedFontFamilyMap[] =
118 "webkit.webprefs.fonts.fixed";
119 const char kWebKitSerifFontFamilyMap[] =
120 "webkit.webprefs.fonts.serif";
121 const char kWebKitSansSerifFontFamilyMap[] =
122 "webkit.webprefs.fonts.sansserif";
123 const char kWebKitCursiveFontFamilyMap[] =
124 "webkit.webprefs.fonts.cursive";
125 const char kWebKitFantasyFontFamilyMap[] =
126 "webkit.webprefs.fonts.fantasy";
127
128 // TODO(falken): Add all the scripts we should support.
129 const char* kWebKitScriptsForFontFamilyMaps[] =
130 { "Arab", "Hang", "Hans", "Hant", "Hrkt" };
131 const size_t kWebKitScriptsForFontFamilyMapsLength =
132 arraysize(kWebKitScriptsForFontFamilyMaps);
133
134 const char kWebKitStandardFontFamilyArabic[] =
135 "webkit.webprefs.fonts.standard.Arab";
136 const char kWebKitFixedFontFamilyArabic[] =
137 "webkit.webprefs.fonts.fixed.Arab";
138 const char kWebKitSerifFontFamilyArabic[] =
139 "webkit.webprefs.fonts.serif.Arab";
140 const char kWebKitSansSerifFontFamilyArabic[] =
141 "webkit.webprefs.fonts.sansserif.Arab";
142 const char kWebKitStandardFontFamilyJapanese[] =
143 "webkit.webprefs.fonts.standard.Hrkt";
144 const char kWebKitFixedFontFamilyJapanese[] =
145 "webkit.webprefs.fonts.fixed.Hrkt";
146 const char kWebKitSerifFontFamilyJapanese[] =
147 "webkit.webprefs.fonts.serif.Hrkt";
148 const char kWebKitSansSerifFontFamilyJapanese[] =
149 "webkit.webprefs.fonts.sansserif.Hrkt";
150 const char kWebKitStandardFontFamilyKorean[] =
151 "webkit.webprefs.fonts.standard.Hang";
152 const char kWebKitFixedFontFamilyKorean[] =
153 "webkit.webprefs.fonts.fixed.Hang";
154 const char kWebKitSerifFontFamilyKorean[] =
155 "webkit.webprefs.fonts.serif.Hang";
156 const char kWebKitSansSerifFontFamilyKorean[] =
157 "webkit.webprefs.fonts.sansserif.Hang";
158 const char kWebKitStandardFontFamilySimplifiedHan[] =
159 "webkit.webprefs.fonts.standard.Hans";
160 const char kWebKitFixedFontFamilySimplifiedHan[] =
161 "webkit.webprefs.fonts.fixed.Hans";
162 const char kWebKitSerifFontFamilySimplifiedHan[] =
163 "webkit.webprefs.fonts.serif.Hans";
164 const char kWebKitSansSerifFontFamilySimplifiedHan[] =
165 "webkit.webprefs.fonts.sansserif.Hans";
166 const char kWebKitStandardFontFamilyTraditionalHan[] =
167 "webkit.webprefs.fonts.standard.Hant";
168 const char kWebKitFixedFontFamilyTraditionalHan[] =
169 "webkit.webprefs.fonts.fixed.Hant";
170 const char kWebKitSerifFontFamilyTraditionalHan[] =
171 "webkit.webprefs.fonts.serif.Hant";
172 const char kWebKitSansSerifFontFamilyTraditionalHan[] =
173 "webkit.webprefs.fonts.sansserif.Hant";
174
113 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; 175 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
114 const char kWebKitDefaultFixedFontSize[] = 176 const char kWebKitDefaultFixedFontSize[] =
115 "webkit.webprefs.default_fixed_font_size"; 177 "webkit.webprefs.default_fixed_font_size";
116 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; 178 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
117 const char kWebKitMinimumLogicalFontSize[] = 179 const char kWebKitMinimumLogicalFontSize[] =
118 "webkit.webprefs.minimum_logical_font_size"; 180 "webkit.webprefs.minimum_logical_font_size";
119 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; 181 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
120 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; 182 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
121 const char kWebKitJavascriptCanOpenWindowsAutomatically[] = 183 const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
122 "webkit.webprefs.javascript_can_open_windows_automatically"; 184 "webkit.webprefs.javascript_can_open_windows_automatically";
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 // specified. 1561 // specified.
1500 const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; 1562 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
1501 1563
1502 // Integers that specify the policy refresh rate for device- and user-policy in 1564 // Integers that specify the policy refresh rate for device- and user-policy in
1503 // milliseconds. Not all values are meaningful, so it is clamped to a sane range 1565 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
1504 // by the cloud policy subsystem. 1566 // by the cloud policy subsystem.
1505 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; 1567 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
1506 const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate"; 1568 const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate";
1507 1569
1508 } // namespace prefs 1570 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698