| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 LoginDisplay::Delegate* delegate) OVERRIDE; | 32 LoginDisplay::Delegate* delegate) OVERRIDE; |
| 33 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 33 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; |
| 34 virtual views::Widget* GetWidget() const OVERRIDE; | 34 virtual views::Widget* GetWidget() const OVERRIDE; |
| 35 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE; | 35 virtual void SetOobeProgressBarVisible(bool visible) OVERRIDE; |
| 36 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE; | 36 virtual void SetShutdownButtonEnabled(bool enable) OVERRIDE; |
| 37 virtual void SetStatusAreaEnabled(bool enable) OVERRIDE; | 37 virtual void SetStatusAreaEnabled(bool enable) OVERRIDE; |
| 38 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; | 38 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; |
| 39 virtual void StartWizard(const std::string& first_screen_name, | 39 virtual void StartWizard(const std::string& first_screen_name, |
| 40 DictionaryValue* screen_parameters) OVERRIDE; | 40 DictionaryValue* screen_parameters) OVERRIDE; |
| 41 virtual void StartSignInScreen() OVERRIDE; | 41 virtual void StartSignInScreen() OVERRIDE; |
| 42 virtual void CloseWindow() OVERRIDE; | |
| 43 | 42 |
| 44 // BaseLoginDisplayHost overrides: | 43 // BaseLoginDisplayHost overrides: |
| 45 virtual WizardController* CreateWizardController() OVERRIDE; | 44 virtual WizardController* CreateWizardController() OVERRIDE; |
| 45 virtual void OnBrowserCreated() OVERRIDE; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // Loads given URL. Creates WebUILoginView if needed. | 48 // Loads given URL. Creates WebUILoginView if needed. |
| 49 void LoadURL(const GURL& url); | 49 void LoadURL(const GURL& url); |
| 50 | 50 |
| 51 OobeUI* GetOobeUI() const; | 51 OobeUI* GetOobeUI() const; |
| 52 | 52 |
| 53 // Container of the screen we are displaying. | 53 // Container of the screen we are displaying. |
| 54 views::Widget* login_window_; | 54 views::Widget* login_window_; |
| 55 | 55 |
| 56 // Container of the view we are displaying. | 56 // Container of the view we are displaying. |
| 57 WebUILoginView* login_view_; | 57 WebUILoginView* login_view_; |
| 58 | 58 |
| 59 // Login display we are using. | 59 // Login display we are using. |
| 60 WebUILoginDisplay* webui_login_display_; | 60 WebUILoginDisplay* webui_login_display_; |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); | 62 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace chromeos | 65 } // namespace chromeos |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
| OLD | NEW |