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

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

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
Index: ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
diff --git a/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc b/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
index 47725bd24cfc26204b0c4f8e8292e2cdbae26a08..9c48b4c6b1011a6f81d5cab8f33e670f939befc9 100644
--- a/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
+++ b/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
@@ -25,9 +25,18 @@ KeyEventParams::~KeyEventParams() {
MouseMoveEventParams::MouseMoveEventParams(int device_id,
const gfx::PointF& location,
+ EventPointerType pointer_type,
+ float force,
+ float tilt_x,
+ float tilt_y,
base::TimeDelta timestamp)
- : device_id(device_id), location(location), timestamp(timestamp) {
-}
+ : device_id(device_id),
+ location(location),
+ pointer_type(pointer_type),
+ force(force),
+ tilt_x(tilt_x),
+ tilt_y(tilt_y),
+ timestamp(timestamp) {}
MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) =
default;
@@ -40,14 +49,21 @@ MouseButtonEventParams::MouseButtonEventParams(int device_id,
unsigned int button,
bool down,
bool allow_remap,
+ EventPointerType pointer_type,
+ float force,
+ float tilt_x,
+ float tilt_y,
base::TimeDelta timestamp)
: device_id(device_id),
location(location),
button(button),
down(down),
allow_remap(allow_remap),
- timestamp(timestamp) {
-}
+ pointer_type(pointer_type),
+ force(force),
+ tilt_x(tilt_x),
+ tilt_y(tilt_y),
+ timestamp(timestamp) {}
MouseButtonEventParams::MouseButtonEventParams(
const MouseButtonEventParams& other) = default;

Powered by Google App Engine
This is Rietveld 408576698