| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const std::string& error_text, | 46 const std::string& error_text, |
| 47 const std::string& help_link_text, | 47 const std::string& help_link_text, |
| 48 int32_t help_topic_id); | 48 int32_t help_topic_id); |
| 49 void ClearErrors(); | 49 void ClearErrors(); |
| 50 void ShowUserPodCustomIcon(const AccountId& account_id, | 50 void ShowUserPodCustomIcon(const AccountId& account_id, |
| 51 ash::mojom::UserPodCustomIconOptionsPtr icon); | 51 ash::mojom::UserPodCustomIconOptionsPtr icon); |
| 52 void HideUserPodCustomIcon(const AccountId& account_id); | 52 void HideUserPodCustomIcon(const AccountId& account_id); |
| 53 void SetAuthType(const AccountId& account_id, | 53 void SetAuthType(const AccountId& account_id, |
| 54 ash::mojom::AuthType auth_type, | 54 ash::mojom::AuthType auth_type, |
| 55 const base::string16& initial_value); | 55 const base::string16& initial_value); |
| 56 void LoadUsers(std::unique_ptr<base::ListValue> users_list, bool show_guest); | 56 void LoadUsers(std::vector<ash::mojom::LoginUserInfoPtr> users_list, |
| 57 bool show_guest); |
| 57 | 58 |
| 58 void SetDelegate(Delegate* delegate); | 59 void SetDelegate(Delegate* delegate); |
| 59 | 60 |
| 60 private: | 61 private: |
| 61 // Lock screen mojo service in ash. | 62 // Lock screen mojo service in ash. |
| 62 ash::mojom::LockScreenPtr lock_screen_; | 63 ash::mojom::LockScreenPtr lock_screen_; |
| 63 | 64 |
| 64 // Binds this object to the client interface. | 65 // Binds this object to the client interface. |
| 65 mojo::Binding<ash::mojom::LockScreenClient> binding_; | 66 mojo::Binding<ash::mojom::LockScreenClient> binding_; |
| 66 Delegate* delegate_ = nullptr; | 67 Delegate* delegate_ = nullptr; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(LockScreenClient); | 69 DISALLOW_COPY_AND_ASSIGN(LockScreenClient); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 #endif // CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_ | 72 #endif // CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_ |
| OLD | NEW |