| 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 /** | 724 /** |
| 725 * Invoked when the auth host emits 'ready' event. | 725 * Invoked when the auth host emits 'ready' event. |
| 726 * @private | 726 * @private |
| 727 */ | 727 */ |
| 728 onAuthReady_: function() { | 728 onAuthReady_: function() { |
| 729 this.showViewProcessed_ = false; | 729 this.showViewProcessed_ = false; |
| 730 this.startLoadAnimationGuardTimer_(); | 730 this.startLoadAnimationGuardTimer_(); |
| 731 this.clearLoadingTimer_(); | 731 this.clearLoadingTimer_(); |
| 732 this.loading = false; | 732 this.loading = false; |
| 733 | 733 |
| 734 if (!$('offline-gaia').hidden) |
| 735 $('offline-gaia').focus(); |
| 736 |
| 734 // Warm up the user images screen. | 737 // Warm up the user images screen. |
| 735 Oobe.getInstance().preloadScreen({id: SCREEN_USER_IMAGE_PICKER}); | 738 Oobe.getInstance().preloadScreen({id: SCREEN_USER_IMAGE_PICKER}); |
| 736 }, | 739 }, |
| 737 | 740 |
| 738 /** | 741 /** |
| 739 * Invoked when the auth host emits 'dialogShown' event. | 742 * Invoked when the auth host emits 'dialogShown' event. |
| 740 * @private | 743 * @private |
| 741 */ | 744 */ |
| 742 onDialogShown_: function() { | 745 onDialogShown_: function() { |
| 743 this.navigation_.disabled = true; | 746 this.navigation_.disabled = true; |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 if (this.screenMode_ != ScreenMode.AD_AUTH) | 1127 if (this.screenMode_ != ScreenMode.AD_AUTH) |
| 1125 return; | 1128 return; |
| 1126 var adAuthUI = this.getSigninFrame_(); | 1129 var adAuthUI = this.getSigninFrame_(); |
| 1127 adAuthUI.setUser(username); | 1130 adAuthUI.setUser(username); |
| 1128 adAuthUI.setInvalid(errorState); | 1131 adAuthUI.setInvalid(errorState); |
| 1129 this.loading = false; | 1132 this.loading = false; |
| 1130 Oobe.getInstance().headerHidden = false; | 1133 Oobe.getInstance().headerHidden = false; |
| 1131 } | 1134 } |
| 1132 }; | 1135 }; |
| 1133 }); | 1136 }); |
| OLD | NEW |