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

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

Issue 10207030: Asynchronously load wallpapers when user pod is selected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 // Pod width. 170px Pod + 10px padding + 10px margin on both sides. 10 // Pod width. 170px Pod + 10px padding + 10px margin on both sides.
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 pod.reset(false); 640 pod.reset(false);
641 } 641 }
642 } 642 }
643 643
644 this.focusedPod_ = podToFocus; 644 this.focusedPod_ = podToFocus;
645 if (podToFocus) { 645 if (podToFocus) {
646 podToFocus.classList.remove('faded'); 646 podToFocus.classList.remove('faded');
647 podToFocus.classList.add('focused'); 647 podToFocus.classList.add('focused');
648 podToFocus.reset(true); // Reset and give focus. 648 podToFocus.reset(true); // Reset and give focus.
649 this.scrollPodIntoView(podToFocus); 649 this.scrollPodIntoView(podToFocus);
650 chrome.send('userSelected', [podToFocus.user.username]);
Nikita (slow) 2012/04/25 16:47:48 See http://crosbug.com/1124339 it mentions one spe
bshe 2012/04/25 23:54:43 Done. I cleared the previous timeout and setup a n
Nikita (slow) 2012/04/26 17:22:03 I still think that we should have some timeout and
bshe 2012/04/26 20:25:21 Make sense. I will keep it this way and using 800
650 } 651 }
651 }, 652 },
652 653
653 /** 654 /**
654 * Returns the currently activated pod. 655 * Returns the currently activated pod.
655 * @type {UserPod} 656 * @type {UserPod}
656 */ 657 */
657 get activatedPod() { 658 get activatedPod() {
658 return this.activatedPod_; 659 return this.activatedPod_;
659 }, 660 },
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 if (this.podsWithPendingImages_.length == 0) { 848 if (this.podsWithPendingImages_.length == 0) {
848 chrome.send('userImagesLoaded'); 849 chrome.send('userImagesLoaded');
849 } 850 }
850 } 851 }
851 }; 852 };
852 853
853 return { 854 return {
854 PodRow: PodRow 855 PodRow: PodRow
855 }; 856 };
856 }); 857 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698