Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1207)

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_gaia_signin.js

Issue 2340463002: Set default focus on offline signin page (Closed)
Patch Set: Merge Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698