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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 showSeparators: { | 69 showSeparators: { |
70 type: Boolean, | 70 type: Boolean, |
71 value: false, | 71 value: false, |
72 reflectToAttribute: true, | 72 reflectToAttribute: true, |
73 }, | 73 }, |
74 | 74 |
75 /** | 75 /** |
76 * List of all network state data for all visible networks. | 76 * List of all network state data for all visible networks. |
77 * @type {!Array<!CrOnc.NetworkStateProperties>} | 77 * @type {!Array<!CrOnc.NetworkStateProperties>} |
78 */ | 78 */ |
79 networkStateList: {type: Array, value: function() { return []; }}, | 79 networkStateList: { |
| 80 type: Array, |
| 81 value: function() { |
| 82 return []; |
| 83 } |
| 84 }, |
80 | 85 |
81 /** | 86 /** |
82 * The list of custom items to display after the list of networks. | 87 * The list of custom items to display after the list of networks. |
83 * See CrNetworkList for details. | 88 * See CrNetworkList for details. |
84 * @type {!Array<CrNetworkList.CustomItemState>} | 89 * @type {!Array<CrNetworkList.CustomItemState>} |
85 */ | 90 */ |
86 customItems: { | 91 customItems: { |
87 type: Array, | 92 type: Array, |
88 value: function() { return []; }, | 93 value: function() { |
| 94 return []; |
| 95 }, |
89 }, | 96 }, |
90 | 97 |
91 /** | 98 /** |
92 * Whether to handle "item-selected" for network items. | 99 * Whether to handle "item-selected" for network items. |
93 * If this property is false, "network-item-selected" event is fired | 100 * If this property is false, "network-item-selected" event is fired |
94 * carrying CrOnc.NetworkStateProperties as event detail. | 101 * carrying CrOnc.NetworkStateProperties as event detail. |
95 * | 102 * |
96 * @type {Function} | 103 * @type {Function} |
97 */ | 104 */ |
98 handleNetworkItemSelected: { | 105 handleNetworkItemSelected: { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 var lastError = chrome.runtime.lastError; | 198 var lastError = chrome.runtime.lastError; |
192 if (lastError && lastError != 'connecting') | 199 if (lastError && lastError != 'connecting') |
193 console.error('networkingPrivate.startConnect error: ' + lastError); | 200 console.error('networkingPrivate.startConnect error: ' + lastError); |
194 }); | 201 }); |
195 }, | 202 }, |
196 | 203 |
197 getExpandA11yText_: function() { | 204 getExpandA11yText_: function() { |
198 return this.i18n('networkExpandA11yLabel'); | 205 return this.i18n('networkExpandA11yLabel'); |
199 }, | 206 }, |
200 }); | 207 }); |
OLD | NEW |