| 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 |
| 222 void WebUILoginDisplay::SetClientAreaSize(int width, int height) { |
| 223 if (webui_handler_) |
| 224 webui_handler_->SetClientAreaSize(width, height); |
| 225 } |
| 226 |
| 217 // WebUILoginDisplay, NativeWindowDelegate implementation: --------------------- | 227 // WebUILoginDisplay, NativeWindowDelegate implementation: --------------------- |
| 218 gfx::NativeWindow WebUILoginDisplay::GetNativeWindow() const { | 228 gfx::NativeWindow WebUILoginDisplay::GetNativeWindow() const { |
| 219 return parent_window(); | 229 return parent_window(); |
| 220 } | 230 } |
| 221 | 231 |
| 222 // WebUILoginDisplay, SigninScreenHandlerDelegate implementation: -------------- | 232 // WebUILoginDisplay, SigninScreenHandlerDelegate implementation: -------------- |
| 223 void WebUILoginDisplay::CancelPasswordChangedFlow() { | 233 void WebUILoginDisplay::CancelPasswordChangedFlow() { |
| 224 DCHECK(delegate_); | 234 DCHECK(delegate_); |
| 225 if (delegate_) | 235 if (delegate_) |
| 226 delegate_->CancelPasswordChangedFlow(); | 236 delegate_->CancelPasswordChangedFlow(); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, | 393 base::TimeDelta::FromSeconds(kPasswordClearTimeoutSec), this, |
| 384 &WebUILoginDisplay::OnPasswordClearTimerExpired); | 394 &WebUILoginDisplay::OnPasswordClearTimerExpired); |
| 385 } | 395 } |
| 386 | 396 |
| 387 void WebUILoginDisplay::OnPasswordClearTimerExpired() { | 397 void WebUILoginDisplay::OnPasswordClearTimerExpired() { |
| 388 if (webui_handler_) | 398 if (webui_handler_) |
| 389 webui_handler_->ClearUserPodPassword(); | 399 webui_handler_->ClearUserPodPassword(); |
| 390 } | 400 } |
| 391 | 401 |
| 392 } // namespace chromeos | 402 } // namespace chromeos |
| OLD | NEW |