| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void WebUILoginDisplay::Signout() { | 188 void WebUILoginDisplay::Signout() { |
| 189 delegate_->Signout(); | 189 delegate_->Signout(); |
| 190 } | 190 } |
| 191 | 191 |
| 192 void WebUILoginDisplay::CreateAccount() { | 192 void WebUILoginDisplay::CreateAccount() { |
| 193 DCHECK(delegate_); | 193 DCHECK(delegate_); |
| 194 if (delegate_) | 194 if (delegate_) |
| 195 delegate_->CreateAccount(); | 195 delegate_->CreateAccount(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 void WebUILoginDisplay::UserDeselected() { | 198 void WebUILoginDisplay::OnUserDeselected() { |
| 199 WallpaperManager::Get()->UserDeselected(); | 199 WallpaperManager::Get()->OnUserDeselected(); |
| 200 } | 200 } |
| 201 | 201 |
| 202 void WebUILoginDisplay::UserSelected(const std::string& username) { | 202 void WebUILoginDisplay::OnUserSelected(const std::string& username) { |
| 203 UserManager::Get()->UserSelected(username); | 203 WallpaperManager::Get()->OnUserSelected(username); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void WebUILoginDisplay::RemoveUser(const std::string& username) { | 206 void WebUILoginDisplay::RemoveUser(const std::string& username) { |
| 207 UserManager::Get()->RemoveUser(username, this); | 207 UserManager::Get()->RemoveUser(username, this); |
| 208 } | 208 } |
| 209 | 209 |
| 210 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { | 210 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { |
| 211 if (delegate_) | 211 if (delegate_) |
| 212 delegate_->OnStartEnterpriseEnrollment(); | 212 delegate_->OnStartEnterpriseEnrollment(); |
| 213 } | 213 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 239 bool WebUILoginDisplay::IsShowNewUser() const { | 239 bool WebUILoginDisplay::IsShowNewUser() const { |
| 240 return show_new_user_; | 240 return show_new_user_; |
| 241 } | 241 } |
| 242 | 242 |
| 243 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { | 243 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { |
| 244 if (delegate_) | 244 if (delegate_) |
| 245 delegate_->SetDisplayEmail(email); | 245 delegate_->SetDisplayEmail(email); |
| 246 } | 246 } |
| 247 | 247 |
| 248 } // namespace chromeos | 248 } // namespace chromeos |
| OLD | NEW |