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

Side by Side Diff: chrome/browser/dom_ui/options/advanced_options_handler.cc

Issue 6296017: dom-ui settings: enable languages & spell checker settings for all platforms.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: code review tweak Created 9 years, 11 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) 2010 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/browser/dom_ui/options/advanced_options_handler.h" 5 #include "chrome/browser/dom_ui/options/advanced_options_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 l10n_util::GetStringUTF16(IDS_OPTIONS_FONT_SIZE_LABEL_MEDIUM)); 133 l10n_util::GetStringUTF16(IDS_OPTIONS_FONT_SIZE_LABEL_MEDIUM));
134 localized_strings->SetString("fontSizeLabelLarge", 134 localized_strings->SetString("fontSizeLabelLarge",
135 l10n_util::GetStringUTF16(IDS_OPTIONS_FONT_SIZE_LABEL_LARGE)); 135 l10n_util::GetStringUTF16(IDS_OPTIONS_FONT_SIZE_LABEL_LARGE));
136 localized_strings->SetString("fontSizeLabelVeryLarge", 136 localized_strings->SetString("fontSizeLabelVeryLarge",
137 l10n_util::GetStringUTF16(IDS_OPTIONS_FONT_SIZE_LABEL_VERY_LARGE)); 137 l10n_util::GetStringUTF16(IDS_OPTIONS_FONT_SIZE_LABEL_VERY_LARGE));
138 localized_strings->SetString("fontSizeLabelCustom", 138 localized_strings->SetString("fontSizeLabelCustom",
139 l10n_util::GetStringUTF16(IDS_OPTIONS_FONT_SIZE_LABEL_CUSTOM)); 139 l10n_util::GetStringUTF16(IDS_OPTIONS_FONT_SIZE_LABEL_CUSTOM));
140 localized_strings->SetString("fontSettingsCustomizeFontsButton", 140 localized_strings->SetString("fontSettingsCustomizeFontsButton",
141 l10n_util::GetStringUTF16( 141 l10n_util::GetStringUTF16(
142 IDS_OPTIONS_FONTSETTINGS_CUSTOMIZE_FONTS_BUTTON)); 142 IDS_OPTIONS_FONTSETTINGS_CUSTOMIZE_FONTS_BUTTON));
143 localized_strings->SetString("languageAndSpellCheckSettingsButton",
144 l10n_util::GetStringUTF16(
145 IDS_OPTIONS_LANGUAGE_AND_SPELLCHECK_BUTTON));
143 localized_strings->SetString("advancedSectionTitlePrivacy", 146 localized_strings->SetString("advancedSectionTitlePrivacy",
144 dom_options_util::StripColon( 147 dom_options_util::StripColon(
145 l10n_util::GetStringUTF16( 148 l10n_util::GetStringUTF16(
146 IDS_OPTIONS_ADVANCED_SECTION_TITLE_PRIVACY))); 149 IDS_OPTIONS_ADVANCED_SECTION_TITLE_PRIVACY)));
147 localized_strings->SetString("advancedSectionTitleContent", 150 localized_strings->SetString("advancedSectionTitleContent",
148 dom_options_util::StripColon( 151 dom_options_util::StripColon(
149 l10n_util::GetStringUTF16( 152 l10n_util::GetStringUTF16(
150 IDS_OPTIONS_ADVANCED_SECTION_TITLE_CONTENT))); 153 IDS_OPTIONS_ADVANCED_SECTION_TITLE_CONTENT)));
151 localized_strings->SetString("advancedSectionTitleSecurity", 154 localized_strings->SetString("advancedSectionTitleSecurity",
152 dom_options_util::StripColon( 155 dom_options_util::StripColon(
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 FundamentalValue useSSL3Value(useSSL3Setting); 623 FundamentalValue useSSL3Value(useSSL3Setting);
621 dom_ui_->CallJavascriptFunction( 624 dom_ui_->CallJavascriptFunction(
622 L"options.AdvancedOptions.SetUseSSL3CheckboxState", 625 L"options.AdvancedOptions.SetUseSSL3CheckboxState",
623 useSSL3Value, disabledValue); 626 useSSL3Value, disabledValue);
624 FundamentalValue useTLS1Value(useTLS1Setting); 627 FundamentalValue useTLS1Value(useTLS1Setting);
625 dom_ui_->CallJavascriptFunction( 628 dom_ui_->CallJavascriptFunction(
626 L"options.AdvancedOptions.SetUseTLS1CheckboxState", 629 L"options.AdvancedOptions.SetUseTLS1CheckboxState",
627 useTLS1Value, disabledValue); 630 useTLS1Value, disabledValue);
628 } 631 }
629 #endif 632 #endif
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/options/language_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698