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 'service_path', | 13 'service_path', |
14 'Name', | 14 'Name', |
15 'Type', | 15 'Type', |
16 'ConnectionState', | 16 'ConnectionState', |
17 'connectable', | 17 'connectable', |
18 'ErrorState', | 18 'ErrorState', |
19 'WiFi.Security', | 19 'WiFi.Security', |
20 ['Cellular.NetworkTechnology', | 20 ['Cellular.NetworkTechnology', |
21 'EAP.EAP'], | 21 'EAP.EAP'], |
22 'Cellular.ActivationState', | 22 'Cellular.ActivationState', |
23 'Cellular.RoamingState', | 23 'Cellular.RoamingState', |
24 'Cellular.OutOfCredits', | |
25 'WiFi.SignalStrength' | 24 'WiFi.SignalStrength' |
26 ]; | 25 ]; |
27 | 26 |
28 var FAVORITE_STATE_FIELDS = [ | 27 var FAVORITE_STATE_FIELDS = [ |
29 'GUID', | 28 'GUID', |
30 'service_path', | 29 'service_path', |
31 'Name', | 30 'Name', |
32 'Type', | 31 'Type', |
33 'profile_path', | 32 'profile_path', |
34 'visible', | 33 'visible', |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 document.addEventListener('DOMContentLoaded', function() { | 339 document.addEventListener('DOMContentLoaded', function() { |
341 $('refresh').onclick = requestNetworks; | 340 $('refresh').onclick = requestNetworks; |
342 setRefresh(); | 341 setRefresh(); |
343 requestNetworks(); | 342 requestNetworks(); |
344 }); | 343 }); |
345 | 344 |
346 return { | 345 return { |
347 getShillPropertiesResult: getShillPropertiesResult | 346 getShillPropertiesResult: getShillPropertiesResult |
348 }; | 347 }; |
349 })(); | 348 })(); |
OLD | NEW |