OLD | NEW |
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 [String($('sslCheckRevocation').checked)]); | 114 [String($('sslCheckRevocation').checked)]); |
115 }; | 115 }; |
116 $('sslUseSSL3').onclick = function(event) { | 116 $('sslUseSSL3').onclick = function(event) { |
117 chrome.send('useSSL3CheckboxAction', | 117 chrome.send('useSSL3CheckboxAction', |
118 [String($('sslUseSSL3').checked)]); | 118 [String($('sslUseSSL3').checked)]); |
119 }; | 119 }; |
120 $('sslUseTLS1').onclick = function(event) { | 120 $('sslUseTLS1').onclick = function(event) { |
121 chrome.send('useTLS1CheckboxAction', | 121 chrome.send('useTLS1CheckboxAction', |
122 [String($('sslUseTLS1').checked)]); | 122 [String($('sslUseTLS1').checked)]); |
123 }; | 123 }; |
124 $('gearSettingsConfigureGearsButton').onclick = function(event) { | |
125 chrome.send('showGearsSettings'); | |
126 }; | |
127 } | 124 } |
128 | 125 |
129 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on | 126 // 'cloudPrintProxyEnabled' is true for Chrome branded builds on |
130 // certain platforms, or could be enabled by a lab. | 127 // certain platforms, or could be enabled by a lab. |
131 if (!cr.isChromeOS) { | 128 if (!cr.isChromeOS) { |
132 $('cloudPrintProxySetupButton').onclick = function(event) { | 129 $('cloudPrintProxySetupButton').onclick = function(event) { |
133 if ($('cloudPrintProxyManageButton').style.display == 'none') { | 130 if ($('cloudPrintProxyManageButton').style.display == 'none') { |
134 // Disable the button, set it's text to the intermediate state. | 131 // Disable the button, set it's text to the intermediate state. |
135 $('cloudPrintProxySetupButton').textContent = | 132 $('cloudPrintProxySetupButton').textContent = |
136 localStrings.getString('cloudPrintProxyEnablingButton'); | 133 localStrings.getString('cloudPrintProxyEnablingButton'); |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 if (proxySectionElm) | 295 if (proxySectionElm) |
299 proxySectionElm.parentNode.removeChild(proxySectionElm); | 296 proxySectionElm.parentNode.removeChild(proxySectionElm); |
300 }; | 297 }; |
301 | 298 |
302 // Export | 299 // Export |
303 return { | 300 return { |
304 AdvancedOptions: AdvancedOptions | 301 AdvancedOptions: AdvancedOptions |
305 }; | 302 }; |
306 | 303 |
307 }); | 304 }); |
OLD | NEW |