Chromium Code Reviews| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 209 } | 209 } |
| 210 } | 210 } |
| 211 }, | 211 }, |
| 212 | 212 |
| 213 /** | 213 /** |
| 214 * Loads given users in pod row. | 214 * Loads given users in pod row. |
| 215 * @param {array} users Array of user. | 215 * @param {array} users Array of user. |
| 216 * @param {boolean} showGuest Whether to show guest session button. | 216 * @param {boolean} showGuest Whether to show guest session button. |
| 217 */ | 217 */ |
| 218 loadUsers: function(users, showGuest) { | 218 loadUsers: function(users, showGuest) { |
| 219 this.loadPinKeyboardIfNeeded_(users); | 219 $('pod-row').loadPods(users); |
| 220 | 220 |
|
jdufault
2016/06/24 18:11:42
nit: remove newline
sammiequon
2016/06/24 19:21:51
Done.
| |
| 221 $('pod-row').loadPods(users); | |
| 222 $('login-header-bar').showGuestButton = showGuest; | 221 $('login-header-bar').showGuestButton = showGuest; |
| 223 // On Desktop, #login-header-bar has a shadow if there are 8+ profiles. | 222 // On Desktop, #login-header-bar has a shadow if there are 8+ profiles. |
| 224 if (Oobe.getInstance().displayType == DISPLAY_TYPE.DESKTOP_USER_MANAGER) | 223 if (Oobe.getInstance().displayType == DISPLAY_TYPE.DESKTOP_USER_MANAGER) |
| 225 $('login-header-bar').classList.toggle('shadow', users.length > 8); | 224 $('login-header-bar').classList.toggle('shadow', users.length > 8); |
| 225 | |
| 226 this.loadPinKeyboardIfNeeded_(users); | |
| 226 }, | 227 }, |
| 227 | 228 |
| 228 /** | 229 /** |
| 229 * Runs app with a given id from the list of loaded apps. | 230 * Runs app with a given id from the list of loaded apps. |
| 230 * @param {!string} app_id of an app to run. | 231 * @param {!string} app_id of an app to run. |
| 231 * @param {boolean=} opt_diagnostic_mode Whether to run the app in | 232 * @param {boolean=} opt_diagnostic_mode Whether to run the app in |
| 232 * diagnostic mode. Default is false. | 233 * diagnostic mode. Default is false. |
| 233 */ | 234 */ |
| 234 runAppForTesting: function(app_id, opt_diagnostic_mode) { | 235 runAppForTesting: function(app_id, opt_diagnostic_mode) { |
| 235 $('pod-row').findAndRunAppForTesting(app_id, opt_diagnostic_mode); | 236 $('pod-row').findAndRunAppForTesting(app_id, opt_diagnostic_mode); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 403 * @param {string} userID The user ID of the public session | 404 * @param {string} userID The user ID of the public session |
| 404 * @param {string} locale The locale to which this list of keyboard layouts | 405 * @param {string} locale The locale to which this list of keyboard layouts |
| 405 * applies | 406 * applies |
| 406 * @param {!Object} list List of available keyboard layouts | 407 * @param {!Object} list List of available keyboard layouts |
| 407 */ | 408 */ |
| 408 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 409 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
| 409 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 410 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
| 410 } | 411 } |
| 411 }; | 412 }; |
| 412 }); | 413 }); |
| OLD | NEW |