| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 } | 280 } |
| 281 } | 281 } |
| 282 }, | 282 }, |
| 283 | 283 |
| 284 /** | 284 /** |
| 285 * Loads given users in pod row. | 285 * Loads given users in pod row. |
| 286 * @param {array} users Array of user. | 286 * @param {array} users Array of user. |
| 287 * @param {boolean} showGuest Whether to show guest session button. | 287 * @param {boolean} showGuest Whether to show guest session button. |
| 288 */ | 288 */ |
| 289 loadUsers: function(users, showGuest) { | 289 loadUsers: function(users, showGuest) { |
| 290 console.error("loadUsers: users:\n" + JSON.stringify(users,2,null)); |
| 290 $('pod-row').loadPods(users); | 291 $('pod-row').loadPods(users); |
| 291 $('login-header-bar').showGuestButton = showGuest; | 292 $('login-header-bar').showGuestButton = showGuest; |
| 292 // On Desktop, #login-header-bar has a shadow if there are 8+ profiles. | 293 // On Desktop, #login-header-bar has a shadow if there are 8+ profiles. |
| 293 if (Oobe.getInstance().displayType == DISPLAY_TYPE.DESKTOP_USER_MANAGER) | 294 if (Oobe.getInstance().displayType == DISPLAY_TYPE.DESKTOP_USER_MANAGER) |
| 294 $('login-header-bar').classList.toggle('shadow', users.length > 8); | 295 $('login-header-bar').classList.toggle('shadow', users.length > 8); |
| 295 | 296 |
| 296 this.initializePinKeyboardStateForUsers_(users); | 297 this.initializePinKeyboardStateForUsers_(users); |
| 297 }, | 298 }, |
| 298 | 299 |
| 299 /** | 300 /** |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 * @param {string} userID The user ID of the public session | 466 * @param {string} userID The user ID of the public session |
| 466 * @param {string} locale The locale to which this list of keyboard layouts | 467 * @param {string} locale The locale to which this list of keyboard layouts |
| 467 * applies | 468 * applies |
| 468 * @param {!Object} list List of available keyboard layouts | 469 * @param {!Object} list List of available keyboard layouts |
| 469 */ | 470 */ |
| 470 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 471 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
| 471 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 472 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
| 472 } | 473 } |
| 473 }; | 474 }; |
| 474 }); | 475 }); |
| OLD | NEW |