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

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: 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
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 OnEnrollScanDone(uint32 scan_result, bool is_complete, int32 percent_complete) ;
Daniel Erat 2017/05/03 20:47:34 this looks like it's wrapping. do we usually limit
xiaoyinh(OOO Sep 11-29) 2017/05/04 00:29:51 I checked other mojom files, seems like they are w
19 19
20 // Called to indicate a bad scan of any kind, or a succesful scan. If scan 20 // 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 21 // is successful, |matches| is a map of user id keys to a vector of
22 // object path values. 22 // object path values.
23 OnAuthScanDone(uint32 scan_result, map<string, array<string>> matches); 23 OnAuthScanDone(uint32 scan_result, map<string, array<string>> matches);
24 24
25 // Called during either mode to indicate a failure. Any EnrollSession record 25 // 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. 26 // that was underway is thrown away and AuthSession will no longer be happenin g.
27 OnSessionFailed(); 27 OnSessionFailed();
28 }; 28 };
(...skipping 29 matching lines...) Expand all
58 // Irreversibly destroys all records registered with this biometric manager. 58 // Irreversibly destroys all records registered with this biometric manager.
59 DestroyAllRecords() => (bool success); 59 DestroyAllRecords() => (bool success);
60 60
61 // Adds fingerprint observers and notifies them when receiving signals. 61 // Adds fingerprint observers and notifies them when receiving signals.
62 AddFingerprintObserver(FingerprintObserver observer); 62 AddFingerprintObserver(FingerprintObserver observer);
63 63
64 // Requests the type of biometric. 64 // Requests the type of biometric.
65 RequestType() => (uint32 type); 65 RequestType() => (uint32 type);
66 }; 66 };
67 67
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698