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 #include "chrome/browser/ui/ash/lock_screen_client.h" | 5 #include "chrome/browser/ui/ash/lock_screen_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/public/interfaces/constants.mojom.h" | 9 #include "ash/public/interfaces/constants.mojom.h" |
10 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 10 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 const AccountId& account_id, | 112 const AccountId& account_id, |
113 ash::mojom::UserPodCustomIconOptionsPtr icon) { | 113 ash::mojom::UserPodCustomIconOptionsPtr icon) { |
114 lock_screen_->ShowUserPodCustomIcon(account_id, std::move(icon)); | 114 lock_screen_->ShowUserPodCustomIcon(account_id, std::move(icon)); |
115 } | 115 } |
116 | 116 |
117 void LockScreenClient::HideUserPodCustomIcon(const AccountId& account_id) { | 117 void LockScreenClient::HideUserPodCustomIcon(const AccountId& account_id) { |
118 lock_screen_->HideUserPodCustomIcon(account_id); | 118 lock_screen_->HideUserPodCustomIcon(account_id); |
119 } | 119 } |
120 | 120 |
121 void LockScreenClient::SetAuthType(const AccountId& account_id, | 121 void LockScreenClient::SetAuthType(const AccountId& account_id, |
122 ash::mojom::AuthType auth_type, | 122 proximity_auth::mojom::AuthType auth_type, |
123 const base::string16& initial_value) { | 123 const base::string16& initial_value) { |
124 lock_screen_->SetAuthType(account_id, auth_type, initial_value); | 124 lock_screen_->SetAuthType(account_id, auth_type, initial_value); |
125 } | 125 } |
126 | 126 |
127 void LockScreenClient::LoadUsers(std::unique_ptr<base::ListValue> users_list, | 127 void LockScreenClient::LoadUsers( |
128 bool show_guest) { | 128 std::vector<ash::mojom::LoginUserInfoPtr> users_list, |
| 129 bool show_guest) { |
129 lock_screen_->LoadUsers(std::move(users_list), show_guest); | 130 lock_screen_->LoadUsers(std::move(users_list), show_guest); |
130 } | 131 } |
131 | 132 |
132 void LockScreenClient::SetPinEnabledForUser(const AccountId& account_id, | 133 void LockScreenClient::SetPinEnabledForUser(const AccountId& account_id, |
133 bool is_enabled) { | 134 bool is_enabled) { |
134 lock_screen_->SetPinEnabledForUser(account_id, is_enabled); | 135 lock_screen_->SetPinEnabledForUser(account_id, is_enabled); |
135 } | 136 } |
136 | 137 |
137 void LockScreenClient::SetDelegate(Delegate* delegate) { | 138 void LockScreenClient::SetDelegate(Delegate* delegate) { |
138 delegate_ = delegate; | 139 delegate_ = delegate; |
139 } | 140 } |
OLD | NEW |