| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/login/ui/webui_login_display.h" | 5 #include "chrome/browser/chromeos/login/ui/webui_login_display.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 7 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 8 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 8 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
| 9 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h" | 9 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h" |
| 10 #include "chrome/browser/chromeos/login/signin_screen_controller.h" | 10 #include "chrome/browser/chromeos/login/signin_screen_controller.h" |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 bool WebUILoginDisplay::IsUserSigninCompleted() const { | 321 bool WebUILoginDisplay::IsUserSigninCompleted() const { |
| 322 return is_signin_completed(); | 322 return is_signin_completed(); |
| 323 } | 323 } |
| 324 | 324 |
| 325 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { | 325 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { |
| 326 if (delegate_) | 326 if (delegate_) |
| 327 delegate_->SetDisplayEmail(email); | 327 delegate_->SetDisplayEmail(email); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void WebUILoginDisplay::SetDisplayName(const std::string& display_name) { |
| 331 if (delegate_) |
| 332 delegate_->SetDisplayName(display_name); |
| 333 } |
| 334 |
| 335 void WebUILoginDisplay::SetGivenName(const std::string& given_name) { |
| 336 if (delegate_) |
| 337 delegate_->SetGivenName(given_name); |
| 338 } |
| 339 |
| 330 void WebUILoginDisplay::Signout() { | 340 void WebUILoginDisplay::Signout() { |
| 331 delegate_->Signout(); | 341 delegate_->Signout(); |
| 332 } | 342 } |
| 333 | 343 |
| 334 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { | 344 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { |
| 335 if (delegate_) | 345 if (delegate_) |
| 336 delegate_->ResetAutoLoginTimer(); | 346 delegate_->ResetAutoLoginTimer(); |
| 337 } | 347 } |
| 338 | 348 |
| 339 bool WebUILoginDisplay::IsUserWhitelisted(const AccountId& account_id) { | 349 bool WebUILoginDisplay::IsUserWhitelisted(const AccountId& account_id) { |
| 340 DCHECK(delegate_); | 350 DCHECK(delegate_); |
| 341 if (delegate_) | 351 if (delegate_) |
| 342 return delegate_->IsUserWhitelisted(account_id); | 352 return delegate_->IsUserWhitelisted(account_id); |
| 343 return true; | 353 return true; |
| 344 } | 354 } |
| 345 | 355 |
| 346 } // namespace chromeos | 356 } // namespace chromeos |
| OLD | NEW |