| 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 if (data[name]) | 498 if (data[name]) |
| 499 params[name] = data[name]; | 499 params[name] = data[name]; |
| 500 } | 500 } |
| 501 | 501 |
| 502 if (data.localizedStrings) | 502 if (data.localizedStrings) |
| 503 params.localizedStrings = data.localizedStrings; | 503 params.localizedStrings = data.localizedStrings; |
| 504 | 504 |
| 505 if (this.isNewGaiaFlow) { | 505 if (this.isNewGaiaFlow) { |
| 506 $('inner-container').classList.add('new-gaia-flow'); | 506 $('inner-container').classList.add('new-gaia-flow'); |
| 507 params.chromeType = data.chromeType; | 507 params.chromeType = data.chromeType; |
| 508 params.isNewGaiaFlowChromeOS = true; | 508 params.isNewGaiaFlow = true; |
| 509 } | 509 } |
| 510 | 510 |
| 511 if (data.gaiaEndpoint) | 511 if (data.gaiaEndpoint) |
| 512 params.gaiaPath = data.gaiaEndpoint; | 512 params.gaiaPath = data.gaiaEndpoint; |
| 513 | 513 |
| 514 $('login-header-bar').newGaiaFlow = this.isNewGaiaFlow; | 514 $('login-header-bar').newGaiaFlow = this.isNewGaiaFlow; |
| 515 | 515 |
| 516 // Screen size could have been changed because of 'new-gaia-flow' or | 516 // Screen size could have been changed because of 'new-gaia-flow' or |
| 517 // 'full-width' classes. | 517 // 'full-width' classes. |
| 518 if (Oobe.getInstance().currentScreen === this) | 518 if (Oobe.getInstance().currentScreen === this) |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 this.classList.toggle('whitelist-error', show); | 1051 this.classList.toggle('whitelist-error', show); |
| 1052 this.loading = !show; | 1052 this.loading = !show; |
| 1053 | 1053 |
| 1054 if (!show) | 1054 if (!show) |
| 1055 Oobe.showSigninUI(); | 1055 Oobe.showSigninUI(); |
| 1056 } | 1056 } |
| 1057 }; | 1057 }; |
| 1058 }); | 1058 }); |
| OLD | NEW |