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

Unified Diff: ui/events/ozone/evdev/tablet_event_converter_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: Drop now unused mutators. 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/tablet_event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/tablet_event_converter_evdev.h b/ui/events/ozone/evdev/tablet_event_converter_evdev.h
index f2bcde961aaa0c3b9f453734a35ffda9e5b2fe3c..6a0f28a8ade3a44e08ecbce4623e1ec546c93121 100644
--- a/ui/events/ozone/evdev/tablet_event_converter_evdev.h
+++ b/ui/events/ozone/evdev/tablet_event_converter_evdev.h
@@ -63,6 +63,13 @@ class EVENTS_OZONE_EVDEV_EXPORT TabletEventConverterEvdev
int x_abs_range_;
int y_abs_range_;
+ float tilt_x_ = 0.0f;
+ float tilt_y_ = 0.0f;
+ float pressure_ = 0.0f;
+ int tilt_x_max_;
+ int tilt_y_max_;
+ int pressure_max_;
+
// BTN_TOOL_ code for the active device
int stylus_ = 0;

Powered by Google App Engine
This is Rietveld 408576698