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

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

Issue 11312225: Fix Chrome logo to transition smoothly between the demo login screen and login spinner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unused image file. Created 8 years, 1 month 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
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 Demo login UI. 6 * @fileoverview Demo login UI.
7 */ 7 */
8 8
9 /** 9 /**
10 * Handles a user clicking anywhere on the screen. This will log the demo user 10 * Handles a user clicking anywhere on the screen. This will log the demo user
(...skipping 20 matching lines...) Expand all
31 }); 31 });
32 }; 32 };
33 33
34 /** 34 /**
35 * Show the login spinner. 35 * Show the login spinner.
36 */ 36 */
37 showLoginSpinner = function() { 37 showLoginSpinner = function() {
38 // We're already logging in - don't login on click. 38 // We're already logging in - don't login on click.
39 document.removeEventListener('click', onClick); 39 document.removeEventListener('click', onClick);
40 40
41 // Hide the "Click to start" assets. 41 // Hide the "Click to start" and show the spinner.
42 $('logo').hidden = true;
43 $('demo-login-text').hidden = true; 42 $('demo-login-text').hidden = true;
44
45 // Show the "Logging in" assets.
46 $('logo-login').hidden = false;
47 $('login-spinner').hidden = false; 43 $('login-spinner').hidden = false;
48 }; 44 };
49 45
50 disableTextSelectAndDrag(); 46 disableTextSelectAndDrag();
51 document.addEventListener('DOMContentLoaded', initialize); 47 document.addEventListener('DOMContentLoaded', initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698