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

Side by Side Diff: ui/login/account_picker/md_user_pod_row.js

Issue 2916973002: Fix two container issues for new login screen (Closed)
Patch Set: Created 3 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
« no previous file with comments | « chrome/browser/resources/chromeos/login/md_login_shared.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 3104 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 */ 3115 */
3116 rebuildPods: function() { 3116 rebuildPods: function() {
3117 var emptyPodRow = this.pods.length == 0; 3117 var emptyPodRow = this.pods.length == 0;
3118 3118
3119 // Clear existing pods. 3119 // Clear existing pods.
3120 this.innerHTML = ''; 3120 this.innerHTML = '';
3121 this.focusedPod_ = undefined; 3121 this.focusedPod_ = undefined;
3122 this.activatedPod_ = undefined; 3122 this.activatedPod_ = undefined;
3123 this.lastFocusedPod_ = undefined; 3123 this.lastFocusedPod_ = undefined;
3124 this.mainPod_ = undefined; 3124 this.mainPod_ = undefined;
3125 this.smallPodsContainer.innerHTML = '';
3125 3126
3126 // Switch off animation 3127 // Switch off animation
3127 Oobe.getInstance().toggleClass('flying-pods', false); 3128 Oobe.getInstance().toggleClass('flying-pods', false);
3128 3129
3129 for (var i = 0; i < this.users_.length; ++i) 3130 for (var i = 0; i < this.users_.length; ++i)
3130 this.addUserPod(this.users_[i]); 3131 this.addUserPod(this.users_[i]);
3131 3132
3132 for (var i = 0, pod; pod = this.pods[i]; ++i) 3133 for (var i = 0, pod; pod = this.pods[i]; ++i)
3133 this.podsWithPendingImages_.push(pod); 3134 this.podsWithPendingImages_.push(pod);
3134 3135
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after
4486 if (pod && pod.multiProfilesPolicyApplied) { 4487 if (pod && pod.multiProfilesPolicyApplied) {
4487 pod.userTypeBubbleElement.classList.remove('bubble-shown'); 4488 pod.userTypeBubbleElement.classList.remove('bubble-shown');
4488 } 4489 }
4489 } 4490 }
4490 }; 4491 };
4491 4492
4492 return { 4493 return {
4493 PodRow: PodRow 4494 PodRow: PodRow
4494 }; 4495 };
4495 }); 4496 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/md_login_shared.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698