OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 module ash.mojom; | |
6 | |
7 import "components/signin/public/interfaces/account_id.mojom"; | |
8 | |
9 // Allows clients (e.g. Chrome browser) to control the ash lock screen. | |
10 interface LockScreen { | |
11 // Sets the client interface. | |
12 SetClient(LockScreenClient client); | |
13 | |
14 // Requests to show error message in the ash lock screen. | |
15 ShowErrorMessage(); | |
James Cook
2017/05/15 21:15:00
What message?
xiaoyinh(OOO Sep 11-29)
2017/05/16 17:32:50
Updated. Thanks!
| |
16 | |
17 // Requests to close any displayed error messages in ash lock screen. | |
18 ClearErrors(); | |
19 }; | |
20 | |
21 // Allows ash lock screen to control a client (e.g. Chrome browser). Requests | |
22 // often involve preferences or talk to cryptohome that is not available to ash. | |
23 interface LockScreenClient { | |
24 // Request user authentication in chrome. | |
25 // If auth succeeds: | |
26 // chrome will hide the lock screen and clear any displayed error messages. | |
27 // If auth fails: | |
28 // chrome will request lock screen to show error messages. | |
29 AuthenticateUser(signin.mojom.AccountId account_id, | |
30 string hashed_password, | |
31 bool authenticated_by_pin); | |
32 }; | |
OLD | NEW |