| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| 214 | 214 |
| 215 void WebUILoginDisplay::ShowResetScreen() { |
| 216 if (delegate_) |
| 217 delegate_->OnStartDeviceReset(); |
| 218 } |
| 219 |
| 215 void WebUILoginDisplay::SetWebUIHandler( | 220 void WebUILoginDisplay::SetWebUIHandler( |
| 216 LoginDisplayWebUIHandler* webui_handler) { | 221 LoginDisplayWebUIHandler* webui_handler) { |
| 217 webui_handler_ = webui_handler; | 222 webui_handler_ = webui_handler; |
| 218 } | 223 } |
| 219 | 224 |
| 220 void WebUILoginDisplay::ShowSigninScreenForCreds( | 225 void WebUILoginDisplay::ShowSigninScreenForCreds( |
| 221 const std::string& username, | 226 const std::string& username, |
| 222 const std::string& password) { | 227 const std::string& password) { |
| 223 if (webui_handler_) | 228 if (webui_handler_) |
| 224 webui_handler_->ShowSigninScreenForCreds(username, password); | 229 webui_handler_->ShowSigninScreenForCreds(username, password); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 239 bool WebUILoginDisplay::IsShowNewUser() const { | 244 bool WebUILoginDisplay::IsShowNewUser() const { |
| 240 return show_new_user_; | 245 return show_new_user_; |
| 241 } | 246 } |
| 242 | 247 |
| 243 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { | 248 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { |
| 244 if (delegate_) | 249 if (delegate_) |
| 245 delegate_->SetDisplayEmail(email); | 250 delegate_->SetDisplayEmail(email); |
| 246 } | 251 } |
| 247 | 252 |
| 248 } // namespace chromeos | 253 } // namespace chromeos |
| OLD | NEW |