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_DOM_LOGIN_DISPLAY_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DOM_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 // DOM-specific implementation of the OOBE/login screen host. | 19 // WebUI-specific implementation of the OOBE/login screen host. Uses |
20 // Uses DOMLoginDisplay as the login screen UI implementation, | 20 // WebUILoginDisplay as the login screen UI implementation, |
21 class DOMLoginDisplayHost : public BaseLoginDisplayHost { | 21 class WebUILoginDisplayHost : public BaseLoginDisplayHost { |
22 public: | 22 public: |
23 explicit DOMLoginDisplayHost(const gfx::Rect& background_bounds); | 23 explicit WebUILoginDisplayHost(const gfx::Rect& background_bounds); |
24 virtual ~DOMLoginDisplayHost(); | 24 virtual ~WebUILoginDisplayHost(); |
25 | 25 |
26 // LoginDisplayHost implementation: | 26 // LoginDisplayHost implementation: |
27 virtual LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) | 27 virtual LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) |
28 const OVERRIDE; | 28 const OVERRIDE; |
29 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 29 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; |
30 virtual void SetOobeProgress(BackgroundView::LoginStep step) OVERRIDE; | 30 virtual void SetOobeProgress(BackgroundView::LoginStep step) OVERRIDE; |
31 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE; | 31 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE; |
32 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE; | 32 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE; |
33 virtual void SetStatusAreaEnabled(bool enable) OVERRIDE; | 33 virtual void SetStatusAreaEnabled(bool enable) OVERRIDE; |
34 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; | 34 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; |
35 virtual void ShowBackground() OVERRIDE; | 35 virtual void ShowBackground() OVERRIDE; |
36 | 36 |
37 private: | 37 private: |
38 DISALLOW_COPY_AND_ASSIGN(DOMLoginDisplayHost); | 38 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace chromeos | 41 } // namespace chromeos |
42 | 42 |
43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_HOST_H_ | 43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
OLD | NEW |