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 "chrome/browser/chromeos/accessibility/accessibility_util.h" | 7 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
8 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 8 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
9 #include "chrome/browser/chromeos/input_method/xkeyboard.h" | 9 #include "chrome/browser/chromeos/input_method/xkeyboard.h" |
10 #include "chrome/browser/chromeos/login/wallpaper_manager.h" | 10 #include "chrome/browser/chromeos/login/wallpaper_manager.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void WebUILoginDisplay::Signout() { | 189 void WebUILoginDisplay::Signout() { |
190 delegate_->Signout(); | 190 delegate_->Signout(); |
191 } | 191 } |
192 | 192 |
193 void WebUILoginDisplay::CreateAccount() { | 193 void WebUILoginDisplay::CreateAccount() { |
194 DCHECK(delegate_); | 194 DCHECK(delegate_); |
195 if (delegate_) | 195 if (delegate_) |
196 delegate_->CreateAccount(); | 196 delegate_->CreateAccount(); |
197 } | 197 } |
198 | 198 |
199 void WebUILoginDisplay::OnUserDeselected() { | 199 void WebUILoginDisplay::LoadWallpaper(const std::string& username) { |
200 WallpaperManager::Get()->OnUserDeselected(); | 200 WallpaperManager::Get()->SetUserWallpaper(username); |
201 } | 201 } |
202 | 202 |
203 void WebUILoginDisplay::OnUserSelected(const std::string& username) { | 203 void WebUILoginDisplay::LoadSigninWallpaper() { |
204 WallpaperManager::Get()->OnUserSelected(username); | 204 WallpaperManager::Get()->SetSigninWallpaper(); |
205 } | 205 } |
206 | 206 |
207 void WebUILoginDisplay::RemoveUser(const std::string& username) { | 207 void WebUILoginDisplay::RemoveUser(const std::string& username) { |
208 UserManager::Get()->RemoveUser(username, this); | 208 UserManager::Get()->RemoveUser(username, this); |
209 } | 209 } |
210 | 210 |
211 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { | 211 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { |
212 if (delegate_) | 212 if (delegate_) |
213 delegate_->OnStartEnterpriseEnrollment(); | 213 delegate_->OnStartEnterpriseEnrollment(); |
214 } | 214 } |
(...skipping 30 matching lines...) Expand all Loading... |
245 bool WebUILoginDisplay::IsShowNewUser() const { | 245 bool WebUILoginDisplay::IsShowNewUser() const { |
246 return show_new_user_; | 246 return show_new_user_; |
247 } | 247 } |
248 | 248 |
249 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { | 249 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { |
250 if (delegate_) | 250 if (delegate_) |
251 delegate_->SetDisplayEmail(email); | 251 delegate_->SetDisplayEmail(email); |
252 } | 252 } |
253 | 253 |
254 } // namespace chromeos | 254 } // namespace chromeos |
OLD | NEW |