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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 chrome.send('checkRevocationCheckboxAction', | 400 chrome.send('checkRevocationCheckboxAction', |
401 [String($('sslCheckRevocation').checked)]); | 401 [String($('sslCheckRevocation').checked)]); |
402 }; | 402 }; |
403 | 403 |
404 // Cloud Print section. | 404 // Cloud Print section. |
405 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on | 405 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on |
406 // certain platforms, or could be enabled by a lab. | 406 // certain platforms, or could be enabled by a lab. |
407 if (!cr.isChromeOS) { | 407 if (!cr.isChromeOS) { |
408 $('cloudPrintConnectorSetupButton').onclick = function(event) { | 408 $('cloudPrintConnectorSetupButton').onclick = function(event) { |
409 if ($('cloudPrintManageButton').style.display == 'none') { | 409 if ($('cloudPrintManageButton').style.display == 'none') { |
410 // Disable the button, set it's text to the intermediate state. | 410 // Disable the button, set its text to the intermediate state. |
411 $('cloudPrintConnectorSetupButton').textContent = | 411 $('cloudPrintConnectorSetupButton').textContent = |
412 localStrings.getString('cloudPrintConnectorEnablingButton'); | 412 localStrings.getString('cloudPrintConnectorEnablingButton'); |
413 $('cloudPrintConnectorSetupButton').disabled = true; | 413 $('cloudPrintConnectorSetupButton').disabled = true; |
414 chrome.send('showCloudPrintSetupDialog'); | 414 chrome.send('showCloudPrintSetupDialog'); |
415 } else { | 415 } else { |
416 chrome.send('disableCloudPrintConnector'); | 416 chrome.send('disableCloudPrintConnector'); |
417 } | 417 } |
418 }; | 418 }; |
419 } | 419 } |
420 $('cloudPrintManageButton').onclick = function(event) { | 420 $('cloudPrintManageButton').onclick = function(event) { |
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 BrowserOptions.getLoggedInUsername = function() { | 1372 BrowserOptions.getLoggedInUsername = function() { |
1373 return BrowserOptions.getInstance().username_; | 1373 return BrowserOptions.getInstance().username_; |
1374 }; | 1374 }; |
1375 } | 1375 } |
1376 | 1376 |
1377 // Export | 1377 // Export |
1378 return { | 1378 return { |
1379 BrowserOptions: BrowserOptions | 1379 BrowserOptions: BrowserOptions |
1380 }; | 1380 }; |
1381 }); | 1381 }); |
OLD | NEW |