OLD | NEW |
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 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_FINGERPRINT_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_FINGERPRINT_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_FINGERPRINT_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_FINGERPRINT_HANDLER_H_ |
7 | 7 |
8 #include <unordered_map> | 8 #include <unordered_map> |
9 | 9 |
10 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 10 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 void OnJavascriptAllowed() override; | 34 void OnJavascriptAllowed() override; |
35 void OnJavascriptDisallowed() override; | 35 void OnJavascriptDisallowed() override; |
36 | 36 |
37 private: | 37 private: |
38 using AttemptMatches = | 38 using AttemptMatches = |
39 std::unordered_map<std::string, std::vector<std::string>>; | 39 std::unordered_map<std::string, std::vector<std::string>>; |
40 | 40 |
41 // device::mojom::FingerprintObserver: | 41 // device::mojom::FingerprintObserver: |
42 void OnRestarted() override; | 42 void OnRestarted() override; |
43 void OnEnrollScanDone(uint32_t scan_result, | 43 void OnEnrollScanDone(uint32_t scan_result, |
44 bool enroll_session_complete) override; | 44 bool enroll_session_complete, |
| 45 int32_t percent_complete) override; |
45 void OnAuthScanDone(uint32_t scan_result, | 46 void OnAuthScanDone(uint32_t scan_result, |
46 const AttemptMatches& matches) override; | 47 const AttemptMatches& matches) override; |
47 void OnSessionFailed() override; | 48 void OnSessionFailed() override; |
48 | 49 |
49 // session_manager::SessionManagerObserver: | 50 // session_manager::SessionManagerObserver: |
50 void OnSessionStateChanged() override; | 51 void OnSessionStateChanged() override; |
51 | 52 |
52 void HandleGetFingerprintsList(const base::ListValue* args); | 53 void HandleGetFingerprintsList(const base::ListValue* args); |
53 void HandleGetNumFingerprints(const base::ListValue* args); | 54 void HandleGetNumFingerprints(const base::ListValue* args); |
54 void HandleStartEnroll(const base::ListValue* args); | 55 void HandleStartEnroll(const base::ListValue* args); |
(...skipping 25 matching lines...) Expand all Loading... |
80 | 81 |
81 base::WeakPtrFactory<FingerprintHandler> weak_ptr_factory_; | 82 base::WeakPtrFactory<FingerprintHandler> weak_ptr_factory_; |
82 | 83 |
83 DISALLOW_COPY_AND_ASSIGN(FingerprintHandler); | 84 DISALLOW_COPY_AND_ASSIGN(FingerprintHandler); |
84 }; | 85 }; |
85 | 86 |
86 } // namespace settings | 87 } // namespace settings |
87 } // namespace chromeos | 88 } // namespace chromeos |
88 | 89 |
89 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_FINGERPRINT_HANDLER_H_ | 90 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_FINGERPRINT_HANDLER_H_ |
OLD | NEW |