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

Side by Side Diff: ui/webui/resources/cr_elements/network/cr_network_select.js

Issue 2597013002: Run clang-format on ui/webui/resources (Closed)
Patch Set: remove cr_shared_menu.js Created 3 years, 12 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
OLDNEW
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
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: { 79 networkStateList: {type: Array, value: function() { return []; }},
80 type: Array,
81 value: function() {
82 return [];
83 }
84 },
85 80
86 /** 81 /**
87 * The list of custom items to display after the list of networks. 82 * The list of custom items to display after the list of networks.
88 * See CrNetworkList for details. 83 * See CrNetworkList for details.
89 * @type {!Array<CrNetworkList.CustomItemState>} 84 * @type {!Array<CrNetworkList.CustomItemState>}
90 */ 85 */
91 customItems: { 86 customItems: {
92 type: Array, 87 type: Array,
93 value: function() { 88 value: function() { return []; },
94 return [];
95 },
96 }, 89 },
97 90
98 /** 91 /**
99 * Whether to handle "item-selected" for network items. 92 * Whether to handle "item-selected" for network items.
100 * If this property is false, "network-item-selected" event is fired 93 * If this property is false, "network-item-selected" event is fired
101 * carrying CrOnc.NetworkStateProperties as event detail. 94 * carrying CrOnc.NetworkStateProperties as event detail.
102 * 95 *
103 * @type {Function} 96 * @type {Function}
104 */ 97 */
105 handleNetworkItemSelected: { 98 handleNetworkItemSelected: {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 var lastError = chrome.runtime.lastError; 191 var lastError = chrome.runtime.lastError;
199 if (lastError && lastError != 'connecting') 192 if (lastError && lastError != 'connecting')
200 console.error('networkingPrivate.startConnect error: ' + lastError); 193 console.error('networkingPrivate.startConnect error: ' + lastError);
201 }); 194 });
202 }, 195 },
203 196
204 getExpandA11yText_: function() { 197 getExpandA11yText_: function() {
205 return this.i18n('networkExpandA11yLabel'); 198 return this.i18n('networkExpandA11yLabel');
206 }, 199 },
207 }); 200 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698