| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 } | 255 } |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 AdvancedOptions.RemoveCloudPrintProxySection = function() { | 258 AdvancedOptions.RemoveCloudPrintProxySection = function() { |
| 259 if (!cr.isChromeOS) { | 259 if (!cr.isChromeOS) { |
| 260 var proxySectionElm = $('cloud-print-proxy-section'); | 260 var proxySectionElm = $('cloud-print-proxy-section'); |
| 261 proxySectionElm.parentNode.removeChild(proxySectionElm); | 261 proxySectionElm.parentNode.removeChild(proxySectionElm); |
| 262 } | 262 } |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 AdvancedOptions.SetRemotingStatus = function(enabled, status) { |
| 266 if (enabled) { |
| 267 $('remotingSetupButton').style.display = 'none'; |
| 268 $('remotingStopButton').style.display = 'inline'; |
| 269 } else { |
| 270 $('remotingSetupButton').style.display = 'inline'; |
| 271 $('remotingStopButton').style.display = 'none'; |
| 272 } |
| 273 $('remotingStatus').textContent = status; |
| 274 }; |
| 275 |
| 265 AdvancedOptions.RemoveRemotingSection = function() { | 276 AdvancedOptions.RemoveRemotingSection = function() { |
| 266 var proxySectionElm = $('remoting-section'); | 277 var proxySectionElm = $('remoting-section'); |
| 267 proxySectionElm.parentNode.removeChild(proxySectionElm); | 278 proxySectionElm.parentNode.removeChild(proxySectionElm); |
| 268 }; | 279 }; |
| 269 | 280 |
| 270 // Export | 281 // Export |
| 271 return { | 282 return { |
| 272 AdvancedOptions: AdvancedOptions | 283 AdvancedOptions: AdvancedOptions |
| 273 }; | 284 }; |
| 274 | 285 |
| 275 }); | 286 }); |
| OLD | NEW |