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

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

Issue 1642323004: User Manager MD User Pods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: User Manager MD User Pods Created 4 years, 10 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
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 }, 196 },
197 197
198 /** 198 /**
199 * Loads given users in pod row. 199 * Loads given users in pod row.
200 * @param {array} users Array of user. 200 * @param {array} users Array of user.
201 * @param {boolean} showGuest Whether to show guest session button. 201 * @param {boolean} showGuest Whether to show guest session button.
202 */ 202 */
203 loadUsers: function(users, showGuest) { 203 loadUsers: function(users, showGuest) {
204 $('pod-row').loadPods(users); 204 $('pod-row').loadPods(users);
205 $('login-header-bar').showGuestButton = showGuest; 205 $('login-header-bar').showGuestButton = showGuest;
206 // On Desktop, |login-header-bar| has a shadow if there are 8+ profiles.
Roger Tawa OOO till Jul 10th 2016/02/10 15:58:30 Is this code used by cros too? If not, maybe don'
Moe 2016/02/11 00:44:02 This is also called from chrome/browser/ui/webui/c
207 $('login-header-bar').classList.toggle('shadow', users.length > 8);
206 }, 208 },
207 209
208 /** 210 /**
209 * Runs app with a given id from the list of loaded apps. 211 * Runs app with a given id from the list of loaded apps.
210 * @param {!string} app_id of an app to run. 212 * @param {!string} app_id of an app to run.
211 * @param {boolean=} opt_diagnostic_mode Whether to run the app in 213 * @param {boolean=} opt_diagnostic_mode Whether to run the app in
212 * diagnostic mode. Default is false. 214 * diagnostic mode. Default is false.
213 */ 215 */
214 runAppForTesting: function(app_id, opt_diagnostic_mode) { 216 runAppForTesting: function(app_id, opt_diagnostic_mode) {
215 $('pod-row').findAndRunAppForTesting(app_id, opt_diagnostic_mode); 217 $('pod-row').findAndRunAppForTesting(app_id, opt_diagnostic_mode);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 * @param {string} userID The user ID of the public session 368 * @param {string} userID The user ID of the public session
367 * @param {string} locale The locale to which this list of keyboard layouts 369 * @param {string} locale The locale to which this list of keyboard layouts
368 * applies 370 * applies
369 * @param {!Object} list List of available keyboard layouts 371 * @param {!Object} list List of available keyboard layouts
370 */ 372 */
371 setPublicSessionKeyboardLayouts: function(userID, locale, list) { 373 setPublicSessionKeyboardLayouts: function(userID, locale, list) {
372 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); 374 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list);
373 } 375 }
374 }; 376 };
375 }); 377 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698