| 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 animation guard timer. Started when GAIA page is loaded | 10 // GAIA animation guard timer. Started when GAIA page is loaded |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 | 511 |
| 512 // Ensure that GAIA signin (or loading UI) is actually visible. | 512 // Ensure that GAIA signin (or loading UI) is actually visible. |
| 513 window.requestAnimationFrame(function() { | 513 window.requestAnimationFrame(function() { |
| 514 chrome.send('loginVisible', ['gaia-loading']); | 514 chrome.send('loginVisible', ['gaia-loading']); |
| 515 }); | 515 }); |
| 516 | 516 |
| 517 // Button header is always visible when sign in is presented. | 517 // Button header is always visible when sign in is presented. |
| 518 // Header is hidden once GAIA reports on successful sign in. | 518 // Header is hidden once GAIA reports on successful sign in. |
| 519 Oobe.getInstance().headerHidden = false; | 519 Oobe.getInstance().headerHidden = false; |
| 520 | 520 |
| 521 // Re-enable navigation in case it was disabled before refresh. |
| 522 this.navigation_.disabled = false; |
| 523 |
| 521 this.lastBackMessageValue_ = false; | 524 this.lastBackMessageValue_ = false; |
| 522 this.updateControlsState(); | 525 this.updateControlsState(); |
| 523 }, | 526 }, |
| 524 | 527 |
| 525 getSigninFrame_: function() { | 528 getSigninFrame_: function() { |
| 526 switch (this.screenMode_) { | 529 switch (this.screenMode_) { |
| 527 case ScreenMode.DEFAULT: | 530 case ScreenMode.DEFAULT: |
| 528 return $('signin-frame'); | 531 return $('signin-frame'); |
| 529 case ScreenMode.OFFLINE: | 532 case ScreenMode.OFFLINE: |
| 530 return $('offline-gaia'); | 533 return $('offline-gaia'); |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 | 1067 |
| 1065 if (show) | 1068 if (show) |
| 1066 $('gaia-whitelist-error').submitButton.focus(); | 1069 $('gaia-whitelist-error').submitButton.focus(); |
| 1067 else | 1070 else |
| 1068 Oobe.showSigninUI(); | 1071 Oobe.showSigninUI(); |
| 1069 | 1072 |
| 1070 this.updateControlsState(); | 1073 this.updateControlsState(); |
| 1071 } | 1074 } |
| 1072 }; | 1075 }; |
| 1073 }); | 1076 }); |
| OLD | NEW |