| 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 User pod row implementation. | 6 * @fileoverview User pod row implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 cr.define('login', function() { | 9 cr.define('login', function() { |
| 10 /** | 10 /** |
| (...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 this.tabIndex = UserPodTabOrder.POD_INPUT; | 771 this.tabIndex = UserPodTabOrder.POD_INPUT; |
| 772 }, | 772 }, |
| 773 | 773 |
| 774 /** | 774 /** |
| 775 * Handles the user hitting 'submit' on the PIN keyboard. | 775 * Handles the user hitting 'submit' on the PIN keyboard. |
| 776 * @param {Event} e Submit event object. | 776 * @param {Event} e Submit event object. |
| 777 * @private | 777 * @private |
| 778 */ | 778 */ |
| 779 handlePinSubmitted_: function(e) { | 779 handlePinSubmitted_: function(e) { |
| 780 var pin = e.detail.pin; | 780 var pin = e.detail.pin; |
| 781 chrome.send('authenticateUserWithPin', [this.user.username, pin]); | 781 chrome.send('authenticateUser', [this.user.username, pin]); |
| 782 }, | 782 }, |
| 783 | 783 |
| 784 /** | 784 /** |
| 785 * Handles keypress event (i.e. any textual input) on password input. | 785 * Handles keypress event (i.e. any textual input) on password input. |
| 786 * @param {Event} e Keypress Event object. | 786 * @param {Event} e Keypress Event object. |
| 787 * @private | 787 * @private |
| 788 */ | 788 */ |
| 789 handlePasswordKeyPress_: function(e) { | 789 handlePasswordKeyPress_: function(e) { |
| 790 // When tabbing from the system tray a tab key press is received. Suppress | 790 // When tabbing from the system tray a tab key press is received. Suppress |
| 791 // this so as not to type a tab character into the password field. | 791 // this so as not to type a tab character into the password field. |
| (...skipping 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3360 if (pod && pod.multiProfilesPolicyApplied) { | 3360 if (pod && pod.multiProfilesPolicyApplied) { |
| 3361 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3361 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
| 3362 } | 3362 } |
| 3363 } | 3363 } |
| 3364 }; | 3364 }; |
| 3365 | 3365 |
| 3366 return { | 3366 return { |
| 3367 PodRow: PodRow | 3367 PodRow: PodRow |
| 3368 }; | 3368 }; |
| 3369 }); | 3369 }); |
| OLD | NEW |