diff options
Diffstat (limited to 'chromium/components/exo/wayland/wayland_pointer_delegate.h')
-rw-r--r-- | chromium/components/exo/wayland/wayland_pointer_delegate.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chromium/components/exo/wayland/wayland_pointer_delegate.h b/chromium/components/exo/wayland/wayland_pointer_delegate.h index 07d53a9794b..55b6578c13f 100644 --- a/chromium/components/exo/wayland/wayland_pointer_delegate.h +++ b/chromium/components/exo/wayland/wayland_pointer_delegate.h @@ -13,13 +13,15 @@ struct wl_resource; namespace exo { namespace wayland { +class SerialTracker; // Pointer delegate class that accepts events for surfaces owned by the same // client as a pointer resource. class WaylandPointerDelegate : public WaylandInputDelegate, public PointerDelegate { public: - explicit WaylandPointerDelegate(wl_resource* pointer_resource); + explicit WaylandPointerDelegate(wl_resource* pointer_resource, + SerialTracker* serial_tracker); // Overridden from PointerDelegate: void OnPointerDestroying(Pointer* pointer) override; @@ -43,12 +45,12 @@ class WaylandPointerDelegate : public WaylandInputDelegate, // The client who own this pointer instance. wl_client* client() const; - // Returns the next serial to use for pointer events. - uint32_t next_serial() const; - // The pointer resource associated with the pointer. wl_resource* const pointer_resource_; + // Owned by Server, which always outlives this delegate. + SerialTracker* const serial_tracker_; + DISALLOW_COPY_AND_ASSIGN(WaylandPointerDelegate); }; |