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

Unified Diff: third_party/WebKit/Source/platform/PlatformMouseEvent.h

Issue 2539283002: Remove PlatformGestureEvent in favour of using WebGestureEvent (Closed)
Patch Set: Add missing copyright on new file Created 4 years 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
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;
}
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformGestureEvent.h ('k') | third_party/WebKit/Source/platform/WebGestureEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698