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

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

Issue 8372093: [cros,login] Pre-load login extension in the background. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: code review Created 9 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/screen_gaia_signin.js » ('j') | 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 /** 5 /**
6 * @fileoverview Account picker screen implementation. 6 * @fileoverview Account picker screen implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 25 matching lines...) Expand all
36 36
37 /** 37 /**
38 * Event handler that is invoked just before the frame is shown. 38 * Event handler that is invoked just before the frame is shown.
39 * @param data {string} Screen init payload. 39 * @param data {string} Screen init payload.
40 */ 40 */
41 onBeforeShow: function(data) { 41 onBeforeShow: function(data) {
42 $('pod-row').handleShow(); 42 $('pod-row').handleShow();
43 if (this.firstShown_) { 43 if (this.firstShown_) {
44 this.firstShown_ = false; 44 this.firstShown_ = false;
45 $('pod-row').startInitAnimation(); 45 $('pod-row').startInitAnimation();
46 // TODO(altimofeev): call it after animation stops.
47 chrome.send('accountPickerReady', []);
Nikita (slow) 2011/11/08 09:13:53 As we figured out animation is currently turned of
altimofeev 2011/11/08 11:40:20 Done.
46 } 48 }
47 }, 49 },
48 50
49 /** 51 /**
50 * Event handler that is invoked just before the frame is hidden. 52 * Event handler that is invoked just before the frame is hidden.
51 * @param data {string} Screen init payload. 53 * @param data {string} Screen init payload.
52 */ 54 */
53 onBeforeHide: function(data) { 55 onBeforeHide: function(data) {
54 $('pod-row').handleHide(); 56 $('pod-row').handleHide();
55 } 57 }
(...skipping 15 matching lines...) Expand all
71 * @public 73 * @public
72 */ 74 */
73 AccountPickerScreen.setCapsLockState = function(enabled) { 75 AccountPickerScreen.setCapsLockState = function(enabled) {
74 $('pod-row').classList[enabled ? 'add' : 'remove']('capslock-on'); 76 $('pod-row').classList[enabled ? 'add' : 'remove']('capslock-on');
75 }; 77 };
76 78
77 return { 79 return {
78 AccountPickerScreen: AccountPickerScreen 80 AccountPickerScreen: AccountPickerScreen
79 }; 81 };
80 }); 82 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/screen_gaia_signin.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698