| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 if (this.firstShown_) { | 42 if (this.firstShown_) { |
| 43 this.firstShown_ = false; | 43 this.firstShown_ = false; |
| 44 $('pod-row').startInitAnimation(); | 44 $('pod-row').startInitAnimation(); |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 /** | 49 /** |
| 50 * Loads givens users in pod row. | 50 * Loads givens users in pod row. |
| 51 * @param {array} users Array of user. | 51 * @param {array} users Array of user. |
| 52 * @param {boolean} animated Whether to use init animation. |
| 52 * @public | 53 * @public |
| 53 */ | 54 */ |
| 54 AccountPickerScreen.loadUsers = function(users) { | 55 AccountPickerScreen.loadUsers = function(users, animated) { |
| 55 $('pod-row').loadPods(users); | 56 $('pod-row').loadPods(users, animated); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 return { | 59 return { |
| 59 AccountPickerScreen: AccountPickerScreen | 60 AccountPickerScreen: AccountPickerScreen |
| 60 }; | 61 }; |
| 61 }); | 62 }); |
| OLD | NEW |