Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ui / login / account_picker / screen_account_picker.js
index e1dbd66..fc87cc4 100644 (file)
@@ -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