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

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

Issue 978273002: Make user pod menu always visible in touchview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment fixed Created 5 years, 9 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
« no previous file with comments | « ui/login/account_picker/user_pod_row.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..af79026ce01a487dcd550c3bf195a43ec1f737d8 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 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);
+ });
},
/**
« no previous file with comments | « 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