| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |