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

Side by Side Diff: chrome/browser/resources/sync_setup_overlay.js

Issue 8923008: [Sync Promo UI] Focus when asked for ASP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
« 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 cr.define('options', function() { 5 cr.define('options', function() {
6 const OptionsPage = options.OptionsPage; 6 const OptionsPage = options.OptionsPage;
7 7
8 // Variable to track if a captcha challenge was issued. If this gets set to 8 // Variable to track if a captcha challenge was issued. If this gets set to
9 // true, it stays that way until we are told about successful login from 9 // true, it stays that way until we are told about successful login from
10 // the browser. This means subsequent errors (like invalid password) are 10 // the browser. This means subsequent errors (like invalid password) are
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 getSignInButton_: function() { 585 getSignInButton_: function() {
586 return $('sign-in'); 586 return $('sign-in');
587 }, 587 },
588 588
589 showAccessCodeRequired_: function() { 589 showAccessCodeRequired_: function() {
590 $('password-row').hidden = true; 590 $('password-row').hidden = true;
591 $('email-row').hidden = true; 591 $('email-row').hidden = true;
592 592
593 $('access-code-input-row').hidden = false; 593 $('access-code-input-row').hidden = false;
594 $('access-code').disabled = false; 594 $('access-code').disabled = false;
595 $('access-code').focus();
595 }, 596 },
596 597
597 showCaptcha_: function(args) { 598 showCaptcha_: function(args) {
598 this.captchaChallengeActive_ = true; 599 this.captchaChallengeActive_ = true;
599 600
600 // The captcha takes up lots of space, so make room. 601 // The captcha takes up lots of space, so make room.
601 $('top-blurb-error').hidden = true; 602 $('top-blurb-error').hidden = true;
602 $('create-account-div').hidden = true; 603 $('create-account-div').hidden = true;
603 604
604 // It's showtime for the captcha now. 605 // It's showtime for the captcha now.
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 881
881 SyncSetupOverlay.showStopSyncingUI = function() { 882 SyncSetupOverlay.showStopSyncingUI = function() {
882 SyncSetupOverlay.getInstance().showStopSyncingUI_(); 883 SyncSetupOverlay.getInstance().showStopSyncingUI_();
883 }; 884 };
884 885
885 // Export 886 // Export
886 return { 887 return {
887 SyncSetupOverlay: SyncSetupOverlay 888 SyncSetupOverlay: SyncSetupOverlay
888 }; 889 };
889 }); 890 });
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