Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: ui/login/account_picker/user_pod_row.js

Issue 2937553002: Create Mojo Struct for user information used in login/lock screen. (Closed)
Patch Set: reuse enum defined in mojom file. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698