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

Unified Diff: chrome/browser/dom_ui/options/font_settings_handler.cc

Issue 3584019: dom-ui settings: Add setting for setting the minimum font size.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/dom_ui/options/core_options_handler.cc ('k') | chrome/browser/options_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/options/font_settings_handler.cc
===================================================================
--- chrome/browser/dom_ui/options/font_settings_handler.cc (revision 62351)
+++ chrome/browser/dom_ui/options/font_settings_handler.cc (working copy)
@@ -46,6 +46,11 @@
localized_strings->SetString("fontSettingsSizeLabel",
l10n_util::GetStringUTF16(
IDS_FONT_LANGUAGE_SETTING_FONT_SIZE_SELECTOR_LABEL));
+
+ localized_strings->SetString("fontSettingsMinimumSizeTitle",
+ l10n_util::GetStringUTF16(
+ IDS_FONT_LANGUAGE_SETTING_MINIMUM_FONT_SIZE_TITLE));
+
localized_strings->SetString("fontSettingsEncodingTitle",
l10n_util::GetStringUTF16(
IDS_FONT_LANGUAGE_SETTING_FONT_SUB_DIALOG_ENCODING_TITLE));
@@ -70,6 +75,27 @@
}
localized_strings->Set("fontSettingsFontSizeList", font_size_list);
+ // Miniumum font size
+ int minimum_font_sizes[] = { 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 22,
+ 24 };
+ count = arraysize(minimum_font_sizes);
+ ListValue* minimum_font_size_list = new ListValue;
+ ListValue* default_option = new ListValue();
+ default_option->Append(Value::CreateIntegerValue(0));
+ default_option->Append(Value::CreateStringValue(
+ l10n_util::GetStringUTF16(
+ IDS_FONT_LANGUAGE_SETTING_NO_MINIMUM_FONT_SIZE_LABEL)));
+ minimum_font_size_list->Append(default_option);
+ for (int i = 0; i < count; i++) {
+ ListValue* option = new ListValue();
+ option->Append(Value::CreateIntegerValue(minimum_font_sizes[i]));
+ option->Append(
+ Value::CreateStringValue(base::IntToString(minimum_font_sizes[i])));
+ minimum_font_size_list->Append(option);
+ }
+ localized_strings->Set("fontSettingsMinimumFontSizeList",
+ minimum_font_size_list);
+
// Encodings
count = CharacterEncoding::GetSupportCanonicalEncodingCount();
ListValue* encoding_list = new ListValue;
« no previous file with comments | « chrome/browser/dom_ui/options/core_options_handler.cc ('k') | chrome/browser/options_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698