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 194a3c6062713726f9f56ab612491d344b8756a4..8677ec2491b327627b2ffd38f8865a7be92b85c5 100644 |
| --- a/ui/login/account_picker/user_pod_row.js |
| +++ b/ui/login/account_picker/user_pod_row.js |
| @@ -1590,14 +1590,15 @@ cr.define('login', function() { |
| /** |
| * Return true if user pod row has only single user pod in it, which should |
| - * always be focused. |
| + * always be focused when Touch View mode is disabled.. |
|
Nikita (slow)
2014/08/14 15:48:00
nit: You should mention desktop mode as well.
merkulova
2014/08/14 15:56:02
Done.
|
| * @type {boolean} |
| */ |
| get alwaysFocusSinglePod() { |
| var isDesktopUserManager = Oobe.getInstance().displayType == |
| DISPLAY_TYPE.DESKTOP_USER_MANAGER; |
| - return isDesktopUserManager ? false : this.children.length == 1; |
| + return (isDesktopUserManager || this.touchViewEnabled_) ? |
| + false : this.children.length == 1; |
| }, |
| /** |
| @@ -1894,6 +1895,14 @@ cr.define('login', function() { |
| }, |
| /** |
| + * Sets the state of touch view mode. |
| + * @param {boolean} isTouchViewEnabled true if the mode is on. |
| + */ |
| + setTouchViewState: function(isTouchViewEnabled) { |
| + this.touchViewEnabled_ = isTouchViewEnabled; |
| + }, |
| + |
| + /** |
| * Shows a tooltip bubble explaining Easy Unlock for the focused pod. |
| */ |
| showEasyUnlockBubble: function() { |