Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: chrome/browser/resources/chromeos/network_ui/network_ui.js

Issue 1036033002: Add types to networkigPrivate IDL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_470262_networking_private_idl_1
Patch Set: Fix apitest, test.js nits Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698