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

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

Issue 10476002: [cros] Change how we track momemt to emit login-prompt-visible signal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge + nit Created 8 years, 6 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 User pod row implementation. 6 * @fileoverview User pod row implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 */ 859 */
860 handlePodImageLoad: function(pod) { 860 handlePodImageLoad: function(pod) {
861 var index = this.podsWithPendingImages_.indexOf(pod); 861 var index = this.podsWithPendingImages_.indexOf(pod);
862 if (index == -1) { 862 if (index == -1) {
863 return; 863 return;
864 } 864 }
865 865
866 this.podsWithPendingImages_.splice(index, 1); 866 this.podsWithPendingImages_.splice(index, 1);
867 if (this.podsWithPendingImages_.length == 0) { 867 if (this.podsWithPendingImages_.length == 0) {
868 chrome.send('userImagesLoaded'); 868 chrome.send('userImagesLoaded');
869 // Report back user pods being painted.
870 window.webkitRequestAnimationFrame(function() {
871 chrome.send('loginVisible');
872 });
869 } 873 }
870 } 874 }
871 }; 875 };
872 876
873 return { 877 return {
874 PodRow: PodRow 878 PodRow: PodRow
875 }; 879 };
876 }); 880 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698