| 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" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // BaseLoginDisplayHost 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. |
| 55 WebUILoginView* login_view() { return login_view_; } |
| 56 |
| 54 protected: | 57 protected: |
| 55 // content::NotificationObserver implementation. | 58 // content::NotificationObserver implementation. |
| 56 virtual void Observe(int type, | 59 virtual void Observe(int type, |
| 57 const content::NotificationSource& source, | 60 const content::NotificationSource& source, |
| 58 const content::NotificationDetails& details) OVERRIDE; | 61 const content::NotificationDetails& details) OVERRIDE; |
| 59 | 62 |
| 60 private: | 63 private: |
| 61 // Overridden from content::WebContentsObserver: | 64 // Overridden from content::WebContentsObserver: |
| 62 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 65 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
| 63 | 66 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Stored parameters for StartWizard, required to restore in case of crash. | 108 // Stored parameters for StartWizard, required to restore in case of crash. |
| 106 std::string wizard_first_screen_name_; | 109 std::string wizard_first_screen_name_; |
| 107 scoped_ptr<DictionaryValue> wizard_screen_parameters_; | 110 scoped_ptr<DictionaryValue> wizard_screen_parameters_; |
| 108 | 111 |
| 109 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); | 112 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); |
| 110 }; | 113 }; |
| 111 | 114 |
| 112 } // namespace chromeos | 115 } // namespace chromeos |
| 113 | 116 |
| 114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ | 117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
| OLD | NEW |