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

Unified Diff: ui/events/event.h

Issue 2301593002: Add POINTER_WHEEL_CHANGED event to mojo. (Closed)
Patch Set: rebase Created 4 years, 3 months 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
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index 5cd3c75aa136ece48be739b263393f0281a4b7e3..b17bc9916e0e6a8b66eb5c1f807ec805c8cb5917 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -459,6 +459,9 @@ class EVENTS_EXPORT MouseEvent : public LocatedEvent {
explicit MouseEvent(const base::NativeEvent& native_event);
// |pointer_event.IsMousePointerEvent()| must be true.
+ // Note: If |pointer_event| is a mouse wheel pointer event, use the
+ // MouseWheelEvent version of this function to convert to a MouseWheelEvent
+ // instead.
explicit MouseEvent(const PointerEvent& pointer_event);
// Create a new MouseEvent based on the provided model.
@@ -591,6 +594,7 @@ class EVENTS_EXPORT MouseWheelEvent : public MouseEvent {
explicit MouseWheelEvent(const base::NativeEvent& native_event);
explicit MouseWheelEvent(const ScrollEvent& scroll_event);
+ explicit MouseWheelEvent(const PointerEvent& pointer_event);
MouseWheelEvent(const MouseEvent& mouse_event, int x_offset, int y_offset);
MouseWheelEvent(const MouseWheelEvent& mouse_wheel_event);
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698