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

Unified Diff: ash/wm/common/wm_globals.h

Issue 1943603002: Makes ash/wm/common a library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 years, 7 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 | « ash/wm/common/wm_event.h ('k') | ash/wm/common/wm_globals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/wm_globals.h
diff --git a/ash/wm/common/wm_globals.h b/ash/wm/common/wm_globals.h
index 26eec68343d04fd749c336eafdaa597494dc3659..58f453472de3137145fd8dc29fa2a1207290c595 100644
--- a/ash/wm/common/wm_globals.h
+++ b/ash/wm/common/wm_globals.h
@@ -10,7 +10,7 @@
#include <memory>
#include <vector>
-#include "ash/ash_export.h"
+#include "ash/wm/common/ash_wm_common_export.h"
namespace gfx {
class Rect;
@@ -31,12 +31,13 @@ class WmWindow;
enum class WmUserMetricsAction;
// Used for accessing global state.
-class ASH_EXPORT WmGlobals {
+class ASH_WM_COMMON_EXPORT WmGlobals {
public:
virtual ~WmGlobals() {}
// This is necessary for a handful of places that is difficult to plumb
// through context.
+ static void Set(WmGlobals* instance);
static WmGlobals* Get();
virtual WmWindow* GetFocusedWindow() = 0;
@@ -88,6 +89,9 @@ class ASH_EXPORT WmGlobals {
virtual void AddOverviewModeObserver(WmOverviewModeObserver* observer) = 0;
virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0;
+
+ private:
+ static WmGlobals* instance_;
};
} // namespace wm
« no previous file with comments | « ash/wm/common/wm_event.h ('k') | ash/wm/common/wm_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698