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_ASH_LOCK_SCREEN_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_ |
6 #define CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_ |
7 | 7 |
8 #include "ash/public/interfaces/lock_screen.mojom.h" | 8 #include "ash/public/interfaces/lock_screen.mojom.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "mojo/public/cpp/bindings/binding.h" | 10 #include "mojo/public/cpp/bindings/binding.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void ShowLockScreen(ash::mojom::LockScreen::ShowLockScreenCallback on_shown); | 59 void ShowLockScreen(ash::mojom::LockScreen::ShowLockScreenCallback on_shown); |
60 void ShowErrorMessage(int32_t login_attempts, | 60 void ShowErrorMessage(int32_t login_attempts, |
61 const std::string& error_text, | 61 const std::string& error_text, |
62 const std::string& help_link_text, | 62 const std::string& help_link_text, |
63 int32_t help_topic_id); | 63 int32_t help_topic_id); |
64 void ClearErrors(); | 64 void ClearErrors(); |
65 void ShowUserPodCustomIcon(const AccountId& account_id, | 65 void ShowUserPodCustomIcon(const AccountId& account_id, |
66 ash::mojom::UserPodCustomIconOptionsPtr icon); | 66 ash::mojom::UserPodCustomIconOptionsPtr icon); |
67 void HideUserPodCustomIcon(const AccountId& account_id); | 67 void HideUserPodCustomIcon(const AccountId& account_id); |
68 void SetAuthType(const AccountId& account_id, | 68 void SetAuthType(const AccountId& account_id, |
69 ash::mojom::AuthType auth_type, | 69 proximity_auth::mojom::AuthType auth_type, |
70 const base::string16& initial_value); | 70 const base::string16& initial_value); |
71 void LoadUsers(std::unique_ptr<base::ListValue> users_list, bool show_guest); | 71 void LoadUsers(std::vector<ash::mojom::LoginUserInfoPtr> users_list, |
| 72 bool show_guest); |
72 void SetPinEnabledForUser(const AccountId& account_id, bool is_enabled); | 73 void SetPinEnabledForUser(const AccountId& account_id, bool is_enabled); |
73 | 74 |
74 void SetDelegate(Delegate* delegate); | 75 void SetDelegate(Delegate* delegate); |
75 | 76 |
76 private: | 77 private: |
77 // Lock screen mojo service in ash. | 78 // Lock screen mojo service in ash. |
78 ash::mojom::LockScreenPtr lock_screen_; | 79 ash::mojom::LockScreenPtr lock_screen_; |
79 | 80 |
80 // Binds this object to the client interface. | 81 // Binds this object to the client interface. |
81 mojo::Binding<ash::mojom::LockScreenClient> binding_; | 82 mojo::Binding<ash::mojom::LockScreenClient> binding_; |
82 Delegate* delegate_ = nullptr; | 83 Delegate* delegate_ = nullptr; |
83 | 84 |
84 DISALLOW_COPY_AND_ASSIGN(LockScreenClient); | 85 DISALLOW_COPY_AND_ASSIGN(LockScreenClient); |
85 }; | 86 }; |
86 | 87 |
87 #endif // CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_ | 88 #endif // CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_ |
OLD | NEW |