| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 * @const {Array<{type: !number, class: !string}>} | 144 * @const {Array<{type: !number, class: !string}>} |
| 145 */ | 145 */ |
| 146 var FINGERPRINT_STATES_MAPPING = [ | 146 var FINGERPRINT_STATES_MAPPING = [ |
| 147 {state: FINGERPRINT_STATES.HIDDEN, class: 'hidden'}, | 147 {state: FINGERPRINT_STATES.HIDDEN, class: 'hidden'}, |
| 148 {state: FINGERPRINT_STATES.DEFAULT, class: 'default'}, | 148 {state: FINGERPRINT_STATES.DEFAULT, class: 'default'}, |
| 149 {state: FINGERPRINT_STATES.SIGNIN, class: 'signin'}, | 149 {state: FINGERPRINT_STATES.SIGNIN, class: 'signin'}, |
| 150 {state: FINGERPRINT_STATES.FAILED, class: 'failed'} | 150 {state: FINGERPRINT_STATES.FAILED, class: 'failed'} |
| 151 ]; | 151 ]; |
| 152 | 152 |
| 153 // Supported multi-profile user behavior values. | 153 // Supported multi-profile user behavior values. |
| 154 // Keep in sync with the enum in multi_profile_user_controller.h | 154 // Keep in sync with the enum in login_user_info.mojom |
| 155 var MULTI_PROFILE_USER_BEHAVIOR = { | 155 var MULTI_PROFILE_USER_BEHAVIOR = { |
| 156 UNRESTRICTED: 0, | 156 UNRESTRICTED: 0, |
| 157 PRIMARY_ONLY: 1, | 157 PRIMARY_ONLY: 1, |
| 158 NOT_ALLOWED: 2, | 158 NOT_ALLOWED: 2, |
| 159 OWNER_PRIMARY_ONLY: 3 | 159 OWNER_PRIMARY_ONLY: 3 |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 // Focus and tab order are organized as follows: | 162 // Focus and tab order are organized as follows: |
| 163 // | 163 // |
| 164 // (1) all user pods have tab index 1 so they are traversed first; | 164 // (1) all user pods have tab index 1 so they are traversed first; |
| (...skipping 3822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3987 if (pod && pod.multiProfilesPolicyApplied) { | 3987 if (pod && pod.multiProfilesPolicyApplied) { |
| 3988 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3988 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
| 3989 } | 3989 } |
| 3990 } | 3990 } |
| 3991 }; | 3991 }; |
| 3992 | 3992 |
| 3993 return { | 3993 return { |
| 3994 PodRow: PodRow | 3994 PodRow: PodRow |
| 3995 }; | 3995 }; |
| 3996 }); | 3996 }); |
| OLD | NEW |