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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_welcome.js

Issue 2708253002: MD OOBE: Focus network list when shown (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 | « no previous file | ui/webui/resources/cr_elements/network/cr_network_list.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 for displaying material design OOBE. 6 * @fileoverview Polymer element for displaying material design OOBE.
7 */ 7 */
8 8
9 Polymer({ 9 Polymer({
10 is: 'oobe-welcome-md', 10 is: 'oobe-welcome-md',
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 this.getActiveScreen_().focus(); 170 this.getActiveScreen_().focus();
171 }, 171 },
172 172
173 /** @private */ 173 /** @private */
174 onNetworkSelectionScreenShown_: function() { 174 onNetworkSelectionScreenShown_: function() {
175 // After #networkSelect is stamped, trigger a refresh so that the list 175 // After #networkSelect is stamped, trigger a refresh so that the list
176 // will be updated with the currently visible networks and sized 176 // will be updated with the currently visible networks and sized
177 // appropriately. 177 // appropriately.
178 this.async(function() { 178 this.async(function() {
179 this.$.networkSelect.refreshNetworks(); 179 this.$.networkSelect.refreshNetworks();
180 this.$.networkSelect.focus();
180 }.bind(this)); 181 }.bind(this));
181 }, 182 },
182 183
183 /** 184 /**
184 * Handles "visible" event. 185 * Handles "visible" event.
185 * @private 186 * @private
186 */ 187 */
187 onAnimationFinish_: function() { 188 onAnimationFinish_: function() {
188 this.focus(); 189 this.focus();
189 }, 190 },
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 /** 471 /**
471 * This function formats message for labels. 472 * This function formats message for labels.
472 * @param String label i18n string ID. 473 * @param String label i18n string ID.
473 * @param String parameter i18n string parameter. 474 * @param String parameter i18n string parameter.
474 * @private 475 * @private
475 */ 476 */
476 formatMessage_: function(label, parameter) { 477 formatMessage_: function(label, parameter) {
477 return loadTimeData.getStringF(label, parameter); 478 return loadTimeData.getStringF(label, parameter);
478 }, 479 },
479 }); 480 });
OLDNEW
« no previous file with comments | « no previous file | ui/webui/resources/cr_elements/network/cr_network_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698