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

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: Update comment. 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
« no previous file with comments | « ash/common/shelf/shelf_tooltip_manager.cc ('k') | ash/mus/bridge/wm_window_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_window.h
diff --git a/ash/common/wm_window.h b/ash/common/wm_window.h
index d371caead22e5ad3f4c826a9cfa006a047eb6b7d..c40e6d13e86db1ebe56e277aedfc1bb840918516 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,13 @@ 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 targeted at this window, before
+ // this window handles the events itself; the handler does not recieve events
+ // from embedded windows. This only supports windows with internal widgets;
+ // see GetInternalWidget(). Ownership of the handler is not transferred.
+ virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
+ virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
+
protected:
virtual ~WmWindow() {}
};
« no previous file with comments | « ash/common/shelf/shelf_tooltip_manager.cc ('k') | ash/mus/bridge/wm_window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698