| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/webui_login_display.h" | 5 #include "chrome/browser/chromeos/login/ui/webui_login_display.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 8 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 9 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 9 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
| 10 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" | 10 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 void WebUILoginDisplay::ShowPasswordChangedDialog(bool show_password_error) { | 199 void WebUILoginDisplay::ShowPasswordChangedDialog(bool show_password_error) { |
| 200 if (webui_handler_) | 200 if (webui_handler_) |
| 201 webui_handler_->ShowPasswordChangedDialog(show_password_error); | 201 webui_handler_->ShowPasswordChangedDialog(show_password_error); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void WebUILoginDisplay::ShowSigninUI(const std::string& email) { | 204 void WebUILoginDisplay::ShowSigninUI(const std::string& email) { |
| 205 if (webui_handler_) | 205 if (webui_handler_) |
| 206 webui_handler_->ShowSigninUI(email); | 206 webui_handler_->ShowSigninUI(email); |
| 207 } | 207 } |
| 208 | 208 |
| 209 void WebUILoginDisplay::ShowControlBar(bool show) { |
| 210 if (webui_handler_) |
| 211 webui_handler_->ShowControlBar(show); |
| 212 } |
| 213 |
| 214 void WebUILoginDisplay::SetKeyboardState(bool shown) { |
| 215 if (webui_handler_) |
| 216 webui_handler_->SetKeyboardState(shown); |
| 217 } |
| 218 |
| 219 void WebUILoginDisplay::SetClientAreaSize(int width, int height) { |
| 220 if (webui_handler_) |
| 221 webui_handler_->SetClientAreaSize(width, height); |
| 222 } |
| 223 |
| 209 // WebUILoginDisplay, NativeWindowDelegate implementation: --------------------- | 224 // WebUILoginDisplay, NativeWindowDelegate implementation: --------------------- |
| 210 gfx::NativeWindow WebUILoginDisplay::GetNativeWindow() const { | 225 gfx::NativeWindow WebUILoginDisplay::GetNativeWindow() const { |
| 211 return parent_window(); | 226 return parent_window(); |
| 212 } | 227 } |
| 213 | 228 |
| 214 // WebUILoginDisplay, SigninScreenHandlerDelegate implementation: -------------- | 229 // WebUILoginDisplay, SigninScreenHandlerDelegate implementation: -------------- |
| 215 void WebUILoginDisplay::CancelPasswordChangedFlow() { | 230 void WebUILoginDisplay::CancelPasswordChangedFlow() { |
| 216 DCHECK(delegate_); | 231 DCHECK(delegate_); |
| 217 if (delegate_) | 232 if (delegate_) |
| 218 delegate_->CancelPasswordChangedFlow(); | 233 delegate_->CancelPasswordChangedFlow(); |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, | 388 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, |
| 374 &WebUILoginDisplay::OnPasswordClearTimerExpired); | 389 &WebUILoginDisplay::OnPasswordClearTimerExpired); |
| 375 } | 390 } |
| 376 | 391 |
| 377 void WebUILoginDisplay::OnPasswordClearTimerExpired() { | 392 void WebUILoginDisplay::OnPasswordClearTimerExpired() { |
| 378 if (webui_handler_) | 393 if (webui_handler_) |
| 379 webui_handler_->ClearUserPodPassword(); | 394 webui_handler_->ClearUserPodPassword(); |
| 380 } | 395 } |
| 381 | 396 |
| 382 } // namespace chromeos | 397 } // namespace chromeos |
| OLD | NEW |