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

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: 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
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..d51cab79f8a4d0ea8a7a0399476d6754e5fe880e 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() {
}
},
+ setEnableTransitions: function(enable) {
+ this.classList.toggle('flying-pin-pod', enable);
jdufault 2016/06/29 20:40:35 Do we ever want this not enabled?
sammiequon 2016/06/29 21:01:23 It seems the user picker in chrome uses user pod t
+ },
+
setPinVisibility: function(visible) {
var elements = [this, this.authElement, this.imageElement,
this.signInElement, this.pinContainer];
@@ -2551,6 +2555,11 @@ cr.define('login', function() {
userPod.initialize();
},
+ setEnablePodTransitions: function(enable) {
+ for (var i = 0; i < this.pods.length; ++i)
+ this.pods[i].setEnableTransitions(enable);
+ },
+
setFocusedPodPinVisibility: function(visible) {
if (this.focusedPod_ && this.focusedPod_.user.showPin)
this.focusedPod_.setPinVisibility(visible);
« chrome/browser/resources/chromeos/login/lock.js ('K') | « 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