Index: public/web/WebPointerProperties.h |
diff --git a/public/web/WebPointerProperties.h b/public/web/WebPointerProperties.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..96bdd04e3e26d42acb0bd9855f9d5bba60c32f66 |
--- /dev/null |
+++ b/public/web/WebPointerProperties.h |
@@ -0,0 +1,44 @@ |
+// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WebPointerProperties_h |
+#define WebPointerProperties_h |
+ |
+namespace blink { |
+ |
+// TODO(e_hakkinen): Replace WebTouchEvent with WebPointerEvent, remove |
+// WebTouchEvent and WebTouchPoint and merge this into |
+// WebPointerEvent. |
+class WebPointerProperties { |
+public: |
+ WebPointerProperties() |
+ : pointerId(0) |
+ , width(0.f) |
+ , height(0.f) |
+ , pressure(0.f) |
+ { |
+ } |
+ |
+ // TODO(e_hakkinen): Remove old names once Chromium is updated. |
+ union { |
+ int pointerId; |
+ int id; |
+ }; |
+ union { |
+ float width; |
+ float radiusX; |
+ }; |
+ union { |
+ float height; |
+ float radiusY; |
+ }; |
+ union { |
+ float pressure; |
+ float force; |
+ }; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |