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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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() { | 59 focus: function() { |
60 this.$.neworkList.focus(); | 60 this.$.networkList.focus(); |
61 }, | 61 }, |
62 | 62 |
63 /** | 63 /** |
64 * Listener function for chrome.networkingPrivate.onNetworkListChanged event. | 64 * Listener function for chrome.networkingPrivate.onNetworkListChanged event. |
65 * @type {function(!Array<string>)} | 65 * @type {function(!Array<string>)} |
66 * @private | 66 * @private |
67 */ | 67 */ |
68 networkListChangedListener_: function() {}, | 68 networkListChangedListener_: function() {}, |
69 | 69 |
70 /** | 70 /** |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 }, | 169 }, |
170 | 170 |
171 /** | 171 /** |
172 * @param {?CrOnc.NetworkStateProperties} state | 172 * @param {?CrOnc.NetworkStateProperties} state |
173 * @private | 173 * @private |
174 */ | 174 */ |
175 defaultNetworkChanged_: function(state) { | 175 defaultNetworkChanged_: function(state) { |
176 this.fire('default-network-changed', state); | 176 this.fire('default-network-changed', state); |
177 }, | 177 }, |
178 }); | 178 }); |
OLD | NEW |