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

Unified Diff: ash/common/wm_window.h

Issue 2176813002: mash: Migrate ShelfTooltipManager to wm common types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add limited pre-target handler WmWindow interface; Move tooltip manager to common. Created 4 years, 5 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
Index: ash/common/wm_window.h
diff --git a/ash/common/wm_window.h b/ash/common/wm_window.h
index d371caead22e5ad3f4c826a9cfa006a047eb6b7d..7d748a3cb96fb4da2e59eb66791ede8cb0fa39de 100644
--- a/ash/common/wm_window.h
+++ b/ash/common/wm_window.h
@@ -28,6 +28,7 @@ class Transform;
}
namespace ui {
+class EventHandler;
class Layer;
}
@@ -45,7 +46,6 @@ class WmWindowObserver;
enum class WmWindowProperty;
namespace wm {
-class WMEvent;
class WindowState;
}
@@ -284,6 +284,11 @@ class ASH_EXPORT WmWindow {
virtual void RemoveObserver(WmWindowObserver* observer) = 0;
virtual bool HasObserver(const WmWindowObserver* observer) const = 0;
+ // Adds or removes a handler to receive events before this window; the handler
+ // does not recieve events from embedded windows. Does not transfer ownership.
sky 2016/07/26 13:25:20 Also document this only receives events targetted
msw 2016/07/26 17:43:25 Updated w/"targeted at this window", lmk if you ha
+ virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
+ virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
+
protected:
virtual ~WmWindow() {}
};

Powered by Google App Engine
This is Rietveld 408576698