OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
7 var ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
8 var RepeatingButton = cr.ui.RepeatingButton; | 8 var RepeatingButton = cr.ui.RepeatingButton; |
9 | 9 |
10 // | 10 // |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 chrome.send('checkRevocationCheckboxAction', | 402 chrome.send('checkRevocationCheckboxAction', |
403 [String($('sslCheckRevocation').checked)]); | 403 [String($('sslCheckRevocation').checked)]); |
404 }; | 404 }; |
405 | 405 |
406 // Cloud Print section. | 406 // Cloud Print section. |
407 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on | 407 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on |
408 // certain platforms, or could be enabled by a lab. | 408 // certain platforms, or could be enabled by a lab. |
409 if (!cr.isChromeOS) { | 409 if (!cr.isChromeOS) { |
410 $('cloudPrintConnectorSetupButton').onclick = function(event) { | 410 $('cloudPrintConnectorSetupButton').onclick = function(event) { |
411 if ($('cloudPrintManageButton').style.display == 'none') { | 411 if ($('cloudPrintManageButton').style.display == 'none') { |
412 // Disable the button, set it's text to the intermediate state. | 412 // Disable the button, set its text to the intermediate state. |
413 $('cloudPrintConnectorSetupButton').textContent = | 413 $('cloudPrintConnectorSetupButton').textContent = |
414 localStrings.getString('cloudPrintConnectorEnablingButton'); | 414 localStrings.getString('cloudPrintConnectorEnablingButton'); |
415 $('cloudPrintConnectorSetupButton').disabled = true; | 415 $('cloudPrintConnectorSetupButton').disabled = true; |
416 chrome.send('showCloudPrintSetupDialog'); | 416 chrome.send('showCloudPrintSetupDialog'); |
417 } else { | 417 } else { |
418 chrome.send('disableCloudPrintConnector'); | 418 chrome.send('disableCloudPrintConnector'); |
419 } | 419 } |
420 }; | 420 }; |
421 } | 421 } |
422 $('cloudPrintManageButton').onclick = function(event) { | 422 $('cloudPrintManageButton').onclick = function(event) { |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 BrowserOptions.getLoggedInUsername = function() { | 1281 BrowserOptions.getLoggedInUsername = function() { |
1282 return BrowserOptions.getInstance().username_; | 1282 return BrowserOptions.getInstance().username_; |
1283 }; | 1283 }; |
1284 } | 1284 } |
1285 | 1285 |
1286 // Export | 1286 // Export |
1287 return { | 1287 return { |
1288 BrowserOptions: BrowserOptions | 1288 BrowserOptions: BrowserOptions |
1289 }; | 1289 }; |
1290 }); | 1290 }); |
OLD | NEW |