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

Unified Diff: ui/events/gestures/motion_event_aura.h

Issue 494833003: Completed webkit radiusX, radiusY and rotationAngle handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/gestures/motion_event_aura.h
diff --git a/ui/events/gestures/motion_event_aura.h b/ui/events/gestures/motion_event_aura.h
index 4ac3a4c2f6d254aab5a1730924364c0c73c17538..13db253ed818c4d7ababe54e26c199172ff0dac2 100644
--- a/ui/events/gestures/motion_event_aura.h
+++ b/ui/events/gestures/motion_event_aura.h
@@ -34,6 +34,8 @@ class EVENTS_EXPORT MotionEventAura : public MotionEvent {
virtual float GetRawX(size_t pointer_index) const OVERRIDE;
virtual float GetRawY(size_t pointer_index) const OVERRIDE;
virtual float GetTouchMajor(size_t pointer_index) const OVERRIDE;
+ virtual float GetTouchMinor(size_t pointer_index) const OVERRIDE;
+ virtual float GetOrientation(size_t pointer_index) const OVERRIDE;
virtual float GetPressure(size_t pointer_index) const OVERRIDE;
virtual ToolType GetToolType(size_t pointer_index) const OVERRIDE;
virtual int GetButtonState() const OVERRIDE;
@@ -61,7 +63,11 @@ class EVENTS_EXPORT MotionEventAura : public MotionEvent {
int touch_id;
float pressure;
int source_device_id;
+ // TODO(mustaq): Switch radii to diameters below, to be
+ // consistent with relevant event params.
float major_radius;
+ float minor_radius;
+ float orientation;
};
MotionEventAura(

Powered by Google App Engine
This is Rietveld 408576698