| 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 16 matching lines...) Expand all  Loading... | 
|   27 #include "chromeos/dbus/session_manager_client.h" |   27 #include "chromeos/dbus/session_manager_client.h" | 
|   28 #include "content/public/browser/notification_observer.h" |   28 #include "content/public/browser/notification_observer.h" | 
|   29 #include "content/public/browser/notification_registrar.h" |   29 #include "content/public/browser/notification_registrar.h" | 
|   30 #include "content/public/browser/web_contents_observer.h" |   30 #include "content/public/browser/web_contents_observer.h" | 
|   31 #include "ui/display/display_observer.h" |   31 #include "ui/display/display_observer.h" | 
|   32 #include "ui/gfx/geometry/rect.h" |   32 #include "ui/gfx/geometry/rect.h" | 
|   33 #include "ui/keyboard/keyboard_controller_observer.h" |   33 #include "ui/keyboard/keyboard_controller_observer.h" | 
|   34 #include "ui/views/widget/widget_removals_observer.h" |   34 #include "ui/views/widget/widget_removals_observer.h" | 
|   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 ScopedKeepAlive; |   38 class ScopedKeepAlive; | 
|   38  |   39  | 
|   39 namespace chromeos { |   40 namespace chromeos { | 
|   40  |   41  | 
 |   42 class ArcKioskController; | 
|   41 class DemoAppLauncher; |   43 class DemoAppLauncher; | 
|   42 class FocusRingController; |   44 class FocusRingController; | 
|   43 class KeyboardDrivenOobeKeyHandler; |   45 class KeyboardDrivenOobeKeyHandler; | 
|   44 class WebUILoginDisplay; |   46 class WebUILoginDisplay; | 
|   45 class WebUILoginView; |   47 class WebUILoginView; | 
|   46  |   48  | 
|   47 // An implementation class for OOBE/login WebUI screen host. |   49 // An implementation class for OOBE/login WebUI screen host. | 
|   48 // It encapsulates controllers, wallpaper integration and flow. |   50 // It encapsulates controllers, wallpaper integration and flow. | 
|   49 class LoginDisplayHostImpl : public LoginDisplayHost, |   51 class LoginDisplayHostImpl : public LoginDisplayHost, | 
|   50                              public content::NotificationObserver, |   52                              public content::NotificationObserver, | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
|   77   void StartUserAdding(const base::Closure& completion_callback) override; |   79   void StartUserAdding(const base::Closure& completion_callback) override; | 
|   78   void CancelUserAdding() override; |   80   void CancelUserAdding() override; | 
|   79   void StartSignInScreen(const LoginScreenContext& context) override; |   81   void StartSignInScreen(const LoginScreenContext& context) override; | 
|   80   void OnPreferencesChanged() override; |   82   void OnPreferencesChanged() override; | 
|   81   void PrewarmAuthentication() override; |   83   void PrewarmAuthentication() override; | 
|   82   void StartAppLaunch( |   84   void StartAppLaunch( | 
|   83       const std::string& app_id, |   85       const std::string& app_id, | 
|   84       bool diagnostic_mode, |   86       bool diagnostic_mode, | 
|   85       bool auto_launch) override; |   87       bool auto_launch) override; | 
|   86   void StartDemoAppLaunch() override; |   88   void StartDemoAppLaunch() override; | 
 |   89   void StartArcKiosk(const AccountId& account_id) override; | 
|   87  |   90  | 
|   88   // Creates WizardController instance. |   91   // Creates WizardController instance. | 
|   89   WizardController* CreateWizardController(); |   92   WizardController* CreateWizardController(); | 
|   90  |   93  | 
|   91   // Called when the first browser window is created, but before it's shown. |   94   // Called when the first browser window is created, but before it's shown. | 
|   92   void OnBrowserCreated(); |   95   void OnBrowserCreated(); | 
|   93  |   96  | 
|   94   const gfx::Rect& wallpaper_bounds() const { return wallpaper_bounds_; } |   97   const gfx::Rect& wallpaper_bounds() const { return wallpaper_bounds_; } | 
|   95  |   98  | 
|   96   // Trace id for ShowLoginWebUI event (since there exists at most one login |   99   // Trace id for ShowLoginWebUI event (since there exists at most one login | 
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  210   std::unique_ptr<WizardController> wizard_controller_; |  213   std::unique_ptr<WizardController> wizard_controller_; | 
|  211  |  214  | 
|  212   std::unique_ptr<SignInScreenController> signin_screen_controller_; |  215   std::unique_ptr<SignInScreenController> signin_screen_controller_; | 
|  213  |  216  | 
|  214   // App launch controller. |  217   // App launch controller. | 
|  215   std::unique_ptr<AppLaunchController> app_launch_controller_; |  218   std::unique_ptr<AppLaunchController> app_launch_controller_; | 
|  216  |  219  | 
|  217   // Demo app launcher. |  220   // Demo app launcher. | 
|  218   std::unique_ptr<DemoAppLauncher> demo_app_launcher_; |  221   std::unique_ptr<DemoAppLauncher> demo_app_launcher_; | 
|  219  |  222  | 
 |  223   // ARC kiosk controller. | 
 |  224   std::unique_ptr<ArcKioskController> arc_kiosk_controller_; | 
 |  225  | 
|  220   // Make sure chrome won't exit while we are at login/oobe screen. |  226   // Make sure chrome won't exit while we are at login/oobe screen. | 
|  221   std::unique_ptr<ScopedKeepAlive> keep_alive_; |  227   std::unique_ptr<ScopedKeepAlive> keep_alive_; | 
|  222  |  228  | 
|  223   // Has ShutdownDisplayHost() already been called?  Used to avoid posting our |  229   // Has ShutdownDisplayHost() already been called?  Used to avoid posting our | 
|  224   // own deletion to the message loop twice if the user logs out while we're |  230   // own deletion to the message loop twice if the user logs out while we're | 
|  225   // still in the process of cleaning up after login (http://crbug.com/134463). |  231   // still in the process of cleaning up after login (http://crbug.com/134463). | 
|  226   bool shutting_down_; |  232   bool shutting_down_; | 
|  227  |  233  | 
|  228   // Whether progress bar is shown on the OOBE page. |  234   // Whether progress bar is shown on the OOBE page. | 
|  229   bool oobe_progress_bar_visible_; |  235   bool oobe_progress_bar_visible_; | 
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  313  |  319  | 
|  314   base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; |  320   base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; | 
|  315   base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; |  321   base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; | 
|  316  |  322  | 
|  317   DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); |  323   DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); | 
|  318 }; |  324 }; | 
|  319  |  325  | 
|  320 }  // namespace chromeos |  326 }  // namespace chromeos | 
|  321  |  327  | 
|  322 #endif  // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |  328 #endif  // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 
| OLD | NEW |