Index: third_party/WebKit/Source/platform/PlatformMouseEvent.h |
diff --git a/third_party/WebKit/Source/platform/PlatformMouseEvent.h b/third_party/WebKit/Source/platform/PlatformMouseEvent.h |
index 822ac7b13e2a3b89dc4611d263d518fb019927d7..01d5b83c5023bb441215eae1313592f7d5f25072 100644 |
--- a/third_party/WebKit/Source/platform/PlatformMouseEvent.h |
+++ b/third_party/WebKit/Source/platform/PlatformMouseEvent.h |
@@ -27,7 +27,9 @@ |
#define PlatformMouseEvent_h |
#include "platform/PlatformEvent.h" |
+#include "platform/geometry/FloatPoint.h" |
#include "platform/geometry/IntPoint.h" |
+#include "public/platform/WebGestureEvent.h" |
#include "public/platform/WebPointerProperties.h" |
#include "wtf/text/WTFString.h" |
@@ -87,6 +89,27 @@ class PlatformMouseEvent : public PlatformEvent { |
m_pointerProperties.button = button; |
} |
+#if INSIDE_BLINK |
+ PlatformMouseEvent(const WebGestureEvent& gestureEvent, |
+ WebPointerProperties::Button button, |
+ EventType type, |
+ int clickCount, |
+ Modifiers modifiers, |
+ SyntheticEventType synthesized, |
+ double timestamp, |
+ WebPointerProperties::PointerType pointerType = |
+ WebPointerProperties::PointerType::Unknown) |
+ : PlatformMouseEvent(flooredIntPoint(gestureEvent.positionInRootFrame()), |
+ IntPoint(gestureEvent.globalX, gestureEvent.globalY), |
+ button, |
+ type, |
+ clickCount, |
+ modifiers, |
+ synthesized, |
+ timestamp, |
+ pointerType) {} |
+#endif |
+ |
const WebPointerProperties& pointerProperties() const { |
return m_pointerProperties; |
} |