Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: chrome/browser/chromeos/login/ui/login_display_host.h

Issue 1539713002: Move default_host from LoginDisplayHostImpl to LoginDisplayHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Move supervised user changes to a dependent CL Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/login_display_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/ui/login_display_host.h
diff --git a/chrome/browser/chromeos/login/ui/login_display_host.h b/chrome/browser/chromeos/login/ui/login_display_host.h
index d0f06bf6c747a0e194de9ceeef05ff8aff776ace..6c704fceb15f914a3f534d1b9085bc4fb00b49f6 100644
--- a/chrome/browser/chromeos/login/ui/login_display_host.h
+++ b/chrome/browser/chromeos/login/ui/login_display_host.h
@@ -22,6 +22,7 @@ namespace chromeos {
class AppLaunchController;
class AutoEnrollmentController;
class LoginScreenContext;
+class OobeUI;
class WebUILoginView;
class WizardController;
@@ -30,6 +31,9 @@ class WizardController;
// UI implementation (such as LoginDisplay).
class LoginDisplayHost {
public:
+ // Returns the default LoginDisplayHost instance if it has been created.
+ static LoginDisplayHost* default_host() { return default_host_; }
+
virtual ~LoginDisplayHost() {}
// Creates UI implementation specific login display instance (views/WebUI).
@@ -40,6 +44,9 @@ class LoginDisplayHost {
// Returns corresponding native window.
virtual gfx::NativeWindow GetNativeWindow() const = 0;
+ // Returns instance of the OOBE WebUI.
+ virtual OobeUI* GetOobeUI() const = 0;
+
// Returns the current login view.
virtual WebUILoginView* GetWebUILoginView() const = 0;
@@ -97,6 +104,10 @@ class LoginDisplayHost {
// Starts the demo app launch.
virtual void StartDemoAppLaunch() = 0;
+
+ protected:
+ // Default LoginDisplayHost. Child class sets the reference.
+ static LoginDisplayHost* default_host_;
};
} // namespace chromeos
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/login_display_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698