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.internet', function() { | 5 cr.define('options.internet', function() { |
6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
8 /** @const */ var IPAddressField = options.internet.IPAddressField; | 8 /** @const */ var IPAddressField = options.internet.IPAddressField; |
9 | 9 |
10 /** | 10 /** |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 updateHidden('#details-internet-page .action-area', true); | 532 updateHidden('#details-internet-page .action-area', true); |
533 detailsPage.updateControls(); | 533 detailsPage.updateControls(); |
534 detailsPage.visible = true; | 534 detailsPage.visible = true; |
535 }; | 535 }; |
536 | 536 |
537 DetailsInternetPage.updateProxySettings = function(type) { | 537 DetailsInternetPage.updateProxySettings = function(type) { |
538 var proxyHost = null, | 538 var proxyHost = null, |
539 proxyPort = null; | 539 proxyPort = null; |
540 | 540 |
541 if (type == 'cros.session.proxy.singlehttp') { | 541 if (type == 'cros.session.proxy.singlehttp') { |
542 proxyHost = 'proxy-host-signal-name'; | 542 proxyHost = 'proxy-host-single-name'; |
543 proxyPort = 'proxy-host-single-port'; | 543 proxyPort = 'proxy-host-single-port'; |
544 }else if (type == 'cros.session.proxy.httpurl') { | 544 }else if (type == 'cros.session.proxy.httpurl') { |
545 proxyHost = 'proxy-host-name'; | 545 proxyHost = 'proxy-host-name'; |
546 proxyPort = 'proxy-host-port'; | 546 proxyPort = 'proxy-host-port'; |
547 }else if (type == 'cros.session.proxy.httpsurl') { | 547 }else if (type == 'cros.session.proxy.httpsurl') { |
548 proxyHost = 'secure-proxy-host-name'; | 548 proxyHost = 'secure-proxy-host-name'; |
549 proxyPort = 'secure-proxy-port'; | 549 proxyPort = 'secure-proxy-port'; |
550 }else if (type == 'cros.session.proxy.ftpurl') { | 550 }else if (type == 'cros.session.proxy.ftpurl') { |
551 proxyHost = 'ftp-proxy'; | 551 proxyHost = 'ftp-proxy'; |
552 proxyPort = 'ftp-proxy-port'; | 552 proxyPort = 'ftp-proxy-port'; |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 | 1105 |
1106 // Don't show page name in address bar and in history to prevent people | 1106 // Don't show page name in address bar and in history to prevent people |
1107 // navigate here by hand and solve issue with page session restore. | 1107 // navigate here by hand and solve issue with page session restore. |
1108 OptionsPage.showPageByName('detailsInternetPage', false); | 1108 OptionsPage.showPageByName('detailsInternetPage', false); |
1109 }; | 1109 }; |
1110 | 1110 |
1111 return { | 1111 return { |
1112 DetailsInternetPage: DetailsInternetPage | 1112 DetailsInternetPage: DetailsInternetPage |
1113 }; | 1113 }; |
1114 }); | 1114 }); |
OLD | NEW |