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

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: Addressed comment, rebase, and fix for browser test Created 4 years, 8 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.
207 if (Oobe.getInstance().displayType == DISPLAY_TYPE.DESKTOP_USER_MANAGER)
208 $('login-header-bar').classList.toggle('shadow', users.length > 8);
206 }, 209 },
207 210
208 /** 211 /**
209 * Runs app with a given id from the list of loaded apps. 212 * Runs app with a given id from the list of loaded apps.
210 * @param {!string} app_id of an app to run. 213 * @param {!string} app_id of an app to run.
211 * @param {boolean=} opt_diagnostic_mode Whether to run the app in 214 * @param {boolean=} opt_diagnostic_mode Whether to run the app in
212 * diagnostic mode. Default is false. 215 * diagnostic mode. Default is false.
213 */ 216 */
214 runAppForTesting: function(app_id, opt_diagnostic_mode) { 217 runAppForTesting: function(app_id, opt_diagnostic_mode) {
215 $('pod-row').findAndRunAppForTesting(app_id, opt_diagnostic_mode); 218 $('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 369 * @param {string} userID The user ID of the public session
367 * @param {string} locale The locale to which this list of keyboard layouts 370 * @param {string} locale The locale to which this list of keyboard layouts
368 * applies 371 * applies
369 * @param {!Object} list List of available keyboard layouts 372 * @param {!Object} list List of available keyboard layouts
370 */ 373 */
371 setPublicSessionKeyboardLayouts: function(userID, locale, list) { 374 setPublicSessionKeyboardLayouts: function(userID, locale, list) {
372 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); 375 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list);
373 } 376 }
374 }; 377 };
375 }); 378 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/user_manager/user_manager.js ('k') | ui/login/account_picker/user_pod_row.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698