Chromium Code Reviews| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 type: Boolean, | 65 type: Boolean, |
| 66 value: false, | 66 value: false, |
| 67 }, | 67 }, |
| 68 | 68 |
| 69 /** | 69 /** |
| 70 * Flag that shows Network Selection screen. | 70 * Flag that shows Network Selection screen. |
| 71 */ | 71 */ |
| 72 networkSelectionScreenShown: { | 72 networkSelectionScreenShown: { |
| 73 type: Boolean, | 73 type: Boolean, |
| 74 value: false, | 74 value: false, |
| 75 observer: 'networkSelectionScreenShownChanged_', | |
| 75 }, | 76 }, |
| 76 | 77 |
| 77 /** | 78 /** |
| 78 * Flag that enables MD-OOBE. | 79 * Flag that enables MD-OOBE. |
| 79 */ | 80 */ |
| 80 enabled: { | 81 enabled: { |
| 81 type: Boolean, | 82 type: Boolean, |
| 82 value: false, | 83 value: false, |
| 83 }, | 84 }, |
| 84 | 85 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 126 */ | 127 */ |
| 127 networkLastSelectedGuid_: '', | 128 networkLastSelectedGuid_: '', |
| 128 | 129 |
| 129 /** | 130 /** |
| 130 * Sets proper focus. | 131 * Sets proper focus. |
| 131 */ | 132 */ |
| 132 focus: function() { | 133 focus: function() { |
| 133 this.$.welcomeNextButton.focus(); | 134 this.$.welcomeNextButton.focus(); |
| 134 }, | 135 }, |
| 135 | 136 |
| 137 /** @private */ | |
| 138 networkSelectionScreenShownChanged_: function() { | |
| 139 if (this.networkSelectionScreenShown) { | |
|
Alexander Alekseev
2017/01/12 23:10:09
Is this to fix "some of the network entries are no
stevenjb
2017/01/13 00:03:14
It's kind of a bug. The problem is, there is no DO
| |
| 140 this.async(function() { | |
| 141 this.$.networkSelect.refreshNetworks(); | |
| 142 }.bind(this)); | |
| 143 } | |
| 144 }, | |
| 145 | |
| 136 /** | 146 /** |
| 137 * Handles "visible" event. | 147 * Handles "visible" event. |
| 138 * @private | 148 * @private |
| 139 */ | 149 */ |
| 140 onAnimationFinish_: function() { | 150 onAnimationFinish_: function() { |
| 141 this.focus(); | 151 this.focus(); |
| 142 }, | 152 }, |
| 143 | 153 |
| 144 /** | 154 /** |
| 145 * Returns custom items for network selector. | 155 * Returns custom items for network selector. |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 409 * @private | 419 * @private |
| 410 */ | 420 */ |
| 411 onTimezoneSelected_: function(event) { | 421 onTimezoneSelected_: function(event) { |
| 412 var item = event.detail; | 422 var item = event.detail; |
| 413 if (!item) | 423 if (!item) |
| 414 return; | 424 return; |
| 415 | 425 |
| 416 this.screen.onTimezoneSelected_(item.value); | 426 this.screen.onTimezoneSelected_(item.value); |
| 417 }, | 427 }, |
| 418 }); | 428 }); |
| OLD | NEW |