OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** | 5 /** |
6 * @fileoverview Polymer element wrapping cr-network-list including the | 6 * @fileoverview Polymer element wrapping cr-network-list including the |
7 * networkingPrivate calls to populate it. | 7 * networkingPrivate calls to populate it. |
8 */ | 8 */ |
9 | 9 |
10 Polymer({ | 10 Polymer({ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 * @private {!Array<!CrOnc.NetworkStateProperties>} | 49 * @private {!Array<!CrOnc.NetworkStateProperties>} |
50 */ | 50 */ |
51 networkStateList_: { | 51 networkStateList_: { |
52 type: Array, | 52 type: Array, |
53 value: function() { | 53 value: function() { |
54 return []; | 54 return []; |
55 }, | 55 }, |
56 }, | 56 }, |
57 }, | 57 }, |
58 | 58 |
| 59 focus: function() { |
| 60 this.$.networkList.focus(); |
| 61 }, |
| 62 |
59 /** | 63 /** |
60 * Listener function for chrome.networkingPrivate.onNetworkListChanged event. | 64 * Listener function for chrome.networkingPrivate.onNetworkListChanged event. |
61 * @type {function(!Array<string>)} | 65 * @type {function(!Array<string>)} |
62 * @private | 66 * @private |
63 */ | 67 */ |
64 networkListChangedListener_: function() {}, | 68 networkListChangedListener_: function() {}, |
65 | 69 |
66 /** | 70 /** |
67 * Listener function for chrome.networkingPrivate.onDeviceStateListChanged | 71 * Listener function for chrome.networkingPrivate.onDeviceStateListChanged |
68 * event. | 72 * event. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 }, | 169 }, |
166 | 170 |
167 /** | 171 /** |
168 * @param {?CrOnc.NetworkStateProperties} state | 172 * @param {?CrOnc.NetworkStateProperties} state |
169 * @private | 173 * @private |
170 */ | 174 */ |
171 defaultNetworkChanged_: function(state) { | 175 defaultNetworkChanged_: function(state) { |
172 this.fire('default-network-changed', state); | 176 this.fire('default-network-changed', state); |
173 }, | 177 }, |
174 }); | 178 }); |
OLD | NEW |