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

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

Issue 1907863002: Converts DockedWindowLayoutManager to common ash/wm types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 8 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_activation_observer.h ('k') | ash/wm/common/wm_root_window_controller.h » ('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 28823ef7a353b1fa32000dd0ab02e00a2b0a3bb0..a80c1e9704f61e111632693bd79810a5690ef6a4 100644
--- a/ash/wm/common/wm_globals.h
+++ b/ash/wm/common/wm_globals.h
@@ -18,6 +18,7 @@ class Rect;
namespace ash {
namespace wm {
+class WmActivationObserver;
class WmWindow;
// Used for accessing global state.
@@ -29,6 +30,7 @@ class ASH_EXPORT WmGlobals {
// through context.
static WmGlobals* Get();
+ virtual WmWindow* GetFocusedWindow() = 0;
virtual WmWindow* GetActiveWindow() = 0;
// Returns the root window for the specified display.
@@ -52,6 +54,9 @@ class ASH_EXPORT WmGlobals {
virtual void UnlockCursor() = 0;
virtual std::vector<WmWindow*> GetAllRootWindows() = 0;
+
+ virtual void AddActivationObserver(WmActivationObserver* observer) = 0;
+ virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0;
};
} // namespace wm
« no previous file with comments | « ash/wm/common/wm_activation_observer.h ('k') | ash/wm/common/wm_root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698