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

Unified Diff: ui/login/account_picker/screen_account_picker.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: Dummy handler added. Created 6 years, 3 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 | « chrome/chrome_browser_ui.gypi ('k') | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/account_picker/screen_account_picker.js
diff --git a/ui/login/account_picker/screen_account_picker.js b/ui/login/account_picker/screen_account_picker.js
index e1dbd6664256dac5ce141dd46b5bf8374038cbd3..fc87cc438e8d7c4b6a246f2e06aa0341ac9679a4 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -29,6 +29,7 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
'showUserPodCustomIcon',
'hideUserPodCustomIcon',
'setAuthType',
+ 'setTouchViewState',
'setPublicSessionDisplayName',
'setPublicSessionLocales',
'setPublicSessionKeyboardLayouts',
@@ -113,6 +114,7 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
* Event handler invoked when the page is shown and ready.
*/
onShow: function() {
+ chrome.send('getTouchViewState');
if (!this.firstShown_) return;
this.firstShown_ = false;
@@ -304,6 +306,14 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
},
/**
+ * Sets the state of touch view mode.
+ * @param {boolean} isTouchViewEnabled true if the mode is on.
+ */
+ setTouchViewState: function(isTouchViewEnabled) {
+ $('pod-row').setTouchViewState(isTouchViewEnabled);
+ },
+
+ /**
* Updates the display name shown on a public session pod.
* @param {string} userID The user ID of the public session
* @param {string} displayName The new display name
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698