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

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

Issue 1187273004: Pass MotionEvent tilt angles to Blink on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 635734208bdbd258e2eb784b5785f9ed8d2ded3e..29b7ab6d1eca29329b49c34cc63e5414c3f38b93 100644
--- a/ui/events/gesture_detection/motion_event_generic.h
+++ b/ui/events/gesture_detection/motion_event_generic.h
@@ -28,6 +28,12 @@ struct GESTURE_DETECTION_EXPORT PointerProperties {
float touch_major;
float touch_minor;
float orientation;
+ // TODO(e_hakkinen): Remove either tilt and tilt_orientation or tilt_x and
+ // tilt_y.
+ float tilt;
+ float tilt_orientation;
+ float tilt_x;
+ float tilt_y;
// source_device_id is only used on Aura.
int source_device_id;
};
@@ -56,6 +62,12 @@ 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;
+ // TODO(e_hakkinen): Remove either GetTilt and GetTiltOrientation or GetTiltX
+ // and GetTiltY.
+ float GetTilt(size_t pointer_index) const override;
+ float GetTiltOrientation(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;

Powered by Google App Engine
This is Rietveld 408576698