summaryrefslogtreecommitdiff
path: root/Source/WebKit2/Shared/gtk/NativeWebTouchEventGtk.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/Shared/gtk/NativeWebTouchEventGtk.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebKit2/Shared/gtk/NativeWebTouchEventGtk.cpp')
-rw-r--r--Source/WebKit2/Shared/gtk/NativeWebTouchEventGtk.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/WebKit2/Shared/gtk/NativeWebTouchEventGtk.cpp b/Source/WebKit2/Shared/gtk/NativeWebTouchEventGtk.cpp
index b2cd4a536..5ec476b2d 100644
--- a/Source/WebKit2/Shared/gtk/NativeWebTouchEventGtk.cpp
+++ b/Source/WebKit2/Shared/gtk/NativeWebTouchEventGtk.cpp
@@ -26,23 +26,25 @@
#include "config.h"
#include "NativeWebTouchEvent.h"
+#if ENABLE(TOUCH_EVENTS)
+
#include "WebEventFactory.h"
#include <gdk/gdk.h>
namespace WebKit {
-NativeWebTouchEvent::NativeWebTouchEvent(GdkEvent* event, WebCore::GtkTouchContextHelper& context)
- : WebTouchEvent(WebEventFactory::createWebTouchEvent(event, context))
+NativeWebTouchEvent::NativeWebTouchEvent(GdkEvent* event, Vector<WebPlatformTouchPoint>&& touchPoints)
+ : WebTouchEvent(WebEventFactory::createWebTouchEvent(event, WTFMove(touchPoints)))
, m_nativeEvent(gdk_event_copy(event))
- , m_touchContext(context)
{
}
NativeWebTouchEvent::NativeWebTouchEvent(const NativeWebTouchEvent& event)
- : WebTouchEvent(WebEventFactory::createWebTouchEvent(event.nativeEvent(), event.touchContext()))
+ : WebTouchEvent(WebEventFactory::createWebTouchEvent(event.nativeEvent(), Vector<WebPlatformTouchPoint>(event.touchPoints())))
, m_nativeEvent(gdk_event_copy(event.nativeEvent()))
- , m_touchContext(event.touchContext())
{
}
} // namespace WebKit
+
+#endif // ENABLE(TOUCH_EVENTS)