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_manager.h" | 8 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
9 #include "chrome/browser/chromeos/login/login_display_host_impl.h" | 9 #include "chrome/browser/chromeos/login/login_display_host_impl.h" |
10 #include "chrome/browser/chromeos/login/screen_locker.h" | 10 #include "chrome/browser/chromeos/login/screen_locker.h" |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 357 |
358 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { | 358 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { |
359 if (delegate_) | 359 if (delegate_) |
360 delegate_->SetDisplayEmail(email); | 360 delegate_->SetDisplayEmail(email); |
361 } | 361 } |
362 | 362 |
363 void WebUILoginDisplay::Signout() { | 363 void WebUILoginDisplay::Signout() { |
364 delegate_->Signout(); | 364 delegate_->Signout(); |
365 } | 365 } |
366 | 366 |
| 367 void WebUILoginDisplay::LoginAsKioskApp(const std::string& app_id) { |
| 368 delegate_->LoginAsKioskApp(app_id); |
| 369 } |
| 370 |
367 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { | 371 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { |
368 if (!password_clear_timer_.IsRunning()) | 372 if (!password_clear_timer_.IsRunning()) |
369 StartPasswordClearTimer(); | 373 StartPasswordClearTimer(); |
370 password_clear_timer_.Reset(); | 374 password_clear_timer_.Reset(); |
371 if (delegate_) | 375 if (delegate_) |
372 delegate_->ResetPublicSessionAutoLoginTimer(); | 376 delegate_->ResetPublicSessionAutoLoginTimer(); |
373 } | 377 } |
374 | 378 |
375 void WebUILoginDisplay::StartPasswordClearTimer() { | 379 void WebUILoginDisplay::StartPasswordClearTimer() { |
376 DCHECK(!password_clear_timer_.IsRunning()); | 380 DCHECK(!password_clear_timer_.IsRunning()); |
377 password_clear_timer_.Start(FROM_HERE, | 381 password_clear_timer_.Start(FROM_HERE, |
378 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, | 382 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, |
379 &WebUILoginDisplay::OnPasswordClearTimerExpired); | 383 &WebUILoginDisplay::OnPasswordClearTimerExpired); |
380 } | 384 } |
381 | 385 |
382 void WebUILoginDisplay::OnPasswordClearTimerExpired() { | 386 void WebUILoginDisplay::OnPasswordClearTimerExpired() { |
383 if (webui_handler_) | 387 if (webui_handler_) |
384 webui_handler_->ClearUserPodPassword(); | 388 webui_handler_->ClearUserPodPassword(); |
385 } | 389 } |
386 | 390 |
387 } // namespace chromeos | 391 } // namespace chromeos |
OLD | NEW |