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