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

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

Issue 471973002: Single pod autofocus disabled for touch view mode. Delegate class created for ash interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 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() {

Powered by Google App Engine
This is Rietveld 408576698