From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Tools/WebKitTestRunner/EventSenderProxy.h | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'Tools/WebKitTestRunner/EventSenderProxy.h') diff --git a/Tools/WebKitTestRunner/EventSenderProxy.h b/Tools/WebKitTestRunner/EventSenderProxy.h index db2c58b0d..70d94014c 100644 --- a/Tools/WebKitTestRunner/EventSenderProxy.h +++ b/Tools/WebKitTestRunner/EventSenderProxy.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Apple Inc. All rights reserved. + * Copyright (C) 2011, 2014 Apple Inc. All rights reserved. * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). * * Redistribution and use in source and binary forms, with or without @@ -29,6 +29,7 @@ #include #include +#include #include #if PLATFORM(GTK) @@ -36,7 +37,11 @@ #include #include #elif PLATFORM(EFL) -#include +#include "EWebKit2.h" +#endif + +#if PLATFORM(COCOA) +OBJC_CLASS NSEvent; #endif namespace WTR { @@ -58,8 +63,15 @@ public: void mouseDown(unsigned button, WKEventModifiers); void mouseUp(unsigned button, WKEventModifiers); + void mouseForceDown(); + void mouseForceUp(); + void mouseForceChanged(float); + void mouseForceClick(); + void startAndCancelMouseForceClick(); void mouseMoveTo(double x, double y); void mouseScrollBy(int x, int y); + void mouseScrollByWithWheelAndMomentumPhases(int x, int y, int phase, int momentum); + void swipeGestureWithWheelAndMomentumPhases(int x, int y, int phase, int momentum); void continuousMouseScrollBy(int x, int y, bool paged); void leapForward(int milliseconds); @@ -91,8 +103,17 @@ private: void replaySavedEvents(); #endif + void sendMouseDownToStartPressureEvents(); +#if PLATFORM(COCOA) + enum class PressureChangeDirection { Increasing, Decreasing }; + RetainPtr beginPressureEvent(int stage); + RetainPtr pressureChangeEvent(int stage, PressureChangeDirection); + RetainPtr pressureChangeEvent(int stage, float pressure, PressureChangeDirection); +#endif + #if PLATFORM(GTK) void sendOrQueueEvent(GdkEvent*); + void dispatchEvent(GdkEvent*); GdkEvent* createMouseButtonEvent(GdkEventType, unsigned button, WKEventModifiers); GUniquePtr createTouchEvent(GdkEventType, int id); void sendUpdatedTouchEvents(); @@ -111,7 +132,7 @@ private: double m_clickTime; WKPoint m_clickPosition; WKEventMouseButton m_clickButton; -#if PLATFORM(MAC) +#if PLATFORM(COCOA) int eventNumber; #elif PLATFORM(GTK) Deque m_eventQueue; -- cgit v1.2.1