| 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'), | 14 networkDisabled: loadTimeData.getString('networkDisabled'), |
| 15 networkListItemConnected: | 15 networkListItemConnected: |
| 16 loadTimeData.getString('networkListItemConnected'), | 16 loadTimeData.getString('networkListItemConnected'), |
| 17 networkListItemConnecting: | 17 networkListItemConnecting: |
| 18 loadTimeData.getString('networkListItemConnecting'), | 18 loadTimeData.getString('networkListItemConnecting'), |
| 19 networkListItemConnectingTo: |
| 20 loadTimeData.getString('networkListItemConnectingTo'), |
| 19 networkListItemNotConnected: | 21 networkListItemNotConnected: |
| 20 loadTimeData.getString('networkListItemNotConnected'), | 22 loadTimeData.getString('networkListItemNotConnected'), |
| 21 vpnNameTemplate: loadTimeData.getString('vpnNameTemplate'), | 23 vpnNameTemplate: loadTimeData.getString('vpnNameTemplate'), |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 // Properties to display in the network state table. Each entry can be either | 26 // Properties to display in the network state table. Each entry can be either |
| 25 // a single state field or an array of state fields. If more than one is | 27 // a single state field or an array of state fields. If more than one is |
| 26 // specified then the first non empty value is used. | 28 // specified then the first non empty value is used. |
| 27 var NETWORK_STATE_FIELDS = [ | 29 var NETWORK_STATE_FIELDS = [ |
| 28 'GUID', | 30 'GUID', |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 }); | 366 }); |
| 365 | 367 |
| 366 document.addEventListener('custom-item-selected', function(event) { | 368 document.addEventListener('custom-item-selected', function(event) { |
| 367 chrome.send('addNetwork', [event.detail.customData]); | 369 chrome.send('addNetwork', [event.detail.customData]); |
| 368 }); | 370 }); |
| 369 | 371 |
| 370 return { | 372 return { |
| 371 getShillPropertiesResult: getShillPropertiesResult | 373 getShillPropertiesResult: getShillPropertiesResult |
| 372 }; | 374 }; |
| 373 })(); | 375 })(); |
| OLD | NEW |