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

Side by Side Diff: chrome/browser/resources/options/advanced_options.js

Issue 7633012: Unbreak SSL/TLS preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 cr.define('options', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 // 9 //
10 // AdvancedOptions class 10 // AdvancedOptions class
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 }; 87 };
88 $('downloadLocationChangeButton').onclick = function(event) { 88 $('downloadLocationChangeButton').onclick = function(event) {
89 chrome.send('selectDownloadLocation'); 89 chrome.send('selectDownloadLocation');
90 }; 90 };
91 $('promptForDownload').onclick = function(event) { 91 $('promptForDownload').onclick = function(event) {
92 chrome.send('promptForDownloadAction', 92 chrome.send('promptForDownloadAction',
93 [String($('promptForDownload').checked)]); 93 [String($('promptForDownload').checked)]);
94 }; 94 };
95 } 95 }
96 96
97 $('sslCheckRevocation').onclick = function(event) {
98 chrome.send('checkRevocationCheckboxAction',
99 [String($('sslCheckRevocation').checked)]);
100 };
101 $('sslUseSSL3').onclick = function(event) {
102 chrome.send('useSSL3CheckboxAction',
103 [String($('sslUseSSL3').checked)]);
104 };
105 $('sslUseTLS1').onclick = function(event) {
106 chrome.send('useTLS1CheckboxAction',
107 [String($('sslUseTLS1').checked)]);
108 };
109
97 if ($('backgroundModeCheckbox')) { 110 if ($('backgroundModeCheckbox')) {
98 $('backgroundModeCheckbox').onclick = function(event) { 111 $('backgroundModeCheckbox').onclick = function(event) {
99 chrome.send('backgroundModeAction', 112 chrome.send('backgroundModeAction',
100 [String($('backgroundModeCheckbox').checked)]); 113 [String($('backgroundModeCheckbox').checked)]);
101 }; 114 };
102 } 115 }
103 116
104 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on 117 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on
105 // certain platforms, or could be enabled by a lab. 118 // certain platforms, or could be enabled by a lab.
106 if (!cr.isChromeOS) { 119 if (!cr.isChromeOS) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 }; 212 };
200 213
201 // Set the enabled state for the proxy settings button. 214 // Set the enabled state for the proxy settings button.
202 AdvancedOptions.SetupProxySettingsSection = function(disabled, label) { 215 AdvancedOptions.SetupProxySettingsSection = function(disabled, label) {
203 if (!cr.isChromeOS) { 216 if (!cr.isChromeOS) {
204 $('proxiesConfigureButton').disabled = disabled; 217 $('proxiesConfigureButton').disabled = disabled;
205 $('proxiesLabel').textContent = label; 218 $('proxiesLabel').textContent = label;
206 } 219 }
207 }; 220 };
208 221
222 // Set the checked state for the sslCheckRevocation checkbox.
223 AdvancedOptions.SetCheckRevocationCheckboxState = function(
224 checked, disabled) {
225 $('sslCheckRevocation').checked = checked;
226 $('sslCheckRevocation').disabled = disabled;
227 };
228
229 // Set the checked state for the sslUseSSL3 checkbox.
230 AdvancedOptions.SetUseSSL3CheckboxState = function(checked, disabled) {
231 $('sslUseSSL3').checked = checked;
232 $('sslUseSSL3').disabled = disabled;
233 };
234
235 // Set the checked state for the sslUseTLS1 checkbox.
236 AdvancedOptions.SetUseTLS1CheckboxState = function(checked, disabled) {
237 $('sslUseTLS1').checked = checked;
238 $('sslUseTLS1').disabled = disabled;
239 };
240
209 // Set the checked state for the backgroundModeCheckbox element. 241 // Set the checked state for the backgroundModeCheckbox element.
210 AdvancedOptions.SetBackgroundModeCheckboxState = function(checked) { 242 AdvancedOptions.SetBackgroundModeCheckboxState = function(checked) {
211 $('backgroundModeCheckbox').checked = checked; 243 $('backgroundModeCheckbox').checked = checked;
212 }; 244 };
213 245
214 // Set the Cloud Print proxy UI to enabled, disabled, or processing. 246 // Set the Cloud Print proxy UI to enabled, disabled, or processing.
215 AdvancedOptions.SetupCloudPrintProxySection = function( 247 AdvancedOptions.SetupCloudPrintProxySection = function(
216 disabled, label, allowed) { 248 disabled, label, allowed) {
217 if (!cr.isChromeOS) { 249 if (!cr.isChromeOS) {
218 $('cloudPrintProxyLabel').textContent = label; 250 $('cloudPrintProxyLabel').textContent = label;
(...skipping 17 matching lines...) Expand all
236 proxySectionElm.parentNode.removeChild(proxySectionElm); 268 proxySectionElm.parentNode.removeChild(proxySectionElm);
237 } 269 }
238 }; 270 };
239 271
240 // Export 272 // Export
241 return { 273 return {
242 AdvancedOptions: AdvancedOptions 274 AdvancedOptions: AdvancedOptions
243 }; 275 };
244 276
245 }); 277 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/advanced_options.html ('k') | chrome/browser/ui/webui/options/advanced_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698