OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 ~ScreenLocker() override; | 134 ~ScreenLocker() override; |
135 | 135 |
136 // fingerprint::mojom::FingerprintObserver: | 136 // fingerprint::mojom::FingerprintObserver: |
137 void OnAuthScanDone( | 137 void OnAuthScanDone( |
138 uint32_t scan_result, | 138 uint32_t scan_result, |
139 const std::unordered_map<std::string, std::vector<std::string>>& matches) | 139 const std::unordered_map<std::string, std::vector<std::string>>& matches) |
140 override; | 140 override; |
141 void OnSessionFailed() override; | 141 void OnSessionFailed() override; |
142 void OnRestarted() override{}; | 142 void OnRestarted() override{}; |
143 void OnEnrollScanDone(uint32_t scan_result, | 143 void OnEnrollScanDone(uint32_t scan_result, |
144 bool enroll_session_complete) override{}; | 144 bool enroll_session_complete, |
| 145 int percent_complete) override{}; |
145 | 146 |
146 void OnFingerprintAuthFailure(const user_manager::User& user); | 147 void OnFingerprintAuthFailure(const user_manager::User& user); |
147 | 148 |
148 // Sets the authenticator. | 149 // Sets the authenticator. |
149 void SetAuthenticator(Authenticator* authenticator); | 150 void SetAuthenticator(Authenticator* authenticator); |
150 | 151 |
151 // Called when the screen lock is ready. | 152 // Called when the screen lock is ready. |
152 void ScreenLockReady(); | 153 void ScreenLockReady(); |
153 | 154 |
154 // Called when screen locker is safe to delete. | 155 // Called when screen locker is safe to delete. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 mojo::Binding<device::mojom::FingerprintObserver> binding_; | 215 mojo::Binding<device::mojom::FingerprintObserver> binding_; |
215 | 216 |
216 base::WeakPtrFactory<ScreenLocker> weak_factory_; | 217 base::WeakPtrFactory<ScreenLocker> weak_factory_; |
217 | 218 |
218 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); | 219 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); |
219 }; | 220 }; |
220 | 221 |
221 } // namespace chromeos | 222 } // namespace chromeos |
222 | 223 |
223 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ | 224 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ |
OLD | NEW |