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

Unified Diff: chrome/browser/chromeos/status/status_area_host.h

Issue 6378008: Add GetScreenMode() to status_area_host.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 9 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 | « chrome/browser/chromeos/status/network_menu_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/status_area_host.h
diff --git a/chrome/browser/chromeos/status/status_area_host.h b/chrome/browser/chromeos/status/status_area_host.h
index 7b7691e9e4444f84537daf4f785b9f63a9211705..e7e81af327366015197a6bab2d7fb43e215af86f 100644
--- a/chrome/browser/chromeos/status/status_area_host.h
+++ b/chrome/browser/chromeos/status/status_area_host.h
@@ -38,11 +38,15 @@ class StatusAreaHost {
// Executes browser command.
virtual void ExecuteBrowserCommand(int id) const = 0;
- // True if status area hosted in browser. Otherwise it's OOBE/login state.
- virtual bool IsBrowserMode() const = 0;
-
- // True if status area hosted in screen locker.
- virtual bool IsScreenLockerMode() const = 0;
+ // The type of screen the host window is on.
+ enum ScreenMode {
+ kLoginMode, // The host is for the OOBE/login screens.
+ kBrowserMode, // The host is for browser.
+ kScreenLockerMode, // The host is for screen locker.
+ };
+
+ // Returns the type of screen.
+ virtual ScreenMode GetScreenMode() const = 0;
protected:
virtual ~StatusAreaHost() {}
« no previous file with comments | « chrome/browser/chromeos/status/network_menu_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698