| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 var NetworkUI = (function() { | 5 var NetworkUI = (function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 CrOncStrings = { | 8 CrOncStrings = { |
| 9 OncTypeCellular: loadTimeData.getString('OncTypeCellular'), | 9 OncTypeCellular: loadTimeData.getString('OncTypeCellular'), |
| 10 OncTypeEthernet: loadTimeData.getString('OncTypeEthernet'), | 10 OncTypeEthernet: loadTimeData.getString('OncTypeEthernet'), |
| 11 OncTypeVPN: loadTimeData.getString('OncTypeVPN'), | 11 OncTypeVPN: loadTimeData.getString('OncTypeVPN'), |
| 12 OncTypeWiFi: loadTimeData.getString('OncTypeWiFi'), | 12 OncTypeWiFi: loadTimeData.getString('OncTypeWiFi'), |
| 13 OncTypeWiMAX: loadTimeData.getString('OncTypeWiMAX'), | 13 OncTypeWiMAX: loadTimeData.getString('OncTypeWiMAX'), |
| 14 networkDisabled: loadTimeData.getString('networkDisabled'), | |
| 15 networkListItemConnected: | 14 networkListItemConnected: |
| 16 loadTimeData.getString('networkListItemConnected'), | 15 loadTimeData.getString('networkListItemConnected'), |
| 17 networkListItemConnecting: | 16 networkListItemConnecting: |
| 18 loadTimeData.getString('networkListItemConnecting'), | 17 loadTimeData.getString('networkListItemConnecting'), |
| 19 networkListItemConnectingTo: | 18 networkListItemConnectingTo: |
| 20 loadTimeData.getString('networkListItemConnectingTo'), | 19 loadTimeData.getString('networkListItemConnectingTo'), |
| 21 networkListItemNotConnected: | 20 networkListItemNotConnected: |
| 22 loadTimeData.getString('networkListItemNotConnected'), | 21 loadTimeData.getString('networkListItemNotConnected'), |
| 23 vpnNameTemplate: loadTimeData.getString('vpnNameTemplate'), | 22 vpnNameTemplate: loadTimeData.getString('vpnNameTemplate'), |
| 24 }; | 23 }; |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 }); | 365 }); |
| 367 | 366 |
| 368 document.addEventListener('custom-item-selected', function(event) { | 367 document.addEventListener('custom-item-selected', function(event) { |
| 369 chrome.send('addNetwork', [event.detail.customData]); | 368 chrome.send('addNetwork', [event.detail.customData]); |
| 370 }); | 369 }); |
| 371 | 370 |
| 372 return { | 371 return { |
| 373 getShillPropertiesResult: getShillPropertiesResult | 372 getShillPropertiesResult: getShillPropertiesResult |
| 374 }; | 373 }; |
| 375 })(); | 374 })(); |
| OLD | NEW |