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

Side by Side Diff: chrome/browser/resources/chromeos/network_configuration/js/network_status.js

Issue 280023003: Implement networkingPrivate.getNetworks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nonchromeos Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 cr.define('network.status', function() { 5 cr.define('network.status', function() {
6 var ArrayDataModel = cr.ui.ArrayDataModel; 6 var ArrayDataModel = cr.ui.ArrayDataModel;
7 var List = cr.ui.List; 7 var List = cr.ui.List;
8 var ListItem = cr.ui.ListItem; 8 var ListItem = cr.ui.ListItem;
9 var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; 9 var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel;
10 10
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 678
679 /** 679 /**
680 * Registers |this| at the networkingPrivate extension API and requests an 680 * Registers |this| at the networkingPrivate extension API and requests an
681 * initial list of all networks. 681 * initial list of all networks.
682 */ 682 */
683 registerStatusListener_: function() { 683 registerStatusListener_: function() {
684 chrome.networkingPrivate.onNetworkListChanged.addListener( 684 chrome.networkingPrivate.onNetworkListChanged.addListener(
685 this.onNetworkListChanged_.bind(this)); 685 this.onNetworkListChanged_.bind(this));
686 chrome.networkingPrivate.onNetworksChanged.addListener( 686 chrome.networkingPrivate.onNetworksChanged.addListener(
687 this.onNetworksChanged_.bind(this)); 687 this.onNetworksChanged_.bind(this));
688 chrome.networkingPrivate.getVisibleNetworks( 688 chrome.networkingPrivate.getNetworks(
689 'All', 689 { 'networkType': 'All', 'visible': true },
690 this.setVisibleNetworks.bind(this)); 690 this.setVisibleNetworks.bind(this));
691 } 691 }
692 }; 692 };
693 693
694 return { 694 return {
695 NetworkStatusList: NetworkStatusList 695 NetworkStatusList: NetworkStatusList
696 }; 696 };
697 }); 697 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698