| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 Oobe signin screen implementation. | 6 * @fileoverview Oobe signin screen implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { | 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { |
| 10 // Gaia loading time after which error message must be displayed and | 10 // Gaia loading time after which error message must be displayed and |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 if (data[name]) | 497 if (data[name]) |
| 498 params[name] = data[name]; | 498 params[name] = data[name]; |
| 499 } | 499 } |
| 500 | 500 |
| 501 if (data.localizedStrings) | 501 if (data.localizedStrings) |
| 502 params.localizedStrings = data.localizedStrings; | 502 params.localizedStrings = data.localizedStrings; |
| 503 | 503 |
| 504 if (this.isNewGaiaFlow) { | 504 if (this.isNewGaiaFlow) { |
| 505 $('inner-container').classList.add('new-gaia-flow'); | 505 $('inner-container').classList.add('new-gaia-flow'); |
| 506 params.chromeType = data.chromeType; | 506 params.chromeType = data.chromeType; |
| 507 params.isNewGaiaFlowChromeOS = true; | 507 params.isNewGaiaFlow = true; |
| 508 } | 508 } |
| 509 | 509 |
| 510 if (data.gaiaEndpoint) | 510 if (data.gaiaEndpoint) |
| 511 params.gaiaPath = data.gaiaEndpoint; | 511 params.gaiaPath = data.gaiaEndpoint; |
| 512 | 512 |
| 513 $('login-header-bar').newGaiaFlow = this.isNewGaiaFlow; | 513 $('login-header-bar').newGaiaFlow = this.isNewGaiaFlow; |
| 514 | 514 |
| 515 // Screen size could have been changed because of 'new-gaia-flow' or | 515 // Screen size could have been changed because of 'new-gaia-flow' or |
| 516 // 'full-width' classes. | 516 // 'full-width' classes. |
| 517 if (Oobe.getInstance().currentScreen === this) | 517 if (Oobe.getInstance().currentScreen === this) |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 } | 1048 } |
| 1049 | 1049 |
| 1050 this.classList.toggle('whitelist-error', show); | 1050 this.classList.toggle('whitelist-error', show); |
| 1051 this.loading = !show; | 1051 this.loading = !show; |
| 1052 | 1052 |
| 1053 if (!show) | 1053 if (!show) |
| 1054 Oobe.showSigninUI(); | 1054 Oobe.showSigninUI(); |
| 1055 } | 1055 } |
| 1056 }; | 1056 }; |
| 1057 }); | 1057 }); |
| OLD | NEW |