| 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "ui/wm/public/scoped_drag_drop_disabler.h" | 35 #include "ui/wm/public/scoped_drag_drop_disabler.h" |
| 36 | 36 |
| 37 class AccountId; | 37 class AccountId; |
| 38 class ScopedKeepAlive; | 38 class ScopedKeepAlive; |
| 39 | 39 |
| 40 namespace chromeos { | 40 namespace chromeos { |
| 41 | 41 |
| 42 class ArcKioskController; | 42 class ArcKioskController; |
| 43 class DemoAppLauncher; | 43 class DemoAppLauncher; |
| 44 class FocusRingController; | 44 class FocusRingController; |
| 45 class KeyboardDrivenOobeKeyHandler; | |
| 46 class WebUILoginDisplay; | 45 class WebUILoginDisplay; |
| 47 class WebUILoginView; | 46 class WebUILoginView; |
| 48 | 47 |
| 49 // An implementation class for OOBE/login WebUI screen host. | 48 // An implementation class for OOBE/login WebUI screen host. |
| 50 // It encapsulates controllers, wallpaper integration and flow. | 49 // It encapsulates controllers, wallpaper integration and flow. |
| 51 class LoginDisplayHostImpl : public LoginDisplayHost, | 50 class LoginDisplayHostImpl : public LoginDisplayHost, |
| 52 public content::NotificationObserver, | 51 public content::NotificationObserver, |
| 53 public content::WebContentsObserver, | 52 public content::WebContentsObserver, |
| 54 public chromeos::SessionManagerClient::Observer, | 53 public chromeos::SessionManagerClient::Observer, |
| 55 public chromeos::CrasAudioHandler::AudioObserver, | 54 public chromeos::CrasAudioHandler::AudioObserver, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // Trace id for ShowLoginWebUI event (since there exists at most one login | 98 // Trace id for ShowLoginWebUI event (since there exists at most one login |
| 100 // WebUI at a time). | 99 // WebUI at a time). |
| 101 static const int kShowLoginWebUIid; | 100 static const int kShowLoginWebUIid; |
| 102 | 101 |
| 103 views::Widget* login_window_for_test() { return login_window_; } | 102 views::Widget* login_window_for_test() { return login_window_; } |
| 104 | 103 |
| 105 // Disable GaiaScreenHandler restrictive proxy check. | 104 // Disable GaiaScreenHandler restrictive proxy check. |
| 106 static void DisableRestrictiveProxyCheckForTest(); | 105 static void DisableRestrictiveProxyCheckForTest(); |
| 107 | 106 |
| 108 protected: | 107 protected: |
| 108 class KeyboardDrivenOobeKeyHandler; |
| 109 |
| 109 // content::NotificationObserver implementation: | 110 // content::NotificationObserver implementation: |
| 110 void Observe(int type, | 111 void Observe(int type, |
| 111 const content::NotificationSource& source, | 112 const content::NotificationSource& source, |
| 112 const content::NotificationDetails& details) override; | 113 const content::NotificationDetails& details) override; |
| 113 | 114 |
| 114 // Overridden from content::WebContentsObserver: | 115 // Overridden from content::WebContentsObserver: |
| 115 void RenderProcessGone(base::TerminationStatus status) override; | 116 void RenderProcessGone(base::TerminationStatus status) override; |
| 116 | 117 |
| 117 // Overridden from chromeos::SessionManagerClient::Observer: | 118 // Overridden from chromeos::SessionManagerClient::Observer: |
| 118 void EmitLoginPromptVisibleCalled() override; | 119 void EmitLoginPromptVisibleCalled() override; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 325 |
| 325 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; | 326 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; |
| 326 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; | 327 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; |
| 327 | 328 |
| 328 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); | 329 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); |
| 329 }; | 330 }; |
| 330 | 331 |
| 331 } // namespace chromeos | 332 } // namespace chromeos |
| 332 | 333 |
| 333 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 334 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
| OLD | NEW |