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 "ash/shell.h" | 7 #include "ash/shell.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/lock/screen_locker.h" | 9 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
10 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" | 10 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 if (delegate_) | 240 if (delegate_) |
241 delegate_->CreateAccount(); | 241 delegate_->CreateAccount(); |
242 } | 242 } |
243 | 243 |
244 void WebUILoginDisplay::CompleteLogin(const UserContext& user_context) { | 244 void WebUILoginDisplay::CompleteLogin(const UserContext& user_context) { |
245 DCHECK(delegate_); | 245 DCHECK(delegate_); |
246 if (delegate_) | 246 if (delegate_) |
247 delegate_->CompleteLogin(user_context); | 247 delegate_->CompleteLogin(user_context); |
248 } | 248 } |
249 | 249 |
250 void WebUILoginDisplay::Login(const UserContext& user_context) { | 250 void WebUILoginDisplay::Login(const UserContext& user_context, |
| 251 const SigninSpecifics& specifics) { |
251 DCHECK(delegate_); | 252 DCHECK(delegate_); |
252 if (delegate_) | 253 if (delegate_) |
253 delegate_->Login(user_context); | 254 delegate_->Login(user_context, specifics); |
254 } | |
255 | |
256 void WebUILoginDisplay::LoginAsRetailModeUser() { | |
257 DCHECK(delegate_); | |
258 if (delegate_) | |
259 delegate_->LoginAsRetailModeUser(); | |
260 } | |
261 | |
262 void WebUILoginDisplay::LoginAsGuest() { | |
263 DCHECK(delegate_); | |
264 if (delegate_) | |
265 delegate_->LoginAsGuest(); | |
266 } | |
267 | |
268 void WebUILoginDisplay::LoginAsPublicAccount(const std::string& username) { | |
269 DCHECK(delegate_); | |
270 if (delegate_) | |
271 delegate_->LoginAsPublicAccount(username); | |
272 } | 255 } |
273 | 256 |
274 void WebUILoginDisplay::MigrateUserData(const std::string& old_password) { | 257 void WebUILoginDisplay::MigrateUserData(const std::string& old_password) { |
275 DCHECK(delegate_); | 258 DCHECK(delegate_); |
276 if (delegate_) | 259 if (delegate_) |
277 delegate_->MigrateUserData(old_password); | 260 delegate_->MigrateUserData(old_password); |
278 } | 261 } |
279 | 262 |
280 void WebUILoginDisplay::LoadWallpaper(const std::string& username) { | 263 void WebUILoginDisplay::LoadWallpaper(const std::string& username) { |
281 WallpaperManager::Get()->SetUserWallpaperDelayed(username); | 264 WallpaperManager::Get()->SetUserWallpaperDelayed(username); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 335 |
353 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { | 336 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { |
354 if (delegate_) | 337 if (delegate_) |
355 delegate_->SetDisplayEmail(email); | 338 delegate_->SetDisplayEmail(email); |
356 } | 339 } |
357 | 340 |
358 void WebUILoginDisplay::Signout() { | 341 void WebUILoginDisplay::Signout() { |
359 delegate_->Signout(); | 342 delegate_->Signout(); |
360 } | 343 } |
361 | 344 |
362 void WebUILoginDisplay::LoginAsKioskApp(const std::string& app_id, | |
363 bool diagnostic_mode) { | |
364 delegate_->LoginAsKioskApp(app_id, diagnostic_mode); | |
365 } | |
366 | |
367 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { | 345 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { |
368 if (delegate_) | 346 if (delegate_) |
369 delegate_->ResetPublicSessionAutoLoginTimer(); | 347 delegate_->ResetPublicSessionAutoLoginTimer(); |
370 } | 348 } |
371 | 349 |
372 | 350 |
373 } // namespace chromeos | 351 } // namespace chromeos |
OLD | NEW |