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

Unified Diff: public/web/WebTouchPoint.h

Issue 1212113007: Add WebPointerProperties type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Do not rename fields, drop WebMouseProperties and WebPointerEvent Created 5 years, 5 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
« public/web/WebPointerProperties.h ('K') | « public/web/WebPointerProperties.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebTouchPoint.h
diff --git a/public/web/WebTouchPoint.h b/public/web/WebTouchPoint.h
index fc0231a5cab40a187d777ce808c233115d16969b..b968ef1f68723d39c22b0516e0da3f761aee07b0 100644
--- a/public/web/WebTouchPoint.h
+++ b/public/web/WebTouchPoint.h
@@ -33,18 +33,18 @@
#include "../platform/WebCommon.h"
#include "../platform/WebFloatPoint.h"
+#include "WebPointerProperties.h"
namespace blink {
-class WebTouchPoint {
+// TODO(e_hakkinen): Replace WebTouchEvent with WebPointerEvent and remove
+// WebTouchEvent and this.
+class WebTouchPoint : public WebPointerProperties {
mustaq 2015/07/07 18:23:10 May be I am missing something, but I don't see how
public:
WebTouchPoint()
- : id(0)
+ : WebPointerProperties()
, state(StateUndefined)
- , radiusX(0)
- , radiusY(0)
, rotationAngle(0)
- , force(0)
{
}
@@ -57,15 +57,13 @@ public:
StateCancelled,
};
- int id;
State state;
+
+ // TODO(e_hakkinen): Move position fields to WebPointerProperties.
WebFloatPoint screenPosition;
WebFloatPoint position;
- float radiusX;
- float radiusY;
float rotationAngle;
- float force;
};
} // namespace blink
« public/web/WebPointerProperties.h ('K') | « public/web/WebPointerProperties.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698