| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOGIN_DISPLAY_HOST_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "chrome/browser/chromeos/login/app_launch_controller.h" |
| 13 #include "chrome/browser/chromeos/login/auth_prewarmer.h" | 14 #include "chrome/browser/chromeos/login/auth_prewarmer.h" |
| 14 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 15 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 15 #include "chrome/browser/chromeos/login/login_display.h" | 16 #include "chrome/browser/chromeos/login/login_display.h" |
| 16 #include "chrome/browser/chromeos/login/login_display_host.h" | 17 #include "chrome/browser/chromeos/login/login_display_host.h" |
| 17 #include "chrome/browser/chromeos/login/wizard_controller.h" | 18 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 18 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 19 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
| 19 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
| 20 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
| 21 #include "content/public/browser/web_contents_observer.h" | 22 #include "content/public/browser/web_contents_observer.h" |
| 22 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual void StartWizard( | 66 virtual void StartWizard( |
| 66 const std::string& first_screen_name, | 67 const std::string& first_screen_name, |
| 67 scoped_ptr<DictionaryValue> screen_parameters) OVERRIDE; | 68 scoped_ptr<DictionaryValue> screen_parameters) OVERRIDE; |
| 68 virtual WizardController* GetWizardController() OVERRIDE; | 69 virtual WizardController* GetWizardController() OVERRIDE; |
| 69 virtual void StartUserAdding( | 70 virtual void StartUserAdding( |
| 70 const base::Closure& completion_callback) OVERRIDE; | 71 const base::Closure& completion_callback) OVERRIDE; |
| 71 virtual void StartSignInScreen() OVERRIDE; | 72 virtual void StartSignInScreen() OVERRIDE; |
| 72 virtual void ResumeSignInScreen() OVERRIDE; | 73 virtual void ResumeSignInScreen() OVERRIDE; |
| 73 virtual void OnPreferencesChanged() OVERRIDE; | 74 virtual void OnPreferencesChanged() OVERRIDE; |
| 74 virtual void PrewarmAuthentication() OVERRIDE; | 75 virtual void PrewarmAuthentication() OVERRIDE; |
| 76 virtual void StartAppLaunch(const std::string& app_id) OVERRIDE; |
| 75 | 77 |
| 76 // Creates WizardController instance. | 78 // Creates WizardController instance. |
| 77 WizardController* CreateWizardController(); | 79 WizardController* CreateWizardController(); |
| 78 | 80 |
| 79 // Called when the first browser window is created, but before it's shown. | 81 // Called when the first browser window is created, but before it's shown. |
| 80 void OnBrowserCreated(); | 82 void OnBrowserCreated(); |
| 81 | 83 |
| 82 // Returns instance of the OOBE WebUI. | 84 // Returns instance of the OOBE WebUI. |
| 83 OobeUI* GetOobeUI() const; | 85 OobeUI* GetOobeUI() const; |
| 84 | 86 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 148 |
| 147 // Default LoginDisplayHost. | 149 // Default LoginDisplayHost. |
| 148 static LoginDisplayHost* default_host_; | 150 static LoginDisplayHost* default_host_; |
| 149 | 151 |
| 150 // Sign in screen controller. | 152 // Sign in screen controller. |
| 151 scoped_ptr<ExistingUserController> sign_in_controller_; | 153 scoped_ptr<ExistingUserController> sign_in_controller_; |
| 152 | 154 |
| 153 // OOBE and some screens (camera, recovery) controller. | 155 // OOBE and some screens (camera, recovery) controller. |
| 154 scoped_ptr<WizardController> wizard_controller_; | 156 scoped_ptr<WizardController> wizard_controller_; |
| 155 | 157 |
| 158 // App launch controller. |
| 159 scoped_ptr<AppLaunchController> app_launch_controller_; |
| 160 |
| 156 // Client for enterprise auto-enrollment check. | 161 // Client for enterprise auto-enrollment check. |
| 157 scoped_ptr<policy::AutoEnrollmentClient> auto_enrollment_client_; | 162 scoped_ptr<policy::AutoEnrollmentClient> auto_enrollment_client_; |
| 158 | 163 |
| 159 // Has ShutdownDisplayHost() already been called? Used to avoid posting our | 164 // Has ShutdownDisplayHost() already been called? Used to avoid posting our |
| 160 // own deletion to the message loop twice if the user logs out while we're | 165 // own deletion to the message loop twice if the user logs out while we're |
| 161 // still in the process of cleaning up after login (http://crbug.com/134463). | 166 // still in the process of cleaning up after login (http://crbug.com/134463). |
| 162 bool shutting_down_; | 167 bool shutting_down_; |
| 163 | 168 |
| 164 // Whether progress bar is shown on the OOBE page. | 169 // Whether progress bar is shown on the OOBE page. |
| 165 bool oobe_progress_bar_visible_; | 170 bool oobe_progress_bar_visible_; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // A focus ring controller to draw focus ring around view for keyboard | 234 // A focus ring controller to draw focus ring around view for keyboard |
| 230 // driven oobe. | 235 // driven oobe. |
| 231 scoped_ptr<FocusRingController> focus_ring_controller_; | 236 scoped_ptr<FocusRingController> focus_ring_controller_; |
| 232 | 237 |
| 233 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); | 238 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); |
| 234 }; | 239 }; |
| 235 | 240 |
| 236 } // namespace chromeos | 241 } // namespace chromeos |
| 237 | 242 |
| 238 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_ | 243 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_ |
| OLD | NEW |