Chromium Code Reviews| 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); |