Chromium Code Reviews| Index: ui/events/gesture_detection/motion_event.h |
| diff --git a/ui/events/gesture_detection/motion_event.h b/ui/events/gesture_detection/motion_event.h |
| index 560afcbd044c20155ed281e7762f33ddbba77bb7..643f71f10a955de828314c4fedde20cc22b55da9 100644 |
| --- a/ui/events/gesture_detection/motion_event.h |
| +++ b/ui/events/gesture_detection/motion_event.h |
| @@ -60,6 +60,7 @@ class GESTURE_DETECTION_EXPORT MotionEvent { |
| virtual float GetTouchMajor(size_t pointer_index) const = 0; |
| virtual float GetTouchMinor(size_t pointer_index) const = 0; |
| virtual float GetOrientation(size_t pointer_index) const = 0; |
| + virtual float GetTilt(size_t pointer_index) const = 0; |
| virtual float GetPressure(size_t pointer_index) const = 0; |
| virtual ToolType GetToolType(size_t pointer_index) const = 0; |
| virtual int GetButtonState() const = 0; |
| @@ -94,6 +95,8 @@ class GESTURE_DETECTION_EXPORT MotionEvent { |
| // radians. The return value lies in [-PI/2, PI/2]. |
| float GetOrientation() const { return GetOrientation(0); } |
| + float GetTilt() const { return GetTilt(0); } |
|
jdduke (slow)
2014/11/26 18:13:29
This property probably deserves a comment as the A
d.pikalov
2014/11/28 13:55:12
Done.
|
| + |
| float GetPressure() const { return GetPressure(0); } |
| ToolType GetToolType() const { return GetToolType(0); } |