| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 * @const {Array<{type: !number, class: !string}>} | 121 * @const {Array<{type: !number, class: !string}>} |
| 122 */ | 122 */ |
| 123 var FINGERPRINT_STATES_MAPPING = [ | 123 var FINGERPRINT_STATES_MAPPING = [ |
| 124 {state: FINGERPRINT_STATES.HIDDEN, class: 'hidden'}, | 124 {state: FINGERPRINT_STATES.HIDDEN, class: 'hidden'}, |
| 125 {state: FINGERPRINT_STATES.DEFAULT, class: 'default'}, | 125 {state: FINGERPRINT_STATES.DEFAULT, class: 'default'}, |
| 126 {state: FINGERPRINT_STATES.SIGNIN, class: 'signin'}, | 126 {state: FINGERPRINT_STATES.SIGNIN, class: 'signin'}, |
| 127 {state: FINGERPRINT_STATES.FAILED, class: 'failed'} | 127 {state: FINGERPRINT_STATES.FAILED, class: 'failed'} |
| 128 ]; | 128 ]; |
| 129 | 129 |
| 130 // Supported multi-profile user behavior values. | 130 // Supported multi-profile user behavior values. |
| 131 // Keep in sync with the enum in multi_profile_user_controller.h | 131 // Keep in sync with the enum in login_user_info.mojom |
| 132 var MULTI_PROFILE_USER_BEHAVIOR = { | 132 var MULTI_PROFILE_USER_BEHAVIOR = { |
| 133 UNRESTRICTED: 0, | 133 UNRESTRICTED: 0, |
| 134 PRIMARY_ONLY: 1, | 134 PRIMARY_ONLY: 1, |
| 135 NOT_ALLOWED: 2, | 135 NOT_ALLOWED: 2, |
| 136 OWNER_PRIMARY_ONLY: 3 | 136 OWNER_PRIMARY_ONLY: 3 |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 // Focus and tab order are organized as follows: | 139 // Focus and tab order are organized as follows: |
| 140 // | 140 // |
| 141 // (1) all user pods have tab index 1 so they are traversed first; | 141 // (1) all user pods have tab index 1 so they are traversed first; |
| (...skipping 4460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4602 if (pod && pod.multiProfilesPolicyApplied) { | 4602 if (pod && pod.multiProfilesPolicyApplied) { |
| 4603 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 4603 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
| 4604 } | 4604 } |
| 4605 } | 4605 } |
| 4606 }; | 4606 }; |
| 4607 | 4607 |
| 4608 return { | 4608 return { |
| 4609 PodRow: PodRow | 4609 PodRow: PodRow |
| 4610 }; | 4610 }; |
| 4611 }); | 4611 }); |
| OLD | NEW |