| 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 // Properties to display in the network state table. Each entry can be either | 8 // Properties to display in the network state table. Each entry can be either |
| 9 // a single state field or an array of state fields. If more than one is | 9 // a single state field or an array of state fields. If more than one is |
| 10 // specified then the first non empty value is used. | 10 // specified then the first non empty value is used. |
| 11 var NETWORK_STATE_FIELDS = [ | 11 var NETWORK_STATE_FIELDS = [ |
| 12 'GUID', | 12 'GUID', |
| 13 'Name', | 13 'Name', |
| 14 'Type', | 14 'Type', |
| 15 'ConnectionState', | 15 'ConnectionState', |
| 16 'connectable', |
| 16 'ErrorState', | 17 'ErrorState', |
| 17 'WiFi.Security', | 18 'WiFi.Security', |
| 18 ['Cellular.NetworkTechnology', | 19 ['Cellular.NetworkTechnology', |
| 19 'EAP.EAP'], | 20 'EAP.EAP'], |
| 20 'Cellular.ActivationState', | 21 'Cellular.ActivationState', |
| 21 'Cellular.RoamingState', | 22 'Cellular.RoamingState', |
| 22 'Cellular.OutOfCredits', | 23 'Cellular.OutOfCredits', |
| 23 'WiFi.SignalStrength' | 24 'WiFi.SignalStrength' |
| 24 ]; | 25 ]; |
| 25 | 26 |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 $('log-timedetail').onclick = requestLog; | 311 $('log-timedetail').onclick = requestLog; |
| 311 setRefresh(); | 312 setRefresh(); |
| 312 requestLog(); | 313 requestLog(); |
| 313 requestNetworks(); | 314 requestNetworks(); |
| 314 }); | 315 }); |
| 315 | 316 |
| 316 return { | 317 return { |
| 317 getNetworkLogCallback: getNetworkLogCallback | 318 getNetworkLogCallback: getNetworkLogCallback |
| 318 }; | 319 }; |
| 319 })(); | 320 })(); |
| OLD | NEW |