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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 } | 271 } |
272 | 272 |
273 void WebUILoginDisplay::LoadWallpaper(const std::string& username) { | 273 void WebUILoginDisplay::LoadWallpaper(const std::string& username) { |
274 WallpaperManager::Get()->SetUserWallpaper(username); | 274 WallpaperManager::Get()->SetUserWallpaper(username); |
275 } | 275 } |
276 | 276 |
277 void WebUILoginDisplay::LoadSigninWallpaper() { | 277 void WebUILoginDisplay::LoadSigninWallpaper() { |
278 WallpaperManager::Get()->SetDefaultWallpaper(); | 278 WallpaperManager::Get()->SetDefaultWallpaper(); |
279 } | 279 } |
280 | 280 |
| 281 void WebUILoginDisplay::OnSigninScreenReady() { |
| 282 if (delegate_) |
| 283 delegate_->OnSigninScreenReady(); |
| 284 } |
| 285 |
281 void WebUILoginDisplay::RemoveUser(const std::string& username) { | 286 void WebUILoginDisplay::RemoveUser(const std::string& username) { |
282 UserManager::Get()->RemoveUser(username, this); | 287 UserManager::Get()->RemoveUser(username, this); |
283 } | 288 } |
284 | 289 |
285 void WebUILoginDisplay::ResyncUserData() { | 290 void WebUILoginDisplay::ResyncUserData() { |
286 DCHECK(delegate_); | 291 DCHECK(delegate_); |
287 if (delegate_) | 292 if (delegate_) |
288 delegate_->ResyncUserData(); | 293 delegate_->ResyncUserData(); |
289 } | 294 } |
290 | 295 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 } | 342 } |
338 | 343 |
339 void WebUILoginDisplay::Signout() { | 344 void WebUILoginDisplay::Signout() { |
340 delegate_->Signout(); | 345 delegate_->Signout(); |
341 } | 346 } |
342 | 347 |
343 void WebUILoginDisplay::OnUserActivity() { | 348 void WebUILoginDisplay::OnUserActivity() { |
344 if (!password_clear_timer_.IsRunning()) | 349 if (!password_clear_timer_.IsRunning()) |
345 StartPasswordClearTimer(); | 350 StartPasswordClearTimer(); |
346 password_clear_timer_.Reset(); | 351 password_clear_timer_.Reset(); |
| 352 if (delegate_) |
| 353 delegate_->ResetPublicSessionAutoLoginTimer(); |
347 } | 354 } |
348 | 355 |
349 void WebUILoginDisplay::StartPasswordClearTimer() { | 356 void WebUILoginDisplay::StartPasswordClearTimer() { |
350 DCHECK(!password_clear_timer_.IsRunning()); | 357 DCHECK(!password_clear_timer_.IsRunning()); |
351 password_clear_timer_.Start(FROM_HERE, | 358 password_clear_timer_.Start(FROM_HERE, |
352 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, | 359 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, |
353 &WebUILoginDisplay::OnPasswordClearTimerExpired); | 360 &WebUILoginDisplay::OnPasswordClearTimerExpired); |
354 } | 361 } |
355 | 362 |
356 void WebUILoginDisplay::OnPasswordClearTimerExpired() { | 363 void WebUILoginDisplay::OnPasswordClearTimerExpired() { |
357 if (webui_handler_) | 364 if (webui_handler_) |
358 webui_handler_->ClearUserPodPassword(); | 365 webui_handler_->ClearUserPodPassword(); |
359 } | 366 } |
360 | 367 |
361 } // namespace chromeos | 368 } // namespace chromeos |
OLD | NEW |