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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 var UserPodTabOrder = { | 87 var UserPodTabOrder = { |
88 POD_INPUT: 1, // Password input fields (and whole pods themselves). | 88 POD_INPUT: 1, // Password input fields (and whole pods themselves). |
89 POD_CUSTOM_ICON: 2, // Pod custom icon next to passwrod input field. | 89 POD_CUSTOM_ICON: 2, // Pod custom icon next to passwrod input field. |
90 HEADER_BAR: 3, // Buttons on the header bar (Shutdown, Add User). | 90 HEADER_BAR: 3, // Buttons on the header bar (Shutdown, Add User). |
91 ACTION_BOX: 4, // Action box buttons. | 91 ACTION_BOX: 4, // Action box buttons. |
92 PAD_MENU_ITEM: 5 // User pad menu items (Remove this user). | 92 PAD_MENU_ITEM: 5 // User pad menu items (Remove this user). |
93 }; | 93 }; |
94 | 94 |
95 /** | 95 /** |
96 * Supported authentication types. Keep in sync with the enum in | 96 * Supported authentication types. Keep in sync with the enum in |
97 * chrome/browser/signin/screenlock_bridge.h | 97 * chrome/browser/signin/signin_screen_bridge.h |
98 * @enum {number} | 98 * @enum {number} |
99 * @const | 99 * @const |
100 */ | 100 */ |
101 var AUTH_TYPE = { | 101 var AUTH_TYPE = { |
102 OFFLINE_PASSWORD: 0, | 102 OFFLINE_PASSWORD: 0, |
103 ONLINE_SIGN_IN: 1, | 103 ONLINE_SIGN_IN: 1, |
104 NUMERIC_PIN: 2, | 104 NUMERIC_PIN: 2, |
105 USER_CLICK: 3, | 105 USER_CLICK: 3, |
106 EXPAND_THEN_USER_CLICK: 4, | 106 EXPAND_THEN_USER_CLICK: 4, |
107 FORCE_OFFLINE_PASSWORD: 5 | 107 FORCE_OFFLINE_PASSWORD: 5 |
(...skipping 2877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2985 if (pod && pod.multiProfilesPolicyApplied) { | 2985 if (pod && pod.multiProfilesPolicyApplied) { |
2986 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 2986 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
2987 } | 2987 } |
2988 } | 2988 } |
2989 }; | 2989 }; |
2990 | 2990 |
2991 return { | 2991 return { |
2992 PodRow: PodRow | 2992 PodRow: PodRow |
2993 }; | 2993 }; |
2994 }); | 2994 }); |
OLD | NEW |