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

Side by Side Diff: ui/login/account_picker/md_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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698