Index: components/mus/ws/event_dispatcher.h |
diff --git a/components/mus/ws/event_dispatcher.h b/components/mus/ws/event_dispatcher.h |
index 2451a3a1cbd32586028f431f148440827b86aa1e..6965cafda935df5540a2eaebb56a5041f08ceefc 100644 |
--- a/components/mus/ws/event_dispatcher.h |
+++ b/components/mus/ws/event_dispatcher.h |
@@ -36,6 +36,10 @@ class EventDispatcher : public ServerWindowObserver { |
void set_surface_id(cc::SurfaceId surface_id) { surface_id_ = surface_id; } |
+ ServerWindow* capture_window() { return capture_window_; } |
+ const ServerWindow* capture_window() const { return capture_window_; } |
+ void SetCaptureWindow(ServerWindow* capture_window); |
sky
2016/01/22 00:55:00
You should document what capturewindow means and w
jonross
2016/01/26 18:38:50
Done.
|
+ |
// Retrieves the ServerWindow of the last mouse move. |
ServerWindow* mouse_cursor_source_window() const { |
return mouse_cursor_source_window_; |
@@ -57,6 +61,8 @@ class EventDispatcher : public ServerWindowObserver { |
void ProcessEvent(mojom::EventPtr event); |
private: |
+ friend class EventDispatcherTest; |
+ |
// Keeps track of state associated with an active pointer. |
struct PointerTarget { |
PointerTarget() |
@@ -135,6 +141,7 @@ class EventDispatcher : public ServerWindowObserver { |
EventDispatcherDelegate* delegate_; |
ServerWindow* root_; |
+ ServerWindow* capture_window_; |
bool mouse_button_down_; |
ServerWindow* mouse_cursor_source_window_; |