OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_FAKE_LOCK_HANDLER_H_ | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_FAKE_LOCK_HANDLER_H_ |
6 #define COMPONENTS_PROXIMITY_AUTH_FAKE_LOCK_HANDLER_H_ | 6 #define COMPONENTS_PROXIMITY_AUTH_FAKE_LOCK_HANDLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/proximity_auth/screenlock_bridge.h" | 9 #include "components/proximity_auth/screenlock_bridge.h" |
10 | 10 |
11 namespace proximity_auth { | 11 namespace proximity_auth { |
12 | 12 |
13 class FakeLockHandler : public ScreenlockBridge::LockHandler { | 13 class FakeLockHandler : public ScreenlockBridge::LockHandler { |
14 public: | 14 public: |
15 FakeLockHandler(); | 15 FakeLockHandler(); |
16 ~FakeLockHandler() override; | 16 ~FakeLockHandler() override; |
17 | 17 |
18 // LockHandler: | 18 // LockHandler: |
19 void ShowBannerMessage(const base::string16& message) override; | 19 void ShowBannerMessage(const base::string16& message) override; |
20 void ShowUserPodCustomIcon( | 20 void ShowUserPodCustomIcon( |
21 const AccountId& account_id, | 21 const AccountId& account_id, |
22 const ScreenlockBridge::UserPodCustomIconOptions& icon) override; | 22 const ScreenlockBridge::UserPodCustomIconOptions& icon) override; |
23 void HideUserPodCustomIcon(const AccountId& account_id) override; | 23 void HideUserPodCustomIcon(const AccountId& account_id) override; |
24 void EnableInput() override; | 24 void EnableInput() override; |
25 void SetAuthType(const AccountId& account_id, | 25 void SetAuthType(const AccountId& account_id, |
26 AuthType auth_type, | 26 mojom::AuthType auth_type, |
27 const base::string16& auth_value) override; | 27 const base::string16& auth_value) override; |
28 AuthType GetAuthType(const AccountId& account_id) const override; | 28 mojom::AuthType GetAuthType(const AccountId& account_id) const override; |
29 ScreenType GetScreenType() const override; | 29 ScreenType GetScreenType() const override; |
30 void Unlock(const AccountId& account_id) override; | 30 void Unlock(const AccountId& account_id) override; |
31 void AttemptEasySignin(const AccountId& account_id, | 31 void AttemptEasySignin(const AccountId& account_id, |
32 const std::string& secret, | 32 const std::string& secret, |
33 const std::string& key_label) override; | 33 const std::string& key_label) override; |
34 | 34 |
35 private: | 35 private: |
36 DISALLOW_COPY_AND_ASSIGN(FakeLockHandler); | 36 DISALLOW_COPY_AND_ASSIGN(FakeLockHandler); |
37 }; | 37 }; |
38 | 38 |
39 } // namespace proximity_auth | 39 } // namespace proximity_auth |
40 | 40 |
41 #endif // COMPONENTS_PROXIMITY_AUTH_FAKE_LOCK_HANDLER_H_ | 41 #endif // COMPONENTS_PROXIMITY_AUTH_FAKE_LOCK_HANDLER_H_ |
OLD | NEW |