| 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() {}
|
| };
|
|
|