| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 public: | 56 public: |
| 57 explicit LoginDisplayHostImpl(const gfx::Rect& wallpaper_bounds); | 57 explicit LoginDisplayHostImpl(const gfx::Rect& wallpaper_bounds); |
| 58 ~LoginDisplayHostImpl() override; | 58 ~LoginDisplayHostImpl() override; |
| 59 | 59 |
| 60 // LoginDisplayHost implementation: | 60 // LoginDisplayHost implementation: |
| 61 LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) override; | 61 LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) override; |
| 62 gfx::NativeWindow GetNativeWindow() const override; | 62 gfx::NativeWindow GetNativeWindow() const override; |
| 63 OobeUI* GetOobeUI() const override; | 63 OobeUI* GetOobeUI() const override; |
| 64 WebUILoginView* GetWebUILoginView() const override; | 64 WebUILoginView* GetWebUILoginView() const override; |
| 65 void BeforeSessionStart() override; | 65 void BeforeSessionStart() override; |
| 66 void Finalize() override; | 66 void Finalize(base::OnceClosure completion_callback) override; |
| 67 void OpenProxySettings() override; | 67 void OpenProxySettings() override; |
| 68 void SetStatusAreaVisible(bool visible) override; | 68 void SetStatusAreaVisible(bool visible) override; |
| 69 void StartWizard(OobeScreen first_screen) override; | 69 void StartWizard(OobeScreen first_screen) override; |
| 70 WizardController* GetWizardController() override; | 70 WizardController* GetWizardController() override; |
| 71 AppLaunchController* GetAppLaunchController() override; | 71 AppLaunchController* GetAppLaunchController() override; |
| 72 void StartUserAdding(const base::Closure& completion_callback) override; | 72 void StartUserAdding(base::OnceClosure completion_callback) override; |
| 73 void CancelUserAdding() override; | 73 void CancelUserAdding() override; |
| 74 void StartSignInScreen(const LoginScreenContext& context) override; | 74 void StartSignInScreen(const LoginScreenContext& context) override; |
| 75 void OnPreferencesChanged() override; | 75 void OnPreferencesChanged() override; |
| 76 void PrewarmAuthentication() override; | 76 void PrewarmAuthentication() override; |
| 77 void StartAppLaunch( | 77 void StartAppLaunch( |
| 78 const std::string& app_id, | 78 const std::string& app_id, |
| 79 bool diagnostic_mode, | 79 bool diagnostic_mode, |
| 80 bool auto_launch) override; | 80 bool auto_launch) override; |
| 81 void StartDemoAppLaunch() override; | 81 void StartDemoAppLaunch() override; |
| 82 void StartArcKiosk(const AccountId& account_id) override; | 82 void StartArcKiosk(const AccountId& account_id) override; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 // How many times renderer has crashed. | 264 // How many times renderer has crashed. |
| 265 int crash_count_ = 0; | 265 int crash_count_ = 0; |
| 266 | 266 |
| 267 // Way to restore if renderer have crashed. | 267 // Way to restore if renderer have crashed. |
| 268 RestorePath restore_path_ = RESTORE_UNKNOWN; | 268 RestorePath restore_path_ = RESTORE_UNKNOWN; |
| 269 | 269 |
| 270 // Stored parameters for StartWizard, required to restore in case of crash. | 270 // Stored parameters for StartWizard, required to restore in case of crash. |
| 271 OobeScreen first_screen_; | 271 OobeScreen first_screen_; |
| 272 | 272 |
| 273 // Called before host deletion. | 273 // Called after host deletion. |
| 274 base::Closure completion_callback_; | 274 std::vector<base::OnceClosure> completion_callbacks_; |
| 275 | 275 |
| 276 // Active instance of authentication prewarmer. | 276 // Active instance of authentication prewarmer. |
| 277 std::unique_ptr<AuthPrewarmer> auth_prewarmer_; | 277 std::unique_ptr<AuthPrewarmer> auth_prewarmer_; |
| 278 | 278 |
| 279 // A focus ring controller to draw focus ring around view for keyboard | 279 // A focus ring controller to draw focus ring around view for keyboard |
| 280 // driven oobe. | 280 // driven oobe. |
| 281 std::unique_ptr<FocusRingController> focus_ring_controller_; | 281 std::unique_ptr<FocusRingController> focus_ring_controller_; |
| 282 | 282 |
| 283 // Handles special keys for keyboard driven oobe. | 283 // Handles special keys for keyboard driven oobe. |
| 284 std::unique_ptr<KeyboardDrivenOobeKeyHandler> | 284 std::unique_ptr<KeyboardDrivenOobeKeyHandler> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 306 | 306 |
| 307 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; | 307 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; |
| 308 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; | 308 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; |
| 309 | 309 |
| 310 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); | 310 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 } // namespace chromeos | 313 } // namespace chromeos |
| 314 | 314 |
| 315 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 315 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
| OLD | NEW |