OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview Account picker screen implementation. | 6 * @fileoverview Account picker screen implementation. |
7 */ | 7 */ |
8 | 8 |
9 login.createScreen('AccountPickerScreen', 'account-picker', function() { | 9 login.createScreen('AccountPickerScreen', 'account-picker', function() { |
10 /** | 10 /** |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 }, | 111 }, |
112 | 112 |
113 /** | 113 /** |
114 * Event handler that is invoked just before the frame is shown. | 114 * Event handler that is invoked just before the frame is shown. |
115 * @param {string} data Screen init payload. | 115 * @param {string} data Screen init payload. |
116 */ | 116 */ |
117 onBeforeShow: function(data) { | 117 onBeforeShow: function(data) { |
118 this.showing_ = true; | 118 this.showing_ = true; |
119 chrome.send('loginUIStateChanged', ['account-picker', true]); | 119 chrome.send('loginUIStateChanged', ['account-picker', true]); |
120 $('login-header-bar').signinUIState = SIGNIN_UI_STATE.ACCOUNT_PICKER; | 120 $('login-header-bar').signinUIState = SIGNIN_UI_STATE.ACCOUNT_PICKER; |
| 121 // Header bar should be always visible on Account Picker screen. |
| 122 Oobe.getInstance().headerHidden = false; |
121 chrome.send('hideCaptivePortal'); | 123 chrome.send('hideCaptivePortal'); |
122 var podRow = $('pod-row'); | 124 var podRow = $('pod-row'); |
123 podRow.handleBeforeShow(); | 125 podRow.handleBeforeShow(); |
124 | 126 |
125 // In case of the preselected pod onShow will be called once pod | 127 // In case of the preselected pod onShow will be called once pod |
126 // receives focus. | 128 // receives focus. |
127 if (!podRow.preselectedPod) | 129 if (!podRow.preselectedPod) |
128 this.onShow(); | 130 this.onShow(); |
129 }, | 131 }, |
130 | 132 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 * @param {string} userID The user ID of the public session | 477 * @param {string} userID The user ID of the public session |
476 * @param {string} locale The locale to which this list of keyboard layouts | 478 * @param {string} locale The locale to which this list of keyboard layouts |
477 * applies | 479 * applies |
478 * @param {!Object} list List of available keyboard layouts | 480 * @param {!Object} list List of available keyboard layouts |
479 */ | 481 */ |
480 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 482 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
481 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 483 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
482 } | 484 } |
483 }; | 485 }; |
484 }); | 486 }); |
OLD | NEW |