| 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 "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 7 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 8 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 8 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
| 9 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h" | 9 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h" |
| 10 #include "chrome/browser/chromeos/login/signin_screen_controller.h" | 10 #include "chrome/browser/chromeos/login/signin_screen_controller.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void WebUILoginDisplay::ShowPasswordChangedDialog(bool show_password_error) { | 188 void WebUILoginDisplay::ShowPasswordChangedDialog(bool show_password_error) { |
| 189 if (webui_handler_) | 189 if (webui_handler_) |
| 190 webui_handler_->ShowPasswordChangedDialog(show_password_error); | 190 webui_handler_->ShowPasswordChangedDialog(show_password_error); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void WebUILoginDisplay::ShowSigninUI(const std::string& email) { | 193 void WebUILoginDisplay::ShowSigninUI(const std::string& email) { |
| 194 if (webui_handler_) | 194 if (webui_handler_) |
| 195 webui_handler_->ShowSigninUI(email); | 195 webui_handler_->ShowSigninUI(email); |
| 196 } | 196 } |
| 197 | 197 |
| 198 void WebUILoginDisplay::ShowWhitelistCheckFailedError() { |
| 199 if (webui_handler_) |
| 200 webui_handler_->ShowWhitelistCheckFailedError(); |
| 201 } |
| 202 |
| 198 // WebUILoginDisplay, NativeWindowDelegate implementation: --------------------- | 203 // WebUILoginDisplay, NativeWindowDelegate implementation: --------------------- |
| 199 gfx::NativeWindow WebUILoginDisplay::GetNativeWindow() const { | 204 gfx::NativeWindow WebUILoginDisplay::GetNativeWindow() const { |
| 200 return parent_window(); | 205 return parent_window(); |
| 201 } | 206 } |
| 202 | 207 |
| 203 // WebUILoginDisplay, SigninScreenHandlerDelegate implementation: -------------- | 208 // WebUILoginDisplay, SigninScreenHandlerDelegate implementation: -------------- |
| 204 void WebUILoginDisplay::CancelPasswordChangedFlow() { | 209 void WebUILoginDisplay::CancelPasswordChangedFlow() { |
| 205 DCHECK(delegate_); | 210 DCHECK(delegate_); |
| 206 if (delegate_) | 211 if (delegate_) |
| 207 delegate_->CancelPasswordChangedFlow(); | 212 delegate_->CancelPasswordChangedFlow(); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 delegate_->Signout(); | 334 delegate_->Signout(); |
| 330 } | 335 } |
| 331 | 336 |
| 332 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { | 337 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { |
| 333 if (delegate_) | 338 if (delegate_) |
| 334 delegate_->ResetPublicSessionAutoLoginTimer(); | 339 delegate_->ResetPublicSessionAutoLoginTimer(); |
| 335 } | 340 } |
| 336 | 341 |
| 337 | 342 |
| 338 } // namespace chromeos | 343 } // namespace chromeos |
| OLD | NEW |