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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/chromeos/login/base_login_display_host.h" | 11 #include "chrome/browser/chromeos/login/login_display_host_impl.h" |
12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
14 | 14 |
15 namespace gfx { | 15 namespace gfx { |
16 class Rect; | 16 class Rect; |
17 } // namespace gfx | 17 } // namespace gfx |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 | 20 |
21 class OobeUI; | 21 class OobeUI; |
22 class WebUILoginDisplay; | 22 class WebUILoginDisplay; |
23 class WebUILoginView; | 23 class WebUILoginView; |
24 | 24 |
25 // WebUI-specific implementation of the OOBE/login screen host. Uses | 25 // WebUI-specific implementation of the OOBE/login screen host. Uses |
26 // WebUILoginDisplay as the login screen UI implementation, | 26 // WebUILoginDisplay as the login screen UI implementation, |
27 class WebUILoginDisplayHost : public BaseLoginDisplayHost, | 27 class WebUILoginDisplayHost : public LoginDisplayHostImpl, |
28 public content::WebContentsObserver { | 28 public content::WebContentsObserver { |
29 public: | 29 public: |
30 explicit WebUILoginDisplayHost(const gfx::Rect& background_bounds); | 30 explicit WebUILoginDisplayHost(const gfx::Rect& background_bounds); |
31 virtual ~WebUILoginDisplayHost(); | 31 virtual ~WebUILoginDisplayHost(); |
32 | 32 |
33 // LoginDisplayHost implementation: | 33 // LoginDisplayHost implementation: |
34 virtual LoginDisplay* CreateLoginDisplay( | 34 virtual LoginDisplay* CreateLoginDisplay( |
35 LoginDisplay::Delegate* delegate) OVERRIDE; | 35 LoginDisplay::Delegate* delegate) OVERRIDE; |
36 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 36 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; |
37 virtual views::Widget* GetWidget() const OVERRIDE; | 37 virtual views::Widget* GetWidget() const OVERRIDE; |
38 virtual void OpenProxySettings() OVERRIDE; | 38 virtual void OpenProxySettings() OVERRIDE; |
39 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE; | 39 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE; |
40 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE; | 40 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE; |
41 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; | 41 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; |
42 virtual void StartWizard(const std::string& first_screen_name, | 42 virtual void StartWizard(const std::string& first_screen_name, |
43 DictionaryValue* screen_parameters) OVERRIDE; | 43 DictionaryValue* screen_parameters) OVERRIDE; |
44 virtual void StartSignInScreen() OVERRIDE; | 44 virtual void StartSignInScreen() OVERRIDE; |
45 virtual void OnPreferencesChanged() OVERRIDE; | 45 virtual void OnPreferencesChanged() OVERRIDE; |
46 | 46 |
47 // BaseLoginDisplayHost overrides: | 47 // LoginDisplayHostImpl overrides: |
48 virtual WizardController* CreateWizardController() OVERRIDE; | 48 virtual WizardController* CreateWizardController() OVERRIDE; |
49 virtual void OnBrowserCreated() OVERRIDE; | 49 virtual void OnBrowserCreated() OVERRIDE; |
50 | 50 |
51 // Returns instance of the OOBE WebUI. | 51 // Returns instance of the OOBE WebUI. |
52 OobeUI* GetOobeUI() const; | 52 OobeUI* GetOobeUI() const; |
53 | 53 |
54 // Returns the current login view. | 54 // Returns the current login view. |
55 WebUILoginView* login_view() { return login_view_; } | 55 WebUILoginView* login_view() { return login_view_; } |
56 | 56 |
57 protected: | 57 protected: |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Old value of the ash::internal::kIgnoreSoloWindowFramePainterPolicy | 137 // Old value of the ash::internal::kIgnoreSoloWindowFramePainterPolicy |
138 // property of the root window for |login_window_|. | 138 // property of the root window for |login_window_|. |
139 bool old_ignore_solo_window_frame_painter_policy_value_; | 139 bool old_ignore_solo_window_frame_painter_policy_value_; |
140 | 140 |
141 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); | 141 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); |
142 }; | 142 }; |
143 | 143 |
144 } // namespace chromeos | 144 } // namespace chromeos |
145 | 145 |
146 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ | 146 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
OLD | NEW |