OLD | NEW |
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/browser/ui/webui/options/advanced_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/advanced_options_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 { "networkPredictionEnabledDescription", | 106 { "networkPredictionEnabledDescription", |
107 IDS_NETWORK_PREDICTION_ENABLED_DESCRIPTION }, | 107 IDS_NETWORK_PREDICTION_ENABLED_DESCRIPTION }, |
108 { "privacyContentSettingsButton", | 108 { "privacyContentSettingsButton", |
109 IDS_OPTIONS_PRIVACY_CONTENT_SETTINGS_BUTTON }, | 109 IDS_OPTIONS_PRIVACY_CONTENT_SETTINGS_BUTTON }, |
110 { "privacyClearDataButton", | 110 { "privacyClearDataButton", |
111 IDS_OPTIONS_PRIVACY_CLEAR_DATA_BUTTON }, | 111 IDS_OPTIONS_PRIVACY_CLEAR_DATA_BUTTON }, |
112 { "linkDoctorPref", | 112 { "linkDoctorPref", |
113 IDS_OPTIONS_LINKDOCTOR_PREF }, | 113 IDS_OPTIONS_LINKDOCTOR_PREF }, |
114 { "suggestPref", | 114 { "suggestPref", |
115 IDS_OPTIONS_SUGGEST_PREF }, | 115 IDS_OPTIONS_SUGGEST_PREF }, |
| 116 #if defined(GOOGLE_CHROME_BUILD) |
| 117 { "spellingPref", |
| 118 IDS_OPTIONS_SPELLING_PREF }, |
| 119 #endif |
116 { "tabsToLinksPref", | 120 { "tabsToLinksPref", |
117 IDS_OPTIONS_TABS_TO_LINKS_PREF }, | 121 IDS_OPTIONS_TABS_TO_LINKS_PREF }, |
118 { "fontSettingsInfo", | 122 { "fontSettingsInfo", |
119 IDS_OPTIONS_FONTSETTINGS_INFO }, | 123 IDS_OPTIONS_FONTSETTINGS_INFO }, |
120 { "defaultZoomLevelLabel", | 124 { "defaultZoomLevelLabel", |
121 IDS_OPTIONS_DEFAULT_ZOOM_LEVEL_LABEL }, | 125 IDS_OPTIONS_DEFAULT_ZOOM_LEVEL_LABEL }, |
122 { "defaultFontSizeLabel", | 126 { "defaultFontSizeLabel", |
123 IDS_OPTIONS_DEFAULT_FONT_SIZE_LABEL }, | 127 IDS_OPTIONS_DEFAULT_FONT_SIZE_LABEL }, |
124 { "fontSizeLabelVerySmall", | 128 { "fontSizeLabelVerySmall", |
125 IDS_OPTIONS_FONT_SIZE_LABEL_VERY_SMALL }, | 129 IDS_OPTIONS_FONT_SIZE_LABEL_VERY_SMALL }, |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 web_ui_->CallJavascriptFunction( | 664 web_ui_->CallJavascriptFunction( |
661 "options.AdvancedOptions.SetUseSSL3CheckboxState", checked, disabled); | 665 "options.AdvancedOptions.SetUseSSL3CheckboxState", checked, disabled); |
662 } | 666 } |
663 { | 667 { |
664 base::FundamentalValue checked(tls1_enabled_.GetValue()); | 668 base::FundamentalValue checked(tls1_enabled_.GetValue()); |
665 base::FundamentalValue disabled(tls1_enabled_.IsManaged()); | 669 base::FundamentalValue disabled(tls1_enabled_.IsManaged()); |
666 web_ui_->CallJavascriptFunction( | 670 web_ui_->CallJavascriptFunction( |
667 "options.AdvancedOptions.SetUseTLS1CheckboxState", checked, disabled); | 671 "options.AdvancedOptions.SetUseTLS1CheckboxState", checked, disabled); |
668 } | 672 } |
669 } | 673 } |
OLD | NEW |