| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 public: | 60 public: |
| 61 explicit LoginDisplayHostImpl(const gfx::Rect& wallpaper_bounds); | 61 explicit LoginDisplayHostImpl(const gfx::Rect& wallpaper_bounds); |
| 62 ~LoginDisplayHostImpl() override; | 62 ~LoginDisplayHostImpl() override; |
| 63 | 63 |
| 64 // LoginDisplayHost implementation: | 64 // LoginDisplayHost implementation: |
| 65 LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) override; | 65 LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) override; |
| 66 gfx::NativeWindow GetNativeWindow() const override; | 66 gfx::NativeWindow GetNativeWindow() const override; |
| 67 OobeUI* GetOobeUI() const override; | 67 OobeUI* GetOobeUI() const override; |
| 68 WebUILoginView* GetWebUILoginView() const override; | 68 WebUILoginView* GetWebUILoginView() const override; |
| 69 void BeforeSessionStart() override; | 69 void BeforeSessionStart() override; |
| 70 void Finalize() override; | 70 void Finalize(base::OnceClosure completion_callback) override; |
| 71 void OnCompleteLogin() override; | 71 void OnCompleteLogin() override; |
| 72 void OpenProxySettings() override; | 72 void OpenProxySettings() override; |
| 73 void SetStatusAreaVisible(bool visible) override; | 73 void SetStatusAreaVisible(bool visible) override; |
| 74 AutoEnrollmentController* GetAutoEnrollmentController() override; | 74 AutoEnrollmentController* GetAutoEnrollmentController() override; |
| 75 void StartWizard(OobeScreen first_screen) override; | 75 void StartWizard(OobeScreen first_screen) override; |
| 76 WizardController* GetWizardController() override; | 76 WizardController* GetWizardController() override; |
| 77 AppLaunchController* GetAppLaunchController() override; | 77 AppLaunchController* GetAppLaunchController() override; |
| 78 void StartUserAdding(const base::Closure& completion_callback) override; | 78 void StartUserAdding(base::OnceClosure completion_callback) override; |
| 79 void CancelUserAdding() override; | 79 void CancelUserAdding() override; |
| 80 void StartSignInScreen(const LoginScreenContext& context) override; | 80 void StartSignInScreen(const LoginScreenContext& context) override; |
| 81 void OnPreferencesChanged() override; | 81 void OnPreferencesChanged() override; |
| 82 void PrewarmAuthentication() override; | 82 void PrewarmAuthentication() override; |
| 83 void StartAppLaunch( | 83 void StartAppLaunch( |
| 84 const std::string& app_id, | 84 const std::string& app_id, |
| 85 bool diagnostic_mode, | 85 bool diagnostic_mode, |
| 86 bool auto_launch) override; | 86 bool auto_launch) override; |
| 87 void StartDemoAppLaunch() override; | 87 void StartDemoAppLaunch() override; |
| 88 void StartArcKiosk(const AccountId& account_id) override; | 88 void StartArcKiosk(const AccountId& account_id) override; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 280 |
| 281 // How many times renderer has crashed. | 281 // How many times renderer has crashed. |
| 282 int crash_count_ = 0; | 282 int crash_count_ = 0; |
| 283 | 283 |
| 284 // Way to restore if renderer have crashed. | 284 // Way to restore if renderer have crashed. |
| 285 RestorePath restore_path_ = RESTORE_UNKNOWN; | 285 RestorePath restore_path_ = RESTORE_UNKNOWN; |
| 286 | 286 |
| 287 // Stored parameters for StartWizard, required to restore in case of crash. | 287 // Stored parameters for StartWizard, required to restore in case of crash. |
| 288 OobeScreen first_screen_; | 288 OobeScreen first_screen_; |
| 289 | 289 |
| 290 // Called before host deletion. | 290 // Called after host deletion. |
| 291 base::Closure completion_callback_; | 291 std::vector<base::OnceClosure> completion_callbacks_; |
| 292 | 292 |
| 293 // Active instance of authentication prewarmer. | 293 // Active instance of authentication prewarmer. |
| 294 std::unique_ptr<AuthPrewarmer> auth_prewarmer_; | 294 std::unique_ptr<AuthPrewarmer> auth_prewarmer_; |
| 295 | 295 |
| 296 // A focus ring controller to draw focus ring around view for keyboard | 296 // A focus ring controller to draw focus ring around view for keyboard |
| 297 // driven oobe. | 297 // driven oobe. |
| 298 std::unique_ptr<FocusRingController> focus_ring_controller_; | 298 std::unique_ptr<FocusRingController> focus_ring_controller_; |
| 299 | 299 |
| 300 // Handles special keys for keyboard driven oobe. | 300 // Handles special keys for keyboard driven oobe. |
| 301 std::unique_ptr<KeyboardDrivenOobeKeyHandler> | 301 std::unique_ptr<KeyboardDrivenOobeKeyHandler> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 326 | 326 |
| 327 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; | 327 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; |
| 328 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; | 328 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; |
| 329 | 329 |
| 330 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); | 330 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 } // namespace chromeos | 333 } // namespace chromeos |
| 334 | 334 |
| 335 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 335 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
| OLD | NEW |