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 c2e0562a591af58f8832b5210f0171b9b3f16dbf..487429ba64f42466e94047d6e2e0187445d36193 100644 |
--- a/ui/events/gesture_detection/motion_event.h |
+++ b/ui/events/gesture_detection/motion_event.h |
@@ -58,6 +58,8 @@ class GESTURE_DETECTION_EXPORT MotionEvent { |
virtual float GetRawX(size_t pointer_index) const = 0; |
virtual float GetRawY(size_t pointer_index) const = 0; |
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 GetPressure(size_t pointer_index) const = 0; |
virtual ToolType GetToolType(size_t pointer_index) const = 0; |
virtual int GetButtonState() const = 0; |
@@ -68,6 +70,10 @@ class GESTURE_DETECTION_EXPORT MotionEvent { |
virtual base::TimeTicks GetHistoricalEventTime(size_t historical_index) const; |
virtual float GetHistoricalTouchMajor(size_t pointer_index, |
size_t historical_index) const; |
+ virtual float GetHistoricalTouchMinor(size_t pointer_index, |
+ size_t historical_index) const; |
jdduke (slow)
2014/08/27 18:10:40
Where are these historical values used? I'd prefer
mustaq
2014/08/27 20:51:08
We have one "real" reference to GetHistoricalTouch
jdduke (slow)
2014/08/27 20:53:54
We can add to the interface if/when we need it, le
mustaq
2014/08/28 14:08:37
Makes sense since we are planning to nuke GetHisto
|
+ virtual float GetHistoricalOrientation(size_t pointer_index, |
+ size_t historical_index) const; |
virtual float GetHistoricalX(size_t pointer_index, |
size_t historical_index) const; |
virtual float GetHistoricalY(size_t pointer_index, |
@@ -84,6 +90,8 @@ class GESTURE_DETECTION_EXPORT MotionEvent { |
float GetRawOffsetX() const { return GetRawX() - GetX(); } |
float GetRawOffsetY() const { return GetRawY() - GetY(); } |
float GetTouchMajor() const { return GetTouchMajor(0); } |
+ float GetTouchMinor() const { return GetTouchMinor(0); } |
+ float GetOrientation() const { return GetOrientation(0); } |
float GetPressure() const { return GetPressure(0); } |
ToolType GetToolType() const { return GetToolType(0); } |