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

Unified Diff: ui/events/ozone/evdev/device_event_dispatcher_evdev.h

Issue 1294523004: ozone: Handle pressure and tilt for stylus devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-pe-details
Patch Set: Address spang@ feedback Created 5 years, 4 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 | « no previous file | ui/events/ozone/evdev/device_event_dispatcher_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/device_event_dispatcher_evdev.h
diff --git a/ui/events/ozone/evdev/device_event_dispatcher_evdev.h b/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
index d70fcbb1a88c726c0d70025c0303a686f4431973..4426be43e13e535cb9bb0006e4af6935ef3d0cb9 100644
--- a/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
+++ b/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
@@ -38,12 +38,20 @@ struct EVENTS_OZONE_EVDEV_EXPORT KeyEventParams {
struct EVENTS_OZONE_EVDEV_EXPORT MouseMoveEventParams {
MouseMoveEventParams(int device_id,
const gfx::PointF& location,
+ EventPointerType pointer_type,
+ float force,
+ float tilt_x,
+ float tilt_y,
base::TimeDelta timestamp);
MouseMoveEventParams(const MouseMoveEventParams& other);
~MouseMoveEventParams();
int device_id;
gfx::PointF location;
+ EventPointerType pointer_type;
+ float force;
+ float tilt_x;
+ float tilt_y;
sadrul 2015/08/20 06:25:50 Is there a reason to not use PointerDetails for th
robert.bradford 2015/08/20 11:12:28 That's a great suggestion and i've implemented it.
base::TimeDelta timestamp;
};
@@ -53,6 +61,10 @@ struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
unsigned int button,
bool down,
bool allow_remap,
+ EventPointerType pointer_type,
+ float force,
+ float tilt_x,
+ float tilt_y,
base::TimeDelta timestamp);
MouseButtonEventParams(const MouseButtonEventParams& other);
~MouseButtonEventParams();
@@ -62,6 +74,10 @@ struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
unsigned int button;
bool down;
bool allow_remap;
+ EventPointerType pointer_type;
+ float force;
+ float tilt_x;
+ float tilt_y;
base::TimeDelta timestamp;
};
« no previous file with comments | « no previous file | ui/events/ozone/evdev/device_event_dispatcher_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698