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 'ErrorState', | 16 'ErrorState', |
17 'WiFi.Security', | 17 'WiFi.Security', |
18 ['Cellular.NetworkTechnology', | 18 ['Cellular.NetworkTechnology', |
19 'EAP.EAP'], | 19 'EAP.EAP'], |
20 'Cellular.ActivationState', | 20 'Cellular.ActivationState', |
21 'Cellular.RoamingState', | 21 'Cellular.RoamingState', |
22 'Cellular.OutOfCredits', | 22 'Cellular.OutOfCredits', |
23 'WiFi.SignalStrength' | 23 'WiFi.SignalStrength' |
24 ]; | 24 ]; |
25 | 25 |
26 var FAVORITE_STATE_FIELDS = [ | 26 var FAVORITE_STATE_FIELDS = [ |
27 'GUID', | 27 'GUID', |
28 'Name', | 28 'Name', |
29 'Type', | 29 'Type', |
30 'Profile', | 30 'profile_path', |
| 31 'visible', |
31 'onc_source' | 32 'onc_source' |
32 ]; | 33 ]; |
33 | 34 |
34 var LOG_LEVEL_CLASSNAME = { | 35 var LOG_LEVEL_CLASSNAME = { |
35 'Error': 'network-log-level-error', | 36 'Error': 'network-log-level-error', |
36 'User': 'network-log-level-user', | 37 'User': 'network-log-level-user', |
37 'Event': 'network-log-level-event', | 38 'Event': 'network-log-level-event', |
38 'Debug': 'network-log-level-debug' | 39 'Debug': 'network-log-level-debug' |
39 }; | 40 }; |
40 | 41 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 $('log-timedetail').onclick = requestLog; | 310 $('log-timedetail').onclick = requestLog; |
310 setRefresh(); | 311 setRefresh(); |
311 requestLog(); | 312 requestLog(); |
312 requestNetworks(); | 313 requestNetworks(); |
313 }); | 314 }); |
314 | 315 |
315 return { | 316 return { |
316 getNetworkLogCallback: getNetworkLogCallback | 317 getNetworkLogCallback: getNetworkLogCallback |
317 }; | 318 }; |
318 })(); | 319 })(); |
OLD | NEW |