| 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/webui_login_view.h" | 10 #include "chrome/browser/chromeos/login/webui_login_view.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 void WebUILoginDisplay::Signout() { | 171 void WebUILoginDisplay::Signout() { |
| 172 delegate_->Signout(); | 172 delegate_->Signout(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 void WebUILoginDisplay::CreateAccount() { | 175 void WebUILoginDisplay::CreateAccount() { |
| 176 DCHECK(delegate_); | 176 DCHECK(delegate_); |
| 177 if (delegate_) | 177 if (delegate_) |
| 178 delegate_->CreateAccount(); | 178 delegate_->CreateAccount(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void WebUILoginDisplay::UserSelected(const std::string& username) { |
| 182 UserManager::Get()->UserSelected(username); |
| 183 } |
| 184 |
| 181 void WebUILoginDisplay::RemoveUser(const std::string& username) { | 185 void WebUILoginDisplay::RemoveUser(const std::string& username) { |
| 182 UserManager::Get()->RemoveUser(username, this); | 186 UserManager::Get()->RemoveUser(username, this); |
| 183 } | 187 } |
| 184 | 188 |
| 185 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { | 189 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { |
| 186 if (delegate_) | 190 if (delegate_) |
| 187 delegate_->OnStartEnterpriseEnrollment(); | 191 delegate_->OnStartEnterpriseEnrollment(); |
| 188 } | 192 } |
| 189 | 193 |
| 190 void WebUILoginDisplay::SetWebUIHandler( | 194 void WebUILoginDisplay::SetWebUIHandler( |
| (...skipping 23 matching lines...) Expand all Loading... |
| 214 bool WebUILoginDisplay::IsShowNewUser() const { | 218 bool WebUILoginDisplay::IsShowNewUser() const { |
| 215 return show_new_user_; | 219 return show_new_user_; |
| 216 } | 220 } |
| 217 | 221 |
| 218 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { | 222 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { |
| 219 if (delegate_) | 223 if (delegate_) |
| 220 delegate_->SetDisplayEmail(email); | 224 delegate_->SetDisplayEmail(email); |
| 221 } | 225 } |
| 222 | 226 |
| 223 } // namespace chromeos | 227 } // namespace chromeos |
| OLD | NEW |