| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/webui_login_display.h" | 5 #include "chrome/browser/chromeos/login/webui_login_display.h" |
| 6 | 6 |
| 7 #include "ash/wm/user_activity_detector.h" | 7 #include "ash/wm/user_activity_detector.h" |
| 8 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 8 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
| 9 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" | 9 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" |
| 10 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 10 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 webui_handler_ = webui_handler; | 304 webui_handler_ = webui_handler; |
| 305 } | 305 } |
| 306 | 306 |
| 307 void WebUILoginDisplay::ShowSigninScreenForCreds( | 307 void WebUILoginDisplay::ShowSigninScreenForCreds( |
| 308 const std::string& username, | 308 const std::string& username, |
| 309 const std::string& password) { | 309 const std::string& password) { |
| 310 if (webui_handler_) | 310 if (webui_handler_) |
| 311 webui_handler_->ShowSigninScreenForCreds(username, password); | 311 webui_handler_->ShowSigninScreenForCreds(username, password); |
| 312 } | 312 } |
| 313 | 313 |
| 314 void WebUILoginDisplay::SetGaiaOriginForTesting(const std::string& arg) { |
| 315 if (webui_handler_) |
| 316 webui_handler_->SetGaiaOriginForTesting(arg); |
| 317 } |
| 318 |
| 314 const UserList& WebUILoginDisplay::GetUsers() const { | 319 const UserList& WebUILoginDisplay::GetUsers() const { |
| 315 return users_; | 320 return users_; |
| 316 } | 321 } |
| 317 | 322 |
| 318 bool WebUILoginDisplay::IsShowGuest() const { | 323 bool WebUILoginDisplay::IsShowGuest() const { |
| 319 return show_guest_; | 324 return show_guest_; |
| 320 } | 325 } |
| 321 | 326 |
| 322 bool WebUILoginDisplay::IsShowUsers() const { | 327 bool WebUILoginDisplay::IsShowUsers() const { |
| 323 return show_users_; | 328 return show_users_; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 350 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, | 355 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, |
| 351 &WebUILoginDisplay::OnPasswordClearTimerExpired); | 356 &WebUILoginDisplay::OnPasswordClearTimerExpired); |
| 352 } | 357 } |
| 353 | 358 |
| 354 void WebUILoginDisplay::OnPasswordClearTimerExpired() { | 359 void WebUILoginDisplay::OnPasswordClearTimerExpired() { |
| 355 if (webui_handler_) | 360 if (webui_handler_) |
| 356 webui_handler_->ClearUserPodPassword(); | 361 webui_handler_->ClearUserPodPassword(); |
| 357 } | 362 } |
| 358 | 363 |
| 359 } // namespace chromeos | 364 } // namespace chromeos |
| OLD | NEW |