| 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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/callback_list.h" | 11 #include "base/callback_list.h" |
| 12 #include "chrome/browser/chromeos/customization/customization_document.h" | 12 #include "chrome/browser/chromeos/customization/customization_document.h" |
| 13 #include "chrome/browser/chromeos/login/oobe_screen.h" |
| 13 #include "chrome/browser/chromeos/login/ui/login_display.h" | 14 #include "chrome/browser/chromeos/login/ui/login_display.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
| 15 | 16 |
| 16 namespace chromeos { | 17 namespace chromeos { |
| 17 | 18 |
| 18 class AppLaunchController; | 19 class AppLaunchController; |
| 19 class AutoEnrollmentController; | 20 class AutoEnrollmentController; |
| 20 class LoginScreenContext; | 21 class LoginScreenContext; |
| 21 class OobeUI; | 22 class OobeUI; |
| 22 class WebUILoginView; | 23 class WebUILoginView; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual void OpenProxySettings() = 0; | 61 virtual void OpenProxySettings() = 0; |
| 61 | 62 |
| 62 // Toggles status area visibility. | 63 // Toggles status area visibility. |
| 63 virtual void SetStatusAreaVisible(bool visible) = 0; | 64 virtual void SetStatusAreaVisible(bool visible) = 0; |
| 64 | 65 |
| 65 // Gets the auto-enrollment client. | 66 // Gets the auto-enrollment client. |
| 66 virtual AutoEnrollmentController* GetAutoEnrollmentController() = 0; | 67 virtual AutoEnrollmentController* GetAutoEnrollmentController() = 0; |
| 67 | 68 |
| 68 // Starts out-of-box-experience flow or shows other screen handled by | 69 // Starts out-of-box-experience flow or shows other screen handled by |
| 69 // Wizard controller i.e. camera, recovery. | 70 // Wizard controller i.e. camera, recovery. |
| 70 // One could specify start screen with |first_screen_name|. | 71 // One could specify start screen with |first_screen_id|. |
| 71 virtual void StartWizard(const std::string& first_screen_name) = 0; | 72 virtual void StartWizard(OobeScreen first_screen_id) = 0; |
| 72 | 73 |
| 73 // Returns current WizardController, if it exists. | 74 // Returns current WizardController, if it exists. |
| 74 // Result should not be stored. | 75 // Result should not be stored. |
| 75 virtual WizardController* GetWizardController() = 0; | 76 virtual WizardController* GetWizardController() = 0; |
| 76 | 77 |
| 77 // Returns current AppLaunchController, if it exists. | 78 // Returns current AppLaunchController, if it exists. |
| 78 // Result should not be stored. | 79 // Result should not be stored. |
| 79 virtual AppLaunchController* GetAppLaunchController() = 0; | 80 virtual AppLaunchController* GetAppLaunchController() = 0; |
| 80 | 81 |
| 81 // Starts screen for adding user into session. | 82 // Starts screen for adding user into session. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 105 virtual void StartDemoAppLaunch() = 0; | 106 virtual void StartDemoAppLaunch() = 0; |
| 106 | 107 |
| 107 protected: | 108 protected: |
| 108 // Default LoginDisplayHost. Child class sets the reference. | 109 // Default LoginDisplayHost. Child class sets the reference. |
| 109 static LoginDisplayHost* default_host_; | 110 static LoginDisplayHost* default_host_; |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace chromeos | 113 } // namespace chromeos |
| 113 | 114 |
| 114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_ | 115 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_ |
| OLD | NEW |