OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |