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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 delegate_->CompleteLogin(username, password); | 161 delegate_->CompleteLogin(username, password); |
162 } | 162 } |
163 | 163 |
164 void WebUILoginDisplay::Login(const std::string& username, | 164 void WebUILoginDisplay::Login(const std::string& username, |
165 const std::string& password) { | 165 const std::string& password) { |
166 DCHECK(delegate_); | 166 DCHECK(delegate_); |
167 if (delegate_) | 167 if (delegate_) |
168 delegate_->Login(username, password); | 168 delegate_->Login(username, password); |
169 } | 169 } |
170 | 170 |
| 171 void WebUILoginDisplay::LoginAsDemoUser() { |
| 172 DCHECK(delegate_); |
| 173 if (delegate_) |
| 174 delegate_->LoginAsDemoUser(); |
| 175 } |
| 176 |
171 void WebUILoginDisplay::LoginAsGuest() { | 177 void WebUILoginDisplay::LoginAsGuest() { |
172 DCHECK(delegate_); | 178 DCHECK(delegate_); |
173 if (delegate_) | 179 if (delegate_) |
174 delegate_->LoginAsGuest(); | 180 delegate_->LoginAsGuest(); |
175 } | 181 } |
176 | 182 |
177 void WebUILoginDisplay::Signout() { | 183 void WebUILoginDisplay::Signout() { |
178 delegate_->Signout(); | 184 delegate_->Signout(); |
179 } | 185 } |
180 | 186 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 bool WebUILoginDisplay::IsShowNewUser() const { | 232 bool WebUILoginDisplay::IsShowNewUser() const { |
227 return show_new_user_; | 233 return show_new_user_; |
228 } | 234 } |
229 | 235 |
230 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { | 236 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { |
231 if (delegate_) | 237 if (delegate_) |
232 delegate_->SetDisplayEmail(email); | 238 delegate_->SetDisplayEmail(email); |
233 } | 239 } |
234 | 240 |
235 } // namespace chromeos | 241 } // namespace chromeos |
OLD | NEW |