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

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_account_picker.js

Issue 8773046: [cros] Display emails of users are stored in a separate dictionary in Local State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 * @param {array} users Array of user. 76 * @param {array} users Array of user.
77 * @param {boolean} animated Whether to use init animation. 77 * @param {boolean} animated Whether to use init animation.
78 * @public 78 * @public
79 */ 79 */
80 AccountPickerScreen.loadUsers = function(users, animated) { 80 AccountPickerScreen.loadUsers = function(users, animated) {
81 $('pod-row').loadPods(users, animated); 81 $('pod-row').loadPods(users, animated);
82 }; 82 };
83 83
84 /** 84 /**
85 * Updates current image of a user. 85 * Updates current image of a user.
86 * @param {string} email Email of the user for which to update the image. 86 * @param {string} username User for which to update the image.
87 * @public 87 * @public
88 */ 88 */
89 AccountPickerScreen.updateUserImage = function(email) { 89 AccountPickerScreen.updateUserImage = function(username) {
90 $('pod-row').updateUserImage(email); 90 $('pod-row').updateUserImage(username);
91 }; 91 };
92 92
93 /** 93 /**
94 * Updates Caps Lock state (for Caps Lock hint in password input field). 94 * Updates Caps Lock state (for Caps Lock hint in password input field).
95 * @param {boolean} enabled Whether Caps Lock is on. 95 * @param {boolean} enabled Whether Caps Lock is on.
96 * @public 96 * @public
97 */ 97 */
98 AccountPickerScreen.setCapsLockState = function(enabled) { 98 AccountPickerScreen.setCapsLockState = function(enabled) {
99 $('pod-row').classList[enabled ? 'add' : 'remove']('capslock-on'); 99 $('pod-row').classList[enabled ? 'add' : 'remove']('capslock-on');
100 }; 100 };
101 101
102 return { 102 return {
103 AccountPickerScreen: AccountPickerScreen 103 AccountPickerScreen: AccountPickerScreen
104 }; 104 };
105 }); 105 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698