summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-06-20 13:01:08 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-06-20 13:01:08 +0200
commit49233e234e5c787396cadb2cea33b31ae0cd65c1 (patch)
tree5410cb9a8fd53168bb60d62c54b654d86f03c38d /Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.cpp
parentb211c645d8ab690f713515dfdc84d80b11c27d2c (diff)
downloadqtwebkit-49233e234e5c787396cadb2cea33b31ae0cd65c1.tar.gz
Imported WebKit commit 3a8c29f35d00659d2ce7a0ccdfa8304f14e82327 (http://svn.webkit.org/repository/webkit/trunk@120813)
New snapshot with Windows build fixes
Diffstat (limited to 'Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.cpp')
-rw-r--r--Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.cpp b/Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.cpp
index 118373844..4c28b93cf 100644
--- a/Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.cpp
+++ b/Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.cpp
@@ -25,7 +25,7 @@
#include "config.h"
#include "QtPanGestureRecognizer.h"
-#include "QtViewportInteractionEngine.h"
+#include "QtViewportHandler.h"
#include "QtWebPageEventHandler.h"
namespace WebKit {
@@ -38,7 +38,7 @@ QtPanGestureRecognizer::QtPanGestureRecognizer(QtWebPageEventHandler* eventHandl
bool QtPanGestureRecognizer::update(const QTouchEvent::TouchPoint& touchPoint, qint64 eventTimestampMillis)
{
- if (!interactionEngine())
+ if (!viewportHandler())
return false;
m_lastPosition = touchPoint.pos();
@@ -48,7 +48,7 @@ bool QtPanGestureRecognizer::update(const QTouchEvent::TouchPoint& touchPoint, q
case NoGesture:
m_state = GestureRecognitionStarted;
m_firstScreenPosition = touchPoint.scenePos();
- interactionEngine()->cancelScrollAnimation();
+ viewportHandler()->cancelScrollAnimation();
return false;
case GestureRecognitionStarted: {
// To start the gesture, the delta from start in screen coordinates
@@ -58,11 +58,11 @@ bool QtPanGestureRecognizer::update(const QTouchEvent::TouchPoint& touchPoint, q
return false;
m_state = GestureRecognized;
- interactionEngine()->panGestureStarted(touchPoint.pos(), eventTimestampMillis);
+ viewportHandler()->panGestureStarted(touchPoint.pos(), eventTimestampMillis);
return true;
}
case GestureRecognized:
- interactionEngine()->panGestureRequestUpdate(touchPoint.pos(), eventTimestampMillis);
+ viewportHandler()->panGestureRequestUpdate(touchPoint.pos(), eventTimestampMillis);
return true;
default:
ASSERT_NOT_REACHED();
@@ -75,8 +75,8 @@ void QtPanGestureRecognizer::finish(const QTouchEvent::TouchPoint& touchPoint, q
if (m_state == NoGesture)
return;
- ASSERT(interactionEngine());
- interactionEngine()->panGestureEnded(touchPoint.pos(), eventTimestampMillis);
+ ASSERT(viewportHandler());
+ viewportHandler()->panGestureEnded(touchPoint.pos(), eventTimestampMillis);
reset();
}
@@ -85,8 +85,8 @@ void QtPanGestureRecognizer::cancel()
if (m_state == NoGesture)
return;
- interactionEngine()->panGestureEnded(m_lastPosition, m_lastEventTimestampMillis);
- interactionEngine()->panGestureCancelled();
+ viewportHandler()->panGestureEnded(m_lastPosition, m_lastEventTimestampMillis);
+ viewportHandler()->panGestureCancelled();
reset();
}