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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_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/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/chromeos/customization_document.h" | 13 #include "chrome/browser/chromeos/customization_document.h" |
14 #include "chrome/browser/chromeos/login/login_display.h" | 14 #include "chrome/browser/chromeos/login/login_display.h" |
15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 class Widget; | 18 class Widget; |
19 } // namespace views | 19 } // namespace views |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
| 23 class AppLaunchController; |
23 class WebUILoginView; | 24 class WebUILoginView; |
24 class WizardController; | 25 class WizardController; |
25 | 26 |
26 // An interface that defines OOBE/login screen host. | 27 // An interface that defines OOBE/login screen host. |
27 // Host encapsulates WebUI window OOBE/login controllers, | 28 // Host encapsulates WebUI window OOBE/login controllers, |
28 // UI implementation (such as LoginDisplay). | 29 // UI implementation (such as LoginDisplay). |
29 class LoginDisplayHost { | 30 class LoginDisplayHost { |
30 public: | 31 public: |
31 virtual ~LoginDisplayHost() {} | 32 virtual ~LoginDisplayHost() {} |
32 | 33 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // One could specify start screen with |first_screen_name|. | 76 // One could specify start screen with |first_screen_name|. |
76 // Takes ownership of |screen_parameters|, which can also be NULL. | 77 // Takes ownership of |screen_parameters|, which can also be NULL. |
77 virtual void StartWizard( | 78 virtual void StartWizard( |
78 const std::string& first_screen_name, | 79 const std::string& first_screen_name, |
79 scoped_ptr<DictionaryValue> screen_parameters) = 0; | 80 scoped_ptr<DictionaryValue> screen_parameters) = 0; |
80 | 81 |
81 // Returns current WizardController, if it exists. | 82 // Returns current WizardController, if it exists. |
82 // Result should not be stored. | 83 // Result should not be stored. |
83 virtual WizardController* GetWizardController() = 0; | 84 virtual WizardController* GetWizardController() = 0; |
84 | 85 |
| 86 // Returns current AppLaunchController, if it exists. |
| 87 // Result should not be stored. |
| 88 virtual AppLaunchController* GetAppLaunchController() = 0; |
| 89 |
85 // Starts screen for adding user into session. | 90 // Starts screen for adding user into session. |
86 // |completion_callback| called before display host shutdown. | 91 // |completion_callback| called before display host shutdown. |
87 // |completion_callback| can be null. | 92 // |completion_callback| can be null. |
88 virtual void StartUserAdding(const base::Closure& completion_callback) = 0; | 93 virtual void StartUserAdding(const base::Closure& completion_callback) = 0; |
89 | 94 |
90 // Starts sign in screen. | 95 // Starts sign in screen. |
91 virtual void StartSignInScreen() = 0; | 96 virtual void StartSignInScreen() = 0; |
92 | 97 |
93 // Resumes a previously started sign in screen. | 98 // Resumes a previously started sign in screen. |
94 virtual void ResumeSignInScreen() = 0; | 99 virtual void ResumeSignInScreen() = 0; |
95 | 100 |
96 // Invoked when system preferences that affect the signin screen have changed. | 101 // Invoked when system preferences that affect the signin screen have changed. |
97 virtual void OnPreferencesChanged() = 0; | 102 virtual void OnPreferencesChanged() = 0; |
98 | 103 |
99 // Initiates authentication network prewarming. | 104 // Initiates authentication network prewarming. |
100 virtual void PrewarmAuthentication() = 0; | 105 virtual void PrewarmAuthentication() = 0; |
101 | 106 |
102 // Starts app launch splash screen. | 107 // Starts app launch splash screen. |
103 virtual void StartAppLaunch(const std::string& app_id) = 0; | 108 virtual void StartAppLaunch(const std::string& app_id) = 0; |
104 }; | 109 }; |
105 | 110 |
106 } // namespace chromeos | 111 } // namespace chromeos |
107 | 112 |
108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ | 113 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ |
OLD | NEW |