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

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

Issue 2705793002: cr-network-select: implement focus() (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « ui/webui/resources/cr_elements/network/cr_network_select.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « ui/webui/resources/cr_elements/network/cr_network_select.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698