| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_VIEWS_LOGIN_DISPLAY_HOST_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_VIEWS_LOGIN_DISPLAY_HOST_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 #include "chrome/browser/chromeos/login/background_view.h" | |
| 12 #include "chrome/browser/chromeos/login/base_login_display_host.h" | |
| 13 #include "ui/gfx/rect.h" | |
| 14 | |
| 15 namespace chromeos { | |
| 16 | |
| 17 class ViewsOobeDisplay; | |
| 18 | |
| 19 // Views-specific implementation of the OOBE/login screen host. | |
| 20 // Uses ViewsLoginDisplay as the login screen UI implementation, | |
| 21 // BackgroundView as the background UI implementation. | |
| 22 // In its current implementation BackgroundView encapsulates StatusAreaView. | |
| 23 class ViewsLoginDisplayHost : public chromeos::BaseLoginDisplayHost { | |
| 24 public: | |
| 25 explicit ViewsLoginDisplayHost(const gfx::Rect& background_bounds); | |
| 26 virtual ~ViewsLoginDisplayHost(); | |
| 27 | |
| 28 // LoginDisplayHost implementation: | |
| 29 virtual LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate); | |
| 30 virtual gfx::NativeWindow GetNativeWindow() const; | |
| 31 virtual void SetOobeProgress(BackgroundView::LoginStep step); | |
| 32 virtual void SetOobeProgressBarVisible(bool visible); | |
| 33 virtual void SetShutdownButtonEnabled(bool enable); | |
| 34 virtual void SetStatusAreaEnabled(bool enable); | |
| 35 virtual void SetStatusAreaVisible(bool visible); | |
| 36 virtual void ShowBackground(); | |
| 37 virtual void StartSignInScreen(); | |
| 38 | |
| 39 // BaseLoginDisplayHost implementation: | |
| 40 virtual WizardController* CreateWizardController() OVERRIDE; | |
| 41 | |
| 42 private: | |
| 43 // Background view/window. | |
| 44 BackgroundView* background_view_; | |
| 45 views::Widget* background_window_; | |
| 46 | |
| 47 // Keeps views based OobeDisplay implementation. | |
| 48 scoped_ptr<ViewsOobeDisplay> oobe_display_; | |
| 49 | |
| 50 DISALLOW_COPY_AND_ASSIGN(ViewsLoginDisplayHost); | |
| 51 }; | |
| 52 | |
| 53 } // namespace chromeos | |
| 54 | |
| 55 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VIEWS_LOGIN_DISPLAY_HOST_H_ | |
| OLD | NEW |