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

Unified Diff: components/mus/ws/event_dispatcher.h

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync pass the nacl breakage Created 5 years 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: components/mus/ws/event_dispatcher.h
diff --git a/components/mus/ws/event_dispatcher.h b/components/mus/ws/event_dispatcher.h
index bbd2badce05cc8188c60cb9e6f660d5cc5e29568..1ee39735e2e8a0274a1ce8aa2c730acd0478a82a 100644
--- a/components/mus/ws/event_dispatcher.h
+++ b/components/mus/ws/event_dispatcher.h
@@ -33,6 +33,11 @@ class EventDispatcher : public ServerWindowObserver {
void set_surface_id(cc::SurfaceId surface_id) { surface_id_ = surface_id; }
+ // Retrieves the ServerWindow of the last mouse move.
sky 2015/12/01 21:48:00 Your code is setting for any pointer event, not ju
Elliot Glaysher 2015/12/02 20:01:32 Filtered on PointerKind here and in the dispatchin
+ ServerWindow* last_targeted_window() const {
+ return last_pointer_target_window_;
+ }
+
void AddAccelerator(uint32_t id, mojom::EventMatcherPtr event_matcher);
void RemoveAccelerator(uint32_t id);
@@ -91,6 +96,7 @@ class EventDispatcher : public ServerWindowObserver {
EventDispatcherDelegate* delegate_;
ServerWindow* root_;
+ ServerWindow* last_pointer_target_window_;
cc::SurfaceId surface_id_;

Powered by Google App Engine
This is Rietveld 408576698