OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |