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

Side by Side Diff: services/device/public/interfaces/fingerprint.mojom

Issue 2858003002: Roll src/third_party/cros_system_api/ c6eab9e4d..6139ae009 + API change (Closed)
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « services/device/fingerprint/fingerprint_chromeos_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 module device.mojom; 5 module device.mojom;
6 6
7 // This interface is ChromeOS-specific. If it is ever desired 7 // This interface is ChromeOS-specific. If it is ever desired
8 // to support a more general fingerprint service across more 8 // to support a more general fingerprint service across more
9 // platforms, the interface would need to be generalized. 9 // platforms, the interface would need to be generalized.
10 // Interface for obeserving fingerprint daemon signals. 10 // Interface for obeserving fingerprint daemon signals.
11 interface FingerprintObserver{ 11 interface FingerprintObserver{
12 // Called when biometics device powers up or is restarted. 12 // Called when biometics device powers up or is restarted.
13 OnRestarted(); 13 OnRestarted();
14 14
15 // Called whenever a user attempts a scan. |scan_result| tells whether the 15 // Called whenever a user attempts a scan. |scan_result| tells whether the
16 // scan was succesful. |is_complete| tells whether record is complete 16 // scan was succesful. |is_complete| tells whether record is complete
17 // and now over. 17 // and now over.
18 OnEnrollScanDone(uint32 scan_result, bool is_complete); 18 // |percent_complete| within [0, 100] represents the percent of enrollment
19 // completion and -1 means unknown percentage.
20 OnEnrollScanDone(uint32 scan_result,
21 bool is_complete,
22 int32 percent_complete);
19 23
20 // Called to indicate a bad scan of any kind, or a succesful scan. If scan 24 // Called to indicate a bad scan of any kind, or a succesful scan. If scan
21 // is successful, |matches| is a map of user id keys to a vector of 25 // is successful, |matches| is a map of user id keys to a vector of
22 // object path values. 26 // object path values.
23 OnAuthScanDone(uint32 scan_result, map<string, array<string>> matches); 27 OnAuthScanDone(uint32 scan_result, map<string, array<string>> matches);
24 28
25 // Called during either mode to indicate a failure. Any EnrollSession record 29 // Called during either mode to indicate a failure. Any EnrollSession record
26 // that was underway is thrown away and AuthSession will no longer be happenin g. 30 // that was underway is thrown away and AuthSession will no longer be
31 // happening.
27 OnSessionFailed(); 32 OnSessionFailed();
28 }; 33 };
29 34
30 // Interface for communicating with fingerprint deamon through dbus. 35 // Interface for communicating with fingerprint deamon through dbus.
31 interface Fingerprint { 36 interface Fingerprint {
32 // Gets all the records of this user registered with this biometric manager. 37 // Gets all the records of this user registered with this biometric manager.
33 // |records| is a map of record path keys to record label values. 38 // |records| is a map of record path keys to record label values.
34 GetRecordsForUser(string user_id) => (map<string, string> records); 39 GetRecordsForUser(string user_id) => (map<string, string> records);
35 40
36 // Starts the biometric enroll session. 41 // Starts the biometric enroll session.
(...skipping 21 matching lines...) Expand all
58 // Irreversibly destroys all records registered with this biometric manager. 63 // Irreversibly destroys all records registered with this biometric manager.
59 DestroyAllRecords() => (bool success); 64 DestroyAllRecords() => (bool success);
60 65
61 // Adds fingerprint observers and notifies them when receiving signals. 66 // Adds fingerprint observers and notifies them when receiving signals.
62 AddFingerprintObserver(FingerprintObserver observer); 67 AddFingerprintObserver(FingerprintObserver observer);
63 68
64 // Requests the type of biometric. 69 // Requests the type of biometric.
65 RequestType() => (uint32 type); 70 RequestType() => (uint32 type);
66 }; 71 };
67 72
OLDNEW
« no previous file with comments | « services/device/fingerprint/fingerprint_chromeos_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698