| 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 d92679b0164b06782a7c6bc04e42a6cf83c02345..f8234d74549a32381383734540d90ca07a0dd998 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,
|
| + TimeTicks 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;
|
| }
|
|
|