| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 void WebUILoginDisplay::ShowSigninUI(const std::string& email) { | 207 void WebUILoginDisplay::ShowSigninUI(const std::string& email) { |
| 208 if (webui_handler_) | 208 if (webui_handler_) |
| 209 webui_handler_->ShowSigninUI(email); | 209 webui_handler_->ShowSigninUI(email); |
| 210 } | 210 } |
| 211 | 211 |
| 212 void WebUILoginDisplay::ShowControlBar(bool show) { | 212 void WebUILoginDisplay::ShowControlBar(bool show) { |
| 213 if (webui_handler_) | 213 if (webui_handler_) |
| 214 webui_handler_->ShowControlBar(show); | 214 webui_handler_->ShowControlBar(show); |
| 215 } | 215 } |
| 216 | 216 |
| 217 void WebUILoginDisplay::SetKeyboardState(bool shown) { |
| 218 if (webui_handler_) |
| 219 webui_handler_->SetKeyboardState(shown); |
| 220 } |
| 221 |
| 217 // WebUILoginDisplay, NativeWindowDelegate implementation: --------------------- | 222 // WebUILoginDisplay, NativeWindowDelegate implementation: --------------------- |
| 218 gfx::NativeWindow WebUILoginDisplay::GetNativeWindow() const { | 223 gfx::NativeWindow WebUILoginDisplay::GetNativeWindow() const { |
| 219 return parent_window(); | 224 return parent_window(); |
| 220 } | 225 } |
| 221 | 226 |
| 222 // WebUILoginDisplay, SigninScreenHandlerDelegate implementation: -------------- | 227 // WebUILoginDisplay, SigninScreenHandlerDelegate implementation: -------------- |
| 223 void WebUILoginDisplay::CancelPasswordChangedFlow() { | 228 void WebUILoginDisplay::CancelPasswordChangedFlow() { |
| 224 DCHECK(delegate_); | 229 DCHECK(delegate_); |
| 225 if (delegate_) | 230 if (delegate_) |
| 226 delegate_->CancelPasswordChangedFlow(); | 231 delegate_->CancelPasswordChangedFlow(); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, | 388 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, |
| 384 &WebUILoginDisplay::OnPasswordClearTimerExpired); | 389 &WebUILoginDisplay::OnPasswordClearTimerExpired); |
| 385 } | 390 } |
| 386 | 391 |
| 387 void WebUILoginDisplay::OnPasswordClearTimerExpired() { | 392 void WebUILoginDisplay::OnPasswordClearTimerExpired() { |
| 388 if (webui_handler_) | 393 if (webui_handler_) |
| 389 webui_handler_->ClearUserPodPassword(); | 394 webui_handler_->ClearUserPodPassword(); |
| 390 } | 395 } |
| 391 | 396 |
| 392 } // namespace chromeos | 397 } // namespace chromeos |
| OLD | NEW |