| OLD | NEW |
| 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 Loading... |
| 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 { 'type': '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 }); |
| OLD | NEW |