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

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

Issue 2876673002: mojo api for view based lockscreen (Closed)
Patch Set: Created 3 years, 7 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
Index: ash/public/interfaces/lock_screen.mojom
diff --git a/ash/public/interfaces/lock_screen.mojom b/ash/public/interfaces/lock_screen.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..e5256d5bd704b9da2fc1257076cd09fde76ffdab
--- /dev/null
+++ b/ash/public/interfaces/lock_screen.mojom
@@ -0,0 +1,23 @@
+// 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 "components/signin/public/interfaces/account_id.mojom";
+
+// Allows clients (e.g. Chrome browser) to control the ash lock screen.
+interface LockScreen {
+ // Sets the client interface.
+ SetClient(LockScreenClient client);
+
+ // Shows error message in the ash lock screen.
+ ShowErrorMessage();
+};
+
+// Allows ash lock screen to control a client (e.g. Chrome browser). Requests
+// often involve preferences or talk to cryptohome that is not available to ash.
+interface LockScreenClient {
+ // Request user authentication in chrome.
+ AuthenticateUser(signin.mojom.AccountId account_id, string password, bool authenticated_by_pin);
+};

Powered by Google App Engine
This is Rietveld 408576698