OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBUI_LOGIN_DISPLAY_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/browser/chromeos/login/base_login_display_host.h" | 11 #include "chrome/browser/chromeos/login/base_login_display_host.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Rect; | 14 class Rect; |
15 } // namespace gfx | 15 } // namespace gfx |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 class WebUILoginView; | |
20 | |
19 // WebUI-specific implementation of the OOBE/login screen host. Uses | 21 // WebUI-specific implementation of the OOBE/login screen host. Uses |
20 // WebUILoginDisplay as the login screen UI implementation, | 22 // WebUILoginDisplay as the login screen UI implementation, |
21 class WebUILoginDisplayHost : public BaseLoginDisplayHost { | 23 class WebUILoginDisplayHost : public BaseLoginDisplayHost { |
22 public: | 24 public: |
23 explicit WebUILoginDisplayHost(const gfx::Rect& background_bounds); | 25 explicit WebUILoginDisplayHost(const gfx::Rect& background_bounds); |
24 virtual ~WebUILoginDisplayHost(); | 26 virtual ~WebUILoginDisplayHost(); |
25 | 27 |
26 // LoginDisplayHost implementation: | 28 // LoginDisplayHost implementation: |
27 virtual LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) | 29 virtual LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) |
28 const OVERRIDE; | 30 const OVERRIDE; |
29 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 31 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; |
30 virtual void SetOobeProgress(BackgroundView::LoginStep step) OVERRIDE; | 32 virtual void SetOobeProgress(BackgroundView::LoginStep step) OVERRIDE; |
31 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE; | 33 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE; |
32 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE; | 34 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE; |
33 virtual void SetStatusAreaEnabled(bool enable) OVERRIDE; | 35 virtual void SetStatusAreaEnabled(bool enable) OVERRIDE; |
34 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; | 36 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; |
35 virtual void ShowBackground() OVERRIDE; | 37 virtual void ShowBackground() OVERRIDE; |
38 virtual void StartWizard(const std::string& first_screen_name, | |
Nikita (slow)
2011/06/07 16:34:33
OVERRIDE for both?
altimofeev
2011/06/09 09:59:43
Done.
| |
39 const GURL& start_url); | |
40 virtual void StartSignInScreen(); | |
41 | |
42 // BaseLoginDisplayHost overrides: | |
43 virtual WizardController* CreateWizardController(); | |
Nikita (slow)
2011/06/07 16:34:33
OVERRIDE?
altimofeev
2011/06/09 09:59:43
Done.
| |
36 | 44 |
37 private: | 45 private: |
46 // Loads given URL. Creates WebUILoginView if needed. | |
47 void LoadURL(const GURL& url); | |
48 | |
49 // Container of the screen we are displaying. | |
50 views::Widget* login_window_; | |
51 // Container of the view we are displaying. | |
52 WebUILoginView* login_view_; | |
53 | |
38 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); | 54 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); |
39 }; | 55 }; |
40 | 56 |
41 } // namespace chromeos | 57 } // namespace chromeos |
42 | 58 |
43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ | 59 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
OLD | NEW |