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

Unified Diff: ui/login/account_picker/user_pod_row.js

Issue 2106113003: Fixed issue with pods flying when changing profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Renamed function for clarity. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/login/account_picker/user_pod_row.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/account_picker/user_pod_row.js
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index 0f854e0ba07a820dc14601dd4c059926d1345f2e..1a6bf7bb56934dd97e18f9905f7f446fdb29a4da 100644
--- a/ui/login/account_picker/user_pod_row.js
+++ b/ui/login/account_picker/user_pod_row.js
@@ -1124,6 +1124,10 @@ cr.define('login', function() {
}
},
+ toggleTransitions: function(enable) {
+ this.classList.toggle('flying-pin-pod', enable);
+ },
+
setPinVisibility: function(visible) {
var elements = [this, this.authElement, this.imageElement,
this.signInElement, this.pinContainer];
@@ -2551,6 +2555,11 @@ cr.define('login', function() {
userPod.initialize();
},
+ togglePinTransitions: function(enable) {
+ for (var i = 0; i < this.pods.length; ++i)
+ this.pods[i].toggleTransitions(enable);
+ },
+
setFocusedPodPinVisibility: function(visible) {
if (this.focusedPod_ && this.focusedPod_.user.showPin)
this.focusedPod_.setPinVisibility(visible);
« no previous file with comments | « ui/login/account_picker/user_pod_row.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698