| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 * @const | 82 * @const |
| 83 */ | 83 */ |
| 84 var HELP_TOPIC_PUBLIC_SESSION = 3041033; | 84 var HELP_TOPIC_PUBLIC_SESSION = 3041033; |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * Tab order for user pods. Update these when adding new controls. | 87 * Tab order for user pods. Update these when adding new controls. |
| 88 * @enum {number} | 88 * @enum {number} |
| 89 * @const | 89 * @const |
| 90 */ | 90 */ |
| 91 var UserPodTabOrder = { | 91 var UserPodTabOrder = { |
| 92 POD_INPUT: 1, // Password input field, Action box menu button, submit | 92 POD_INPUT: 1, // Password input field, Action box menu button and |
| 93 // button next to password input field and the pod | 93 // the pod itself. |
| 94 // itself. | |
| 95 PIN_KEYBOARD: 2, // Pin keyboard below the password input field. | 94 PIN_KEYBOARD: 2, // Pin keyboard below the password input field. |
| 96 POD_CUSTOM_ICON: 3, // Pod custom icon next to password input field. | 95 POD_CUSTOM_ICON: 3, // Pod custom icon next to password input field. |
| 97 HEADER_BAR: 4, // Buttons on the header bar (Shutdown, Add User). | 96 HEADER_BAR: 4, // Buttons on the header bar (Shutdown, Add User). |
| 98 POD_MENU_ITEM: 5 // User pad menu items (User info, Remove user). | 97 POD_MENU_ITEM: 5 // User pad menu items (User info, Remove user). |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 /** | 100 /** |
| 102 * Supported authentication types. Keep in sync with the enum in | 101 * Supported authentication types. Keep in sync with the enum in |
| 103 * chrome/browser/signin/screenlock_bridge.h | 102 * chrome/browser/signin/screenlock_bridge.h |
| 104 * @enum {number} | 103 * @enum {number} |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 this.passwordElement.addEventListener('keypress', | 811 this.passwordElement.addEventListener('keypress', |
| 813 this.handlePasswordKeyPress_.bind(this)); | 812 this.handlePasswordKeyPress_.bind(this)); |
| 814 this.passwordElement.addEventListener('input', | 813 this.passwordElement.addEventListener('input', |
| 815 this.handleInputChanged_.bind(this)); | 814 this.handleInputChanged_.bind(this)); |
| 816 this.passwordElement.addEventListener('mouseup', | 815 this.passwordElement.addEventListener('mouseup', |
| 817 this.handleInputMouseUp_.bind(this)); | 816 this.handleInputMouseUp_.bind(this)); |
| 818 | 817 |
| 819 if (this.submitButton) { | 818 if (this.submitButton) { |
| 820 this.submitButton.addEventListener('click', | 819 this.submitButton.addEventListener('click', |
| 821 this.handleSubmitButtonClick_.bind(this)); | 820 this.handleSubmitButtonClick_.bind(this)); |
| 822 this.submitButton.tabIndex = UserPodTabOrder.POD_INPUT; | |
| 823 } | 821 } |
| 824 | 822 |
| 825 this.imageElement.addEventListener('load', | 823 this.imageElement.addEventListener('load', |
| 826 this.parentNode.handlePodImageLoad.bind(this.parentNode, this)); | 824 this.parentNode.handlePodImageLoad.bind(this.parentNode, this)); |
| 827 | 825 |
| 828 var initialAuthType = this.user.initialAuthType || | 826 var initialAuthType = this.user.initialAuthType || |
| 829 AUTH_TYPE.OFFLINE_PASSWORD; | 827 AUTH_TYPE.OFFLINE_PASSWORD; |
| 830 this.setAuthType(initialAuthType, null); | 828 this.setAuthType(initialAuthType, null); |
| 831 | 829 |
| 832 if (this.user.isActiveDirectory) | 830 if (this.user.isActiveDirectory) |
| (...skipping 3144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3977 if (pod && pod.multiProfilesPolicyApplied) { | 3975 if (pod && pod.multiProfilesPolicyApplied) { |
| 3978 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3976 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
| 3979 } | 3977 } |
| 3980 } | 3978 } |
| 3981 }; | 3979 }; |
| 3982 | 3980 |
| 3983 return { | 3981 return { |
| 3984 PodRow: PodRow | 3982 PodRow: PodRow |
| 3985 }; | 3983 }; |
| 3986 }); | 3984 }); |
| OLD | NEW |