| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 */ | 168 */ |
| 169 AccountPickerScreen.updateUserGaiaNeeded = function(username) { | 169 AccountPickerScreen.updateUserGaiaNeeded = function(username) { |
| 170 $('pod-row').resetUserOAuthTokenStatus(username); | 170 $('pod-row').resetUserOAuthTokenStatus(username); |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 /** | 173 /** |
| 174 * Updates Caps Lock state (for Caps Lock hint in password input field). | 174 * Updates Caps Lock state (for Caps Lock hint in password input field). |
| 175 * @param {boolean} enabled Whether Caps Lock is on. | 175 * @param {boolean} enabled Whether Caps Lock is on. |
| 176 */ | 176 */ |
| 177 AccountPickerScreen.setCapsLockState = function(enabled) { | 177 AccountPickerScreen.setCapsLockState = function(enabled) { |
| 178 $('pod-row').classList[enabled ? 'add' : 'remove']('capslock-on'); | 178 $('pod-row').classList.toggle('capslock-on', enabled); |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 /** | 181 /** |
| 182 * Enforces focus on user pod of locked user. | 182 * Enforces focus on user pod of locked user. |
| 183 */ | 183 */ |
| 184 AccountPickerScreen.forceLockedUserPodFocus = function() { | 184 AccountPickerScreen.forceLockedUserPodFocus = function() { |
| 185 var row = $('pod-row'); | 185 var row = $('pod-row'); |
| 186 if (row.lockedPod) | 186 if (row.lockedPod) |
| 187 row.focusPod(row.lockedPod, true); | 187 row.focusPod(row.lockedPod, true); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 return { | 190 return { |
| 191 AccountPickerScreen: AccountPickerScreen | 191 AccountPickerScreen: AccountPickerScreen |
| 192 }; | 192 }; |
| 193 }); | 193 }); |
| OLD | NEW |