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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 observePrefsUI($('proxy-all-protocols')); | 268 observePrefsUI($('proxy-all-protocols')); |
269 | 269 |
270 $('ip-automatic-configuration-checkbox').addEventListener('click', | 270 $('ip-automatic-configuration-checkbox').addEventListener('click', |
271 this.handleIpAutoConfig_); | 271 this.handleIpAutoConfig_); |
272 $('automatic-dns-radio').addEventListener('click', | 272 $('automatic-dns-radio').addEventListener('click', |
273 this.handleNameServerTypeChange_); | 273 this.handleNameServerTypeChange_); |
274 $('google-dns-radio').addEventListener('click', | 274 $('google-dns-radio').addEventListener('click', |
275 this.handleNameServerTypeChange_); | 275 this.handleNameServerTypeChange_); |
276 $('user-dns-radio').addEventListener('click', | 276 $('user-dns-radio').addEventListener('click', |
277 this.handleNameServerTypeChange_); | 277 this.handleNameServerTypeChange_); |
| 278 |
| 279 $('google-dns-label').innerHTML = |
| 280 loadTimeData.getString('googleNameServers'); |
278 }, | 281 }, |
279 | 282 |
280 /** | 283 /** |
281 * Handler for "add" event fired from userNameEdit. | 284 * Handler for "add" event fired from userNameEdit. |
282 * @param {Event} e Add event fired from userNameEdit. | 285 * @param {Event} e Add event fired from userNameEdit. |
283 * @private | 286 * @private |
284 */ | 287 */ |
285 handleAddProxyException_: function(e) { | 288 handleAddProxyException_: function(e) { |
286 var exception = $('new-host').value; | 289 var exception = $('new-host').value; |
287 $('new-host').value = ''; | 290 $('new-host').value = ''; |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 | 1114 |
1112 // Don't show page name in address bar and in history to prevent people | 1115 // Don't show page name in address bar and in history to prevent people |
1113 // navigate here by hand and solve issue with page session restore. | 1116 // navigate here by hand and solve issue with page session restore. |
1114 OptionsPage.showPageByName('detailsInternetPage', false); | 1117 OptionsPage.showPageByName('detailsInternetPage', false); |
1115 }; | 1118 }; |
1116 | 1119 |
1117 return { | 1120 return { |
1118 DetailsInternetPage: DetailsInternetPage | 1121 DetailsInternetPage: DetailsInternetPage |
1119 }; | 1122 }; |
1120 }); | 1123 }); |
OLD | NEW |