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

Side by Side Diff: ui/login/account_picker/screen_account_picker.js

Issue 2601933002: Always show login header bar on the account picker screen. (Closed)
Patch Set: Rewrite the comment Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698