Chromium Code Reviews| 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() { |