diff options
Diffstat (limited to 'Tools/WebKitTestRunner/qt/EventSenderProxyQt.cpp')
| -rw-r--r-- | Tools/WebKitTestRunner/qt/EventSenderProxyQt.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tools/WebKitTestRunner/qt/EventSenderProxyQt.cpp b/Tools/WebKitTestRunner/qt/EventSenderProxyQt.cpp index 1420987fb..c91b7af9a 100644 --- a/Tools/WebKitTestRunner/qt/EventSenderProxyQt.cpp +++ b/Tools/WebKitTestRunner/qt/EventSenderProxyQt.cpp @@ -365,6 +365,12 @@ void EventSenderProxy::touchEnd() m_touchActive = false; } +void EventSenderProxy::touchCancel() +{ + sendTouchEvent(QEvent::TouchCancel); + m_touchActive = false; +} + void EventSenderProxy::clearTouchPoints() { m_touchPoints.clear(); @@ -380,6 +386,14 @@ void EventSenderProxy::releaseTouchPoint(int index) m_touchPoints[index].setState(Qt::TouchPointReleased); } +void EventSenderProxy::cancelTouchPoint(int index) +{ + // FIXME: No cancellation state in Qt 5, mapped to release instead. + // PlatformTouchEvent conversion later will map all touch points to + // cancelled. + releaseTouchPoint(index); +} + void EventSenderProxy::sendTouchEvent(QEvent::Type type) { static QTouchDevice* device = 0; |
