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

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

Issue 7314020: Update UMA user actions parsing, primarily to include WebUI metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 9 years, 5 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 [String($('promptForDownload').checked)]); 93 [String($('promptForDownload').checked)]);
94 }; 94 };
95 } else { 95 } else {
96 $('proxiesConfigureButton').onclick = function(event) { 96 $('proxiesConfigureButton').onclick = function(event) {
97 OptionsPage.navigateToPage('proxy'); 97 OptionsPage.navigateToPage('proxy');
98 chrome.send('coreOptionsUserMetricsAction', 98 chrome.send('coreOptionsUserMetricsAction',
99 ['Options_ShowProxySettings']); 99 ['Options_ShowProxySettings']);
100 }; 100 };
101 } 101 }
102 102
103 $('sslCheckRevocation').onclick = function(event) {
104 chrome.send('checkRevocationCheckboxAction',
105 [String($('sslCheckRevocation').checked)]);
106 };
107 $('sslUseSSL3').onclick = function(event) {
108 chrome.send('useSSL3CheckboxAction',
109 [String($('sslUseSSL3').checked)]);
110 };
111 $('sslUseTLS1').onclick = function(event) {
112 chrome.send('useTLS1CheckboxAction',
113 [String($('sslUseTLS1').checked)]);
114 };
115 if ($('backgroundModeCheckbox')) { 103 if ($('backgroundModeCheckbox')) {
116 $('backgroundModeCheckbox').onclick = function(event) { 104 $('backgroundModeCheckbox').onclick = function(event) {
117 chrome.send('backgroundModeAction', 105 chrome.send('backgroundModeAction',
118 [String($('backgroundModeCheckbox').checked)]); 106 [String($('backgroundModeCheckbox').checked)]);
119 }; 107 };
120 } 108 }
121 109
122 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on 110 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on
123 // certain platforms, or could be enabled by a lab. 111 // certain platforms, or could be enabled by a lab.
124 if (!cr.isChromeOS) { 112 if (!cr.isChromeOS) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 $('auto-open-file-types-label').classList.remove('disabled'); 203 $('auto-open-file-types-label').classList.remove('disabled');
216 } 204 }
217 }; 205 };
218 206
219 // Set the enabled state for the proxy settings button. 207 // Set the enabled state for the proxy settings button.
220 AdvancedOptions.SetupProxySettingsSection = function(disabled, label) { 208 AdvancedOptions.SetupProxySettingsSection = function(disabled, label) {
221 $('proxiesConfigureButton').disabled = disabled; 209 $('proxiesConfigureButton').disabled = disabled;
222 $('proxiesLabel').textContent = label; 210 $('proxiesLabel').textContent = label;
223 }; 211 };
224 212
225 // Set the checked state for the sslCheckRevocation checkbox.
226 AdvancedOptions.SetCheckRevocationCheckboxState = function(
227 checked, disabled) {
228 $('sslCheckRevocation').checked = checked;
229 $('sslCheckRevocation').disabled = disabled;
230 };
231
232 // Set the checked state for the sslUseSSL3 checkbox.
233 AdvancedOptions.SetUseSSL3CheckboxState = function(checked, disabled) {
234 $('sslUseSSL3').checked = checked;
235 $('sslUseSSL3').disabled = disabled;
236 };
237
238 // Set the checked state for the sslUseTLS1 checkbox.
239 AdvancedOptions.SetUseTLS1CheckboxState = function(checked, disabled) {
240 $('sslUseTLS1').checked = checked;
241 $('sslUseTLS1').disabled = disabled;
242 };
243
244 // Set the checked state for the backgroundModeCheckbox element. 213 // Set the checked state for the backgroundModeCheckbox element.
245 AdvancedOptions.SetBackgroundModeCheckboxState = function(checked) { 214 AdvancedOptions.SetBackgroundModeCheckboxState = function(checked) {
246 $('backgroundModeCheckbox').checked = checked; 215 $('backgroundModeCheckbox').checked = checked;
247 }; 216 };
248 217
249 // Set the Cloud Print proxy UI to enabled, disabled, or processing. 218 // Set the Cloud Print proxy UI to enabled, disabled, or processing.
250 AdvancedOptions.SetupCloudPrintProxySection = function( 219 AdvancedOptions.SetupCloudPrintProxySection = function(
251 disabled, label, allowed) { 220 disabled, label, allowed) {
252 if (!cr.isChromeOS) { 221 if (!cr.isChromeOS) {
253 $('cloudPrintProxyLabel').textContent = label; 222 $('cloudPrintProxyLabel').textContent = label;
(...skipping 17 matching lines...) Expand all
271 proxySectionElm.parentNode.removeChild(proxySectionElm); 240 proxySectionElm.parentNode.removeChild(proxySectionElm);
272 } 241 }
273 }; 242 };
274 243
275 // Export 244 // Export
276 return { 245 return {
277 AdvancedOptions: AdvancedOptions 246 AdvancedOptions: AdvancedOptions
278 }; 247 };
279 248
280 }); 249 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698