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

Unified Diff: ui/events/gesture_detection/motion_event_generic.h

Issue 2860793003: Pass through tilt_x and tilt_y to blink (Closed)
Patch Set: Pass through tilt_x and tilt_y to blink Created 3 years, 7 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/gesture_detection/motion_event_generic.h
diff --git a/ui/events/gesture_detection/motion_event_generic.h b/ui/events/gesture_detection/motion_event_generic.h
index 3a90b8019b2360978b10a23d8a38b7683e4199b6..15487de3563a44075d5bf85787a5f67a46e814d3 100644
--- a/ui/events/gesture_detection/motion_event_generic.h
+++ b/ui/events/gesture_detection/motion_event_generic.h
@@ -36,7 +36,8 @@ struct GESTURE_DETECTION_EXPORT PointerProperties {
float touch_major;
float touch_minor;
float orientation;
- float tilt;
+ float tilt_x;
+ float tilt_y;
// source_device_id is only used on Aura.
int source_device_id;
};
@@ -65,7 +66,8 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
float GetTouchMinor(size_t pointer_index) const override;
float GetOrientation(size_t pointer_index) const override;
float GetPressure(size_t pointer_index) const override;
- float GetTilt(size_t pointer_index) const override;
+ float GetTiltX(size_t pointer_index) const override;
+ float GetTiltY(size_t pointer_index) const override;
ToolType GetToolType(size_t pointer_index) const override;
int GetButtonState() const override;
int GetFlags() const override;
« no previous file with comments | « ui/events/gesture_detection/motion_event_buffer_unittest.cc ('k') | ui/events/gesture_detection/motion_event_generic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698