Chromium Code Reviews| Index: ash/common/wm_window.h |
| diff --git a/ash/common/wm_window.h b/ash/common/wm_window.h |
| index d371caead22e5ad3f4c826a9cfa006a047eb6b7d..7e87f0c107c56f9585c545afab74bf3be8261673 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 associated widgets. |
|
sky
2016/07/26 21:07:20
associated -> internal
And a comment to see GetInt
msw
2016/07/26 21:17:19
Done.
|
| + // Ownership of the handler is not transferred. |
| + virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| + virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| + |
| protected: |
| virtual ~WmWindow() {} |
| }; |