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 f52b7a1904e1ac5bb555f6f2cce2ae9c9e8275c1..123741b052fa9ebef057601fb55f982cd3c65d79 100644 |
| --- a/ui/login/account_picker/user_pod_row.js |
| +++ b/ui/login/account_picker/user_pod_row.js |
| @@ -2138,9 +2138,8 @@ cr.define('login', function() { |
| // Array of users that are shown (public/supervised/regular). |
| users_: [], |
| - // If we're disabling single pod autofocus for Touch View. |
| - touchViewSinglePodExperimentOn_: true, |
| - |
| + // If we're in touch Touch View mode. |
|
Nikita (slow)
2015/03/10 09:50:42
nit: just 'in Touch View mode'?
|
| + touchViewEnabled_: false, |
| /** @override */ |
| decorate: function() { |
| @@ -2178,9 +2177,7 @@ cr.define('login', function() { |
| var isDesktopUserManager = Oobe.getInstance().displayType == |
| DISPLAY_TYPE.DESKTOP_USER_MANAGER; |
| - return (isDesktopUserManager || |
| - (this.touchViewSinglePodExperimentOn_ && |
| - this.touchViewEnabled_)) ? |
| + return (isDesktopUserManager || this.touchViewEnabled_) ? |
| false : this.children.length == 1; |
| }, |
| @@ -2532,6 +2529,9 @@ cr.define('login', function() { |
| */ |
| setTouchViewState: function(isTouchViewEnabled) { |
| this.touchViewEnabled_ = isTouchViewEnabled; |
| + this.pods.forEach(function(pod, index) { |
| + pod.actionBoxAreaElement.classList.toggle('forced', isTouchViewEnabled); |
| + }); |
| }, |
| /** |