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

Unified Diff: ash/public/interfaces/login_user_info.mojom

Issue 2937553002: Create Mojo Struct for user information used in login/lock screen. (Closed)
Patch Set: comments and rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/public/interfaces/lock_screen.mojom ('k') | chrome/browser/chromeos/login/lock/views_screen_locker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/interfaces/login_user_info.mojom
diff --git a/ash/public/interfaces/login_user_info.mojom b/ash/public/interfaces/login_user_info.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..c07b539bd8ff2a220166304e0b142ce1be2a75b1
--- /dev/null
+++ b/ash/public/interfaces/login_user_info.mojom
@@ -0,0 +1,65 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module ash.mojom;
+
+import "ash/public/interfaces/user_info.mojom";
+import "mojo/common/string16.mojom";
+
+// Supported authentication types. Keep in sync with enum in
+// screenlock_bridge.h
+enum AuthType {
James Cook 2017/06/19 18:04:52 We should share this enum between ash and componen
xiaoyinh(OOO Sep 11-29) 2017/06/20 17:21:54 I've moved this enum to auth_type.mojom. Could you
+ OFFLINE_PASSWORD,
+ ONLINE_SIGN_IN,
+ NUMERIC_PIN,
+ USER_CLICK,
+ EXPAND_THEN_USER_CLICK,
+ FORCE_OFFLINE_PASSWORD,
James Cook 2017/06/19 18:04:52 These all need to be documented.
xiaoyinh(OOO Sep 11-29) 2017/06/20 17:21:54 Done.
+};
+
+// Supported multi-profile user behavior values.
+// Keep in sync with the enum in md_user_pod_row.js and user_pod_row.js
+enum MultiProfileUserBehavior {
+ UNRESTRICTED = 0,
+ PRIMARY_ONLY = 1,
+ NOT_ALLOWED = 2,
+ OWNER_PRIMARY_ONLY = 3,
+};
+
+// Information about the custom icon in the user pod.
+struct UserPodCustomIconOptions {
+ string id;
+ mojo.common.mojom.String16 tooltip;
+ bool autoshow_tooltip;
+ mojo.common.mojom.String16 aria_label;
+ bool hardlock_on_click;
+ bool is_trial_run;
+};
+
+// Info about a user in login/lock screen.
+struct LoginUserInfo {
+ // User's basic information including account id, email, avatar etc.
+ UserInfo basic_user_info;
+
+ // What method the user can use to sign in.
+ AuthType auth_type;
+
+ // True if this user has already signed in.
+ bool is_signed_in;
+
+ // True if this user is the device owner.
+ bool is_device_owner;
+
+ // True if fingerprint unlock is allowed for this user.
+ bool allow_fingerprint_unlock;
+
+ // True if multi-profiles sign in is allowed for this user.
+ bool is_multiprofile_allowed;
+
+ // Enforced policy for multi-profiles sign in.
+ MultiProfileUserBehavior multiprofile_policy;
+
+ // True if this user can be removed.
+ bool can_remove;
+};
« no previous file with comments | « ash/public/interfaces/lock_screen.mojom ('k') | chrome/browser/chromeos/login/lock/views_screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698