| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 }; | 75 }; |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 // | 80 // |
| 81 // Chrome callbacks | 81 // Chrome callbacks |
| 82 // | 82 // |
| 83 | 83 |
| 84 // Set the download path. | 84 // Set the download path. |
| 85 AdvancedOptions.SetDownloadLocationPath = function (path) { | 85 AdvancedOptions.SetDownloadLocationPath = function(path) { |
| 86 if (!cr.isChromeOS) | 86 if (!cr.isChromeOS) |
| 87 $('downloadLocationPath').value = path; | 87 $('downloadLocationPath').value = path; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 // Set the enabled state for the autoOpenFileTypesResetToDefault button. | 90 // Set the enabled state for the autoOpenFileTypesResetToDefault button. |
| 91 AdvancedOptions.SetAutoOpenFileTypesDisabledAttribute = function (disabled) { | 91 AdvancedOptions.SetAutoOpenFileTypesDisabledAttribute = function(disabled) { |
| 92 $('autoOpenFileTypesResetToDefault').disabled = disabled; | 92 $('autoOpenFileTypesResetToDefault').disabled = disabled; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 // Set the enabled state for the proxy settings button. | 95 // Set the enabled state for the proxy settings button. |
| 96 AdvancedOptions.SetProxySettingsDisabledAttribute = function (disabled) { | 96 AdvancedOptions.SetupProxySettingsSection = function(disabled, label) { |
| 97 $('proxiesConfigureButton').disabled = disabled; | 97 $('proxiesConfigureButton').disabled = disabled; |
| 98 $('proxiesLabel').textContent = label; |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 // Set the checked state for the sslCheckRevocation checkbox. | 101 // Set the checked state for the sslCheckRevocation checkbox. |
| 101 AdvancedOptions.SetCheckRevocationCheckboxState = function(checked) { | 102 AdvancedOptions.SetCheckRevocationCheckboxState = function(checked) { |
| 102 $('sslCheckRevocation').checked = checked; | 103 $('sslCheckRevocation').checked = checked; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 // Set the checked state for the sslUseSSL2 checkbox. | 106 // Set the checked state for the sslUseSSL2 checkbox. |
| 106 AdvancedOptions.SetUseSSL2CheckboxState = function(checked) { | 107 AdvancedOptions.SetUseSSL2CheckboxState = function(checked) { |
| 107 $('sslUseSSL2').checked = checked; | 108 $('sslUseSSL2').checked = checked; |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 // Export | 111 // Export |
| 111 return { | 112 return { |
| 112 AdvancedOptions: AdvancedOptions | 113 AdvancedOptions: AdvancedOptions |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 }); | 116 }); |
| OLD | NEW |