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

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: 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/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 d4af56ba894927b545d4b1505cbf6e4f3f47c21a..4777168babbea22f21c32918a889a55a811d6ebb 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',
'showEasyUnlockBubble',
'setPublicSessionDisplayName',
'setPublicSessionLocales',
@@ -103,6 +104,9 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
chrome.send('hideCaptivePortal');
var podRow = $('pod-row');
podRow.handleBeforeShow();
+ if (data !== undefined && data.touchViewEnabled) {
Nikita (slow) 2014/08/14 15:48:00 nit: Drop {}
merkulova 2014/08/14 15:56:02 Done.
+ this.setTouchViewState(data.touchViewEnabled);
+ }
// In case of the preselected pod onShow will be called once pod
// receives focus.
@@ -308,6 +312,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);
+ },
+
+ /**
* Shows a tooltip bubble explaining Easy Unlock.
*/
showEasyUnlockBubble: function() {

Powered by Google App Engine
This is Rietveld 408576698