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/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/chromeos/customization_document.h" | 11 #include "chrome/browser/chromeos/customization_document.h" |
12 #include "chrome/browser/chromeos/login/login_display.h" | 12 #include "chrome/browser/chromeos/login/login_display.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 class Widget; | 16 class Widget; |
17 } // namespace views | 17 } // namespace views |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 | 20 |
21 class WizardController; | 21 class WizardController; |
22 | 22 |
23 // An interface that defines OOBE/login screen host. | 23 // An interface that defines OOBE/login screen host. |
24 // Host encapsulates implementation specific background window (views/WebUI), | 24 // Host encapsulates WebUI window OOBE/login controllers, |
25 // OOBE/login controllers, views/WebUI UI implementation (such as LoginDisplay). | 25 // UI implementation (such as LoginDisplay). |
26 class LoginDisplayHost { | 26 class LoginDisplayHost { |
27 public: | 27 public: |
28 virtual ~LoginDisplayHost() {} | 28 virtual ~LoginDisplayHost() {} |
29 | 29 |
30 // Creates UI implementation specific login display instance (views/WebUI). | 30 // Creates UI implementation specific login display instance (views/WebUI). |
31 // The caller takes ownership of the returned value. | 31 // The caller takes ownership of the returned value. |
32 virtual LoginDisplay* CreateLoginDisplay( | 32 virtual LoginDisplay* CreateLoginDisplay( |
33 LoginDisplay::Delegate* delegate) = 0; | 33 LoginDisplay::Delegate* delegate) = 0; |
34 | 34 |
35 // Returns corresponding native window. | 35 // Returns corresponding native window. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Resumes a previously started sign in screen. | 82 // Resumes a previously started sign in screen. |
83 virtual void ResumeSignInScreen() = 0; | 83 virtual void ResumeSignInScreen() = 0; |
84 | 84 |
85 // Invoked when system preferences that affect the signin screen have changed. | 85 // Invoked when system preferences that affect the signin screen have changed. |
86 virtual void OnPreferencesChanged() = 0; | 86 virtual void OnPreferencesChanged() = 0; |
87 }; | 87 }; |
88 | 88 |
89 } // namespace chromeos | 89 } // namespace chromeos |
90 | 90 |
91 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ | 91 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ |
OLD | NEW |