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

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

Issue 10889024: [cros] Initialize OOBE in parallel when boot animation is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Subscription fixes Created 8 years, 3 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 | 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 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 /** 92 /**
93 * Event handler invoked when the page is shown and ready. 93 * Event handler invoked when the page is shown and ready.
94 */ 94 */
95 onShow: function() { 95 onShow: function() {
96 if (!this.firstShown_) return; 96 if (!this.firstShown_) return;
97 this.firstShown_ = false; 97 this.firstShown_ = false;
98 // TODO(nkostylev): Enable animation back when session start jank 98 // TODO(nkostylev): Enable animation back when session start jank
99 // is reduced. See http://crosbug.com/11116 http://crosbug.com/18307 99 // is reduced. See http://crosbug.com/11116 http://crosbug.com/18307
100 // $('pod-row').startInitAnimation(); 100 // $('pod-row').startInitAnimation();
101 101
102 // TODO(altimofeev): Call it after animation has stoped when animation
103 // is enabled.
104 chrome.send('accountPickerReady'); 102 chrome.send('accountPickerReady');
103 chrome.send('loginVisible');
105 }, 104 },
106 105
107 /** 106 /**
108 * Event handler that is invoked just before the frame is hidden. 107 * Event handler that is invoked just before the frame is hidden.
109 * @param {string} data Screen init payload. 108 * @param {string} data Screen init payload.
110 */ 109 */
111 onBeforeHide: function(data) { 110 onBeforeHide: function(data) {
112 $('pod-row').handleHide(); 111 $('pod-row').handleHide();
113 }, 112 },
114 113
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 }; 195 };
197 // Start image loading. 196 // Start image loading.
198 // Add timestamp for wallpapers that are rotated over time. 197 // Add timestamp for wallpapers that are rotated over time.
199 image.src = 'chrome://wallpaper/' + new Date().getTime(); 198 image.src = 'chrome://wallpaper/' + new Date().getTime();
200 }; 199 };
201 200
202 return { 201 return {
203 AccountPickerScreen: AccountPickerScreen 202 AccountPickerScreen: AccountPickerScreen
204 }; 203 };
205 }); 204 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698