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

Unified Diff: Source/platform/PlatformTouchPoint.h

Issue 298133003: Expose fractional TouchEvent coordinates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make layout test output stable across platforms Created 6 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
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/platform/Widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformTouchPoint.h
diff --git a/Source/platform/PlatformTouchPoint.h b/Source/platform/PlatformTouchPoint.h
index 0f855f0bcb652a003a34bd93bf2046be10c0ba05..8f6bb0d260a129ff906e8cffe61b19c9f14a8035 100644
--- a/Source/platform/PlatformTouchPoint.h
+++ b/Source/platform/PlatformTouchPoint.h
@@ -20,7 +20,7 @@
#ifndef PlatformTouchPoint_h
#define PlatformTouchPoint_h
-#include "platform/geometry/IntPoint.h"
+#include "platform/geometry/FloatPoint.h"
#include "wtf/Vector.h"
namespace WebCore {
@@ -41,8 +41,6 @@ public:
// This is necessary for us to be able to build synthetic events.
PlatformTouchPoint()
: m_id(0)
- , m_radiusY(0)
- , m_radiusX(0)
, m_rotationAngle(0)
, m_force(0)
{
@@ -50,20 +48,18 @@ public:
unsigned id() const { return m_id; }
State state() const { return m_state; }
- IntPoint screenPos() const { return m_screenPos; }
- IntPoint pos() const { return m_pos; }
- int radiusX() const { return m_radiusX; }
- int radiusY() const { return m_radiusY; }
+ FloatPoint screenPos() const { return m_screenPos; }
+ FloatPoint pos() const { return m_pos; }
+ FloatSize radius() const { return m_radius; }
float rotationAngle() const { return m_rotationAngle; }
float force() const { return m_force; }
protected:
unsigned m_id;
State m_state;
- IntPoint m_screenPos;
- IntPoint m_pos;
- int m_radiusY;
- int m_radiusX;
+ FloatPoint m_screenPos;
+ FloatPoint m_pos;
+ FloatSize m_radius;
float m_rotationAngle;
float m_force;
};
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/platform/Widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698