Changeset 93407 in webkit
- Timestamp:
- Aug 19, 2011 7:56:24 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 added
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r93402 r93407 1 2011-08-19 Benjamin Poulain <benjamin@webkit.org> 2 3 [Qt][WK2] Add a basic engine to control the content of the viewport 4 https://bugs.webkit.org/show_bug.cgi?id=66383 5 6 Reviewed by Andreas Kling. 7 8 Add ViewportInteractionEngine to handle the content of the viewport. The class make 9 sure the QTouchWebPage stays in the viewport and in the boundaries. 10 11 * UIProcess/API/qt/qdesktopwebview.cpp: 12 (QDesktopWebViewPrivate::loadDidCommit): 13 * UIProcess/API/qt/qdesktopwebview_p.h: 14 * UIProcess/API/qt/qtouchwebpage.cpp: 15 (QTouchWebPage::QTouchWebPage): Set the transform origin to the top left so 16 we can asume the position 0, 0 is always the top left of the page. 17 (QTouchWebPagePrivate::_q_commitScaleChange): Make commitScaleChange a slot 18 in order to completely decouple the ViewportInteractionEngine and the WebKit classes. 19 * UIProcess/API/qt/qtouchwebpage.h: 20 * UIProcess/API/qt/qtouchwebpage_p.h: 21 * UIProcess/API/qt/qtouchwebview.cpp: 22 (QTouchWebViewPrivate::QTouchWebViewPrivate): 23 (QTouchWebViewPrivate::loadDidCommit): 24 (QTouchWebViewPrivate::_q_viewportRectUpdated): Make _q_viewportRectUpdated() a slot 25 for reducing coupling. 26 (QTouchWebViewPrivate::updateViewportConstraints): 27 (QTouchWebViewPrivate::setViewportArguments): 28 (QTouchWebView::geometryChanged): 29 * UIProcess/API/qt/qtouchwebview.h: 30 * UIProcess/API/qt/qtouchwebview_p.h: 31 * UIProcess/qt/ClientImpl.cpp: 32 (qt_wk_didCommitLoadForFrame): 33 * UIProcess/qt/QtGestureRecognizer.cpp: 34 (WebKit::QtGestureRecognizer::QtGestureRecognizer): 35 * UIProcess/qt/QtGestureRecognizer.h: Change the gesture recognizer to talk directly 36 to the ViewportInteractionEngine instead of interacting through TouchViewInterface. 37 * UIProcess/qt/QtPanGestureRecognizer.cpp: 38 (WebKit::QtPanGestureRecognizer::QtPanGestureRecognizer): 39 (WebKit::QtPanGestureRecognizer::recognize): 40 * UIProcess/qt/QtPanGestureRecognizer.h: 41 * UIProcess/qt/QtPinchGestureRecognizer.cpp: 42 (WebKit::QtPinchGestureRecognizer::QtPinchGestureRecognizer): 43 (WebKit::QtPinchGestureRecognizer::recognize): 44 * UIProcess/qt/QtPinchGestureRecognizer.h: 45 * UIProcess/qt/QtWebPageProxy.cpp: 46 (QtWebPageProxy::loadDidCommit): Add the loadCommited callback in order 47 to reset the viewport state when the page change. 48 * UIProcess/qt/QtWebPageProxy.h: 49 * UIProcess/qt/TouchViewInterface.cpp: 50 (WebKit::TouchViewInterface::TouchViewInterface): 51 (WebKit::TouchViewInterface::contentSizeChanged): 52 (WebKit::TouchViewInterface::loadDidCommit): 53 * UIProcess/qt/TouchViewInterface.h: 54 * UIProcess/qt/ViewInterface.h: 55 * UIProcess/qt/ViewportInteractionEngine.cpp: Added. 56 (WebKit::visibleRectInContentCoordinate): 57 (WebKit::contentRectInViewportCoordinate): 58 (WebKit::ViewportUpdateGuard::ViewportUpdateGuard): 59 (WebKit::ViewportUpdateGuard::~ViewportUpdateGuard): 60 (WebKit::ViewportInteractionEngine::ViewportInteractionEngine): 61 (WebKit::ViewportInteractionEngine::reset): 62 (WebKit::ViewportInteractionEngine::setConstraints): 63 (WebKit::ViewportInteractionEngine::panGestureStarted): 64 (WebKit::ViewportInteractionEngine::panGestureRequestScroll): 65 (WebKit::ViewportInteractionEngine::panGestureCancelled): 66 (WebKit::ViewportInteractionEngine::panGestureEnded): 67 (WebKit::ViewportInteractionEngine::pinchGestureStarted): 68 (WebKit::ViewportInteractionEngine::pinchGestureRequestUpdate): 69 (WebKit::ViewportInteractionEngine::pinchGestureEnded): 70 (WebKit::ViewportInteractionEngine::contentGeometryChanged): 71 (WebKit::ViewportInteractionEngine::contentScaleChanged): 72 (WebKit::ViewportInteractionEngine::updateContentIfNeeded): 73 (WebKit::ViewportInteractionEngine::updateContentScaleIfNeeded): 74 (WebKit::ViewportInteractionEngine::updateContentPositionIfNeeded): 75 (WebKit::ViewportInteractionEngine::animateContentPositionToBoundaries): 76 (WebKit::ViewportInteractionEngine::animateContentScaleToBoundaries): 77 (WebKit::ViewportInteractionEngine::scaleContent): 78 * UIProcess/qt/ViewportInteractionEngine.h: Added. 79 (WebKit::ViewportInteractionEngine::Constraints::Constraints): 80 (WebKit::operator==): 81 * UIProcess/qt/qtouchwebpageproxy.cpp: 82 (QTouchWebPageProxy::QTouchWebPageProxy): 83 * UIProcess/qt/qtouchwebpageproxy.h: 84 * WebKit2.pro: 85 1 86 2011-08-19 Lars Knudsen <lars.knudsen@nokia.com> 2 87 -
trunk/Source/WebKit2/UIProcess/API/qt/qdesktopwebview.cpp
r92851 r93407 132 132 } 133 133 134 void QDesktopWebViewPrivate::loadDidCommit() 135 { 136 // Not used for QDesktopWebView. 137 } 138 134 139 void QDesktopWebViewPrivate::loadDidSucceed() 135 140 { -
trunk/Source/WebKit2/UIProcess/API/qt/qdesktopwebview_p.h
r92851 r93407 62 62 virtual void didChangeCursor(const QCursor&); 63 63 virtual void loadDidBegin(); 64 virtual void loadDidCommit(); 64 65 virtual void loadDidSucceed(); 65 66 virtual void loadDidFail(const QWebError&); -
trunk/Source/WebKit2/UIProcess/API/qt/qtouchwebpage.cpp
r92376 r93407 35 35 { 36 36 setFlag(ItemHasContents); 37 38 // We do the transform from the top left so the viewport can assume the position 0, 0 39 // is always where rendering starts. 40 setTransformOrigin(TopLeft); 37 41 } 38 42 … … 146 150 } 147 151 152 void QTouchWebPagePrivate::_q_commitScaleChange() 153 { 154 commitScaleChange(); 155 } 156 148 157 void QTouchWebPagePrivate::commitScaleChange() 149 158 { -
trunk/Source/WebKit2/UIProcess/API/qt/qtouchwebpage.h
r93049 r93407 79 79 80 80 private: 81 Q_PRIVATE_SLOT(d, void _q_commitScaleChange()); 82 81 83 QTouchWebPagePrivate* d; 82 84 friend class QTouchWebViewPrivate; -
trunk/Source/WebKit2/UIProcess/API/qt/qtouchwebpage_p.h
r93049 r93407 40 40 41 41 void setViewportRect(const QRectF&); 42 void _q_commitScaleChange(); 42 43 void commitScaleChange(); 43 44 -
trunk/Source/WebKit2/UIProcess/API/qt/qtouchwebview.cpp
r93049 r93407 34 34 , pageView(new QTouchWebPage(q)) 35 35 , viewInterface(q, pageView.data()) 36 , page(&viewInterface, defaultWKContext()) 36 , interactionEngine(q, pageView.data()) 37 , page(&viewInterface, &interactionEngine, defaultWKContext()) 37 38 { 38 39 QTouchWebPagePrivate* const pageViewPrivate = pageView.data()->d; 39 40 pageViewPrivate->setPage(&page); 41 42 QObject::connect(&interactionEngine, SIGNAL(viewportUpdateRequested()), q, SLOT(_q_viewportRectUpdated())); 43 QObject::connect(&interactionEngine, SIGNAL(commitScaleChange()), pageView.data(), SLOT(_q_commitScaleChange())); 40 44 } 41 45 42 void QTouchWebViewPrivate:: scroll(qreal deltaX, qreal deltaY)46 void QTouchWebViewPrivate::loadDidCommit() 43 47 { 44 pageView->setX(pageView->x() + deltaX); 45 pageView->setY(pageView->y() + deltaY); 46 viewportRectUpdated(); 48 interactionEngine.reset(); 47 49 } 48 50 49 void QTouchWebViewPrivate:: viewportRectUpdated()51 void QTouchWebViewPrivate::_q_viewportRectUpdated() 50 52 { 51 53 QTouchWebPagePrivate* const pageViewPrivate = pageView.data()->d; … … 54 56 } 55 57 56 void QTouchWebViewPrivate::updateViewport State()58 void QTouchWebViewPrivate::updateViewportConstraints() 57 59 { 58 60 QSize availableSize = q->boundingRect().size().toSize(); … … 63 65 WebCore::ViewportAttributes attr = WebCore::computeViewportAttributes(viewportArguments, wkPrefs->layoutFallbackWidth(), wkPrefs->deviceWidth(), wkPrefs->deviceHeight(), wkPrefs->deviceDPI(), availableSize); 64 66 65 viewport.initialScale = attr.initialScale; 66 viewport.minimumScale = attr.minimumScale; 67 viewport.maximumScale = attr.maximumScale; 68 viewport.pixelRatio = attr.devicePixelRatio; 69 viewport.isUserScalable = !!attr.userScalable; 67 ViewportInteractionEngine::Constraints newConstraints; 68 newConstraints.initialScale = attr.initialScale; 69 newConstraints.minimumScale = attr.minimumScale; 70 newConstraints.maximumScale = attr.maximumScale; 71 newConstraints.isUserScalable = !!attr.userScalable; 72 interactionEngine.setConstraints(newConstraints); 70 73 71 74 // Overwrite minimum scale value with fit-to-view value, unless the the content author … … 80 83 { 81 84 viewportArguments = args; 82 updateViewport State();85 updateViewportConstraints(); 83 86 } 84 87 … … 104 107 QSGItem::geometryChanged(newGeometry, oldGeometry); 105 108 if (newGeometry.size() != oldGeometry.size()) { 106 d->updateViewport State();107 d-> viewportRectUpdated();109 d->updateViewportConstraints(); 110 d->_q_viewportRectUpdated(); 108 111 } 109 112 } -
trunk/Source/WebKit2/UIProcess/API/qt/qtouchwebview.h
r92277 r93407 48 48 49 49 private: 50 Q_PRIVATE_SLOT(d, void _q_viewportRectUpdated()); 51 50 52 friend class WebKit::TouchViewInterface; 51 53 QTouchWebViewPrivate *d; -
trunk/Source/WebKit2/UIProcess/API/qt/qtouchwebview_p.h
r92851 r93407 25 25 #include "qtouchwebpageproxy.h" 26 26 #include "TouchViewInterface.h" 27 #include "ViewportInteractionEngine.h" 27 28 28 29 class QTouchWebPage; … … 34 35 QTouchWebViewPrivate(QTouchWebView* q); 35 36 36 void scroll(qreal deltaX, qreal deltaY);37 void viewportRectUpdated();38 void updateViewport State();37 void loadDidCommit(); 38 void _q_viewportRectUpdated(); 39 void updateViewportConstraints(); 39 40 40 41 void setViewportArguments(const WebCore::ViewportArguments& args); 41 42 struct ViewportState {43 ViewportState()44 : initialScale(1.0)45 , minimumScale(0.25)46 , maximumScale(1.8)47 , pixelRatio(1.0)48 , isUserScalable(true)49 { }50 51 qreal initialScale;52 qreal minimumScale;53 qreal maximumScale;54 qreal pixelRatio;55 bool isUserScalable;56 } viewport;57 42 58 43 QTouchWebView* const q; 59 44 QScopedPointer<QTouchWebPage> pageView; 60 45 WebKit::TouchViewInterface viewInterface; 46 ViewportInteractionEngine interactionEngine; 61 47 QTouchWebPageProxy page; 62 48 -
trunk/Source/WebKit2/UIProcess/qt/ClientImpl.cpp
r91840 r93407 96 96 toQtWebPageProxy(clientInfo)->updateNavigationActions(); 97 97 toQtWebPageProxy(clientInfo)->didChangeUrl(qUrl); 98 toQtWebPageProxy(clientInfo)->loadDidCommit(); 98 99 } 99 100 -
trunk/Source/WebKit2/UIProcess/qt/QtGestureRecognizer.cpp
r90838 r93407 29 29 namespace WebKit { 30 30 31 QtGestureRecognizer::QtGestureRecognizer( TouchViewInterface* touchViewInterface)32 : m_ touchViewInterface(touchViewInterface)31 QtGestureRecognizer::QtGestureRecognizer(ViewportInteractionEngine* viewportInteractionEngine) 32 : m_viewportInteractionEngine(viewportInteractionEngine) 33 33 , m_state(NoGesture) 34 34 { 35 ASSERT( touchViewInterface);35 ASSERT(viewportInteractionEngine); 36 36 } 37 37 -
trunk/Source/WebKit2/UIProcess/qt/QtGestureRecognizer.h
r90838 r93407 29 29 namespace WebKit { 30 30 31 class TouchViewInterface;31 class ViewportInteractionEngine; 32 32 33 33 class QtGestureRecognizer { 34 34 protected: 35 QtGestureRecognizer( TouchViewInterface*);35 QtGestureRecognizer(ViewportInteractionEngine*); 36 36 void reset(); 37 37 38 TouchViewInterface* const m_touchViewInterface;38 ViewportInteractionEngine* const m_viewportInteractionEngine; 39 39 enum State { 40 40 NoGesture, -
trunk/Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.cpp
r90838 r93407 24 24 */ 25 25 #include "config.h" 26 26 27 #include "QtPanGestureRecognizer.h" 27 28 28 #include " TouchViewInterface.h"29 #include "ViewportInteractionEngine.h" 29 30 #include <QTouchEvent> 30 31 31 32 namespace WebKit { 32 33 33 QtPanGestureRecognizer::QtPanGestureRecognizer( TouchViewInterface* touchViewInterface)34 : QtGestureRecognizer( touchViewInterface)34 QtPanGestureRecognizer::QtPanGestureRecognizer(ViewportInteractionEngine* interactionEngine) 35 : QtGestureRecognizer(interactionEngine) 35 36 { 36 37 reset(); … … 46 47 if (event->touchPoints().size() > 1) { 47 48 if (m_state == GestureRecognized) 48 m_ touchViewInterface->panGestureCancelled();49 m_viewportInteractionEngine->panGestureCancelled(); 49 50 reset(); 50 51 return false; … … 69 70 70 71 m_state = GestureRecognized; 71 m_ touchViewInterface->panGestureStarted();72 m_viewportInteractionEngine->panGestureStarted(); 72 73 } 73 74 … … 75 76 // Offset sent to the views must be in page view coordinate space. 76 77 QPointF offsetSinceLastEvent(touchPoint.pos() - touchPoint.lastPos()); 77 m_ touchViewInterface->panGestureRequestScroll(offsetSinceLastEvent.x(), offsetSinceLastEvent.y());78 m_viewportInteractionEngine->panGestureRequestUpdate(offsetSinceLastEvent.x(), offsetSinceLastEvent.y()); 78 79 return true; 79 80 } 80 81 case QEvent::TouchEnd: 81 82 if (m_state == GestureRecognized) { 82 m_ touchViewInterface->panGestureEnded();83 m_viewportInteractionEngine->panGestureEnded(); 83 84 reset(); 84 85 return true; -
trunk/Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.h
r90838 r93407 42 42 class QtPanGestureRecognizer : private QtGestureRecognizer { 43 43 public: 44 QtPanGestureRecognizer( TouchViewInterface*);44 QtPanGestureRecognizer(ViewportInteractionEngine*); 45 45 bool recognize(const QTouchEvent*); 46 46 void reset(); -
trunk/Source/WebKit2/UIProcess/qt/QtPinchGestureRecognizer.cpp
r90838 r93407 27 27 #include "QtPinchGestureRecognizer.h" 28 28 29 #include " TouchViewInterface.h"29 #include "ViewportInteractionEngine.h" 30 30 #include <QtCore/QLineF> 31 31 … … 50 50 } 51 51 52 QtPinchGestureRecognizer::QtPinchGestureRecognizer( TouchViewInterface* touchViewInterface)53 : QtGestureRecognizer( touchViewInterface)52 QtPinchGestureRecognizer::QtPinchGestureRecognizer(ViewportInteractionEngine* interactionEngine) 53 : QtGestureRecognizer(interactionEngine) 54 54 { 55 55 reset(); … … 61 61 if (touchPoints.size() < 2) { 62 62 if (m_state == GestureRecognized) 63 m_ touchViewInterface->pinchGestureEnded();63 m_viewportInteractionEngine->pinchGestureEnded(); 64 64 reset(); 65 65 return false; … … 97 97 return false; 98 98 m_state = GestureRecognized; 99 m_ touchViewInterface->pinchGestureStarted();99 m_viewportInteractionEngine->pinchGestureStarted(); 100 100 101 101 // We reset the initial position to the previous position in order to avoid the jump caused … … 111 111 const qreal totalScaleFactor = currentSpanDistance / initialSpanDistance; 112 112 const QPointF touchCenterInPageViewCoordinate = computeTouchCenter(point1, point2); 113 m_ touchViewInterface->pinchGestureRequestUpdate(touchCenterInPageViewCoordinate, totalScaleFactor);113 m_viewportInteractionEngine->pinchGestureRequestUpdate(touchCenterInPageViewCoordinate, totalScaleFactor); 114 114 return true; 115 115 break; … … 118 118 case QEvent::TouchEnd: 119 119 if (m_state == GestureRecognized) { 120 m_ touchViewInterface->pinchGestureEnded();120 m_viewportInteractionEngine->pinchGestureEnded(); 121 121 reset(); 122 122 return true; -
trunk/Source/WebKit2/UIProcess/qt/QtPinchGestureRecognizer.h
r90838 r93407 39 39 namespace WebKit { 40 40 41 class TouchViewInterface;42 43 41 class QtPinchGestureRecognizer : private QtGestureRecognizer { 44 42 public: … … 53 51 }; 54 52 55 QtPinchGestureRecognizer( TouchViewInterface*);53 QtPinchGestureRecognizer(ViewportInteractionEngine*); 56 54 bool recognize(const QTouchEvent*); 57 55 void reset(); -
trunk/Source/WebKit2/UIProcess/qt/QtWebPageProxy.cpp
r93402 r93407 421 421 } 422 422 423 void QtWebPageProxy::loadDidCommit() 424 { 425 m_viewInterface->loadDidCommit(); 426 } 427 423 428 void QtWebPageProxy::loadDidSucceed() 424 429 { -
trunk/Source/WebKit2/UIProcess/qt/QtWebPageProxy.h
r93402 r93407 134 134 135 135 void loadDidBegin(); 136 void loadDidCommit(); 136 137 void loadDidSucceed(); 137 138 void loadDidFail(const QWebError&); -
trunk/Source/WebKit2/UIProcess/qt/TouchViewInterface.cpp
r92851 r93407 32 32 : m_viewportView(viewportView) 33 33 , m_pageView(pageView) 34 , m_pinchStartScale(1.f)35 34 { 36 35 Q_ASSERT(m_viewportView); 37 36 Q_ASSERT(m_pageView); 38 }39 40 void TouchViewInterface::panGestureStarted()41 {42 // FIXME: suspend the Web engine (stop animated GIF, etc).43 // FIXME: initialize physics for panning (stop animation, etc).44 }45 46 void TouchViewInterface::panGestureRequestScroll(qreal deltaX, qreal deltaY)47 {48 // Translate the delta from page to viewport coordinates.49 QPointF itemPositionInItemCoords = m_pageView->mapFromItem(m_pageView->parentItem(), m_pageView->pos());50 QPointF destInViewportCoords = m_viewportView->mapFromItem(m_pageView, itemPositionInItemCoords + QPointF(deltaX, deltaY));51 QPointF offsetInViewportCoords = destInViewportCoords - m_viewportView->mapFromItem(m_pageView->parentItem(), m_pageView->pos());52 m_viewportView->d->scroll(offsetInViewportCoords.x(), offsetInViewportCoords.y());53 }54 55 void TouchViewInterface::panGestureEnded()56 {57 // FIXME: trigger physics engine for animation (the Web engine should be resumed after the animation.)58 }59 60 void TouchViewInterface::panGestureCancelled()61 {62 // FIXME: reset physics.63 // FIXME: resume the Web engine.64 }65 66 void TouchViewInterface::pinchGestureStarted()67 {68 // FIXME: suspend the engine.69 m_pinchStartScale = m_pageView->scale();70 }71 72 void TouchViewInterface::pinchGestureRequestUpdate(const QPointF& pinchCenterInPageViewCoordinate, qreal totalScaleFactor)73 {74 // FIXME: it is a more complicated than that:75 // -the scale should be done centered on the pinch center.76 // -changes of the center position should move the page even if the zoom factor77 // does not change. Both the zoom and the panning should be handled through the physics engine.78 const qreal scale = m_pinchStartScale * totalScaleFactor;79 QPointF oldPinchCenterOnParent = m_pageView->mapToItem(m_pageView->parentItem(), pinchCenterInPageViewCoordinate);80 m_pageView->setScale(scale);81 QPointF newPinchCenterOnParent = m_pageView->mapToItem(m_pageView->parentItem(), pinchCenterInPageViewCoordinate);82 m_pageView->setPos(m_pageView->pos() - (newPinchCenterOnParent - oldPinchCenterOnParent));83 }84 85 void TouchViewInterface::pinchGestureEnded()86 {87 // FIXME: commit scale with the scale value in the valid range in order to get new tiles.88 // FIXME: animate the back zoom in the valid range.89 // FIXME: resume the engine after the animation.90 m_pageView->d->commitScaleChange();91 m_viewportView->d->viewportRectUpdated();92 37 } 93 38 … … 112 57 void TouchViewInterface::contentSizeChanged(const QSize& newSize) 113 58 { 114 // FIXME: the viewport should take care of:115 // -resize the page116 // -change the zoom level if needed117 // -move the page back in viewport boundaries if needed118 // -update the viewport rect119 59 m_pageView->setWidth(newSize.width()); 120 60 m_pageView->setHeight(newSize.height()); 121 m_viewportView->d-> viewportRectUpdated();61 m_viewportView->d->updateViewportConstraints(); 122 62 } 123 63 … … 179 119 } 180 120 121 void TouchViewInterface::loadDidCommit() 122 { 123 m_viewportView->d->loadDidCommit(); 124 } 125 181 126 void TouchViewInterface::loadDidSucceed() 182 127 { -
trunk/Source/WebKit2/UIProcess/qt/TouchViewInterface.h
r92851 r93407 41 41 TouchViewInterface(QTouchWebView* viewportView, QTouchWebPage* pageView); 42 42 43 void panGestureStarted();44 void panGestureRequestScroll(qreal deltaX, qreal deltaY);45 void panGestureEnded();46 void panGestureCancelled();47 48 void pinchGestureStarted();49 void pinchGestureRequestUpdate(const QPointF&, qreal);50 void pinchGestureEnded();51 52 43 SGAgent* sceneGraphAgent() const; 53 44 … … 74 65 virtual void didChangeCursor(const QCursor&); 75 66 virtual void loadDidBegin(); 67 virtual void loadDidCommit(); 76 68 virtual void loadDidSucceed(); 77 69 virtual void loadDidFail(const QWebError&); … … 87 79 QTouchWebView* const m_viewportView; 88 80 QTouchWebPage* const m_pageView; 89 90 qreal m_pinchStartScale;91 81 }; 92 82 -
trunk/Source/WebKit2/UIProcess/qt/ViewInterface.h
r92851 r93407 68 68 virtual void didChangeCursor(const QCursor&) = 0; 69 69 virtual void loadDidBegin() = 0; 70 virtual void loadDidCommit() = 0; 70 71 virtual void loadDidSucceed() = 0; 71 72 virtual void loadDidFail(const QWebError&) = 0; -
trunk/Source/WebKit2/UIProcess/qt/qtouchwebpageproxy.cpp
r92851 r93407 28 28 using namespace WebCore; 29 29 30 QTouchWebPageProxy::QTouchWebPageProxy(TouchViewInterface* viewInterface, QWKContext* context, WKPageGroupRef pageGroupRef)30 QTouchWebPageProxy::QTouchWebPageProxy(TouchViewInterface* viewInterface, ViewportInteractionEngine* viewportInteractionEngine, QWKContext* context, WKPageGroupRef pageGroupRef) 31 31 : QtWebPageProxy(viewInterface, context, pageGroupRef) 32 , m_panGestureRecognizer(view Interface)33 , m_pinchGestureRecognizer(view Interface)32 , m_panGestureRecognizer(viewportInteractionEngine) 33 , m_pinchGestureRecognizer(viewportInteractionEngine) 34 34 { 35 35 init(); -
trunk/Source/WebKit2/UIProcess/qt/qtouchwebpageproxy.h
r92851 r93407 31 31 #include <wtf/PassOwnPtr.h> 32 32 33 namespace WebKit { 34 class ViewportInteractionEngine; 35 } 36 33 37 using namespace WebKit; 34 38 … … 36 40 { 37 41 public: 38 QTouchWebPageProxy(TouchViewInterface*, QWKContext*, WKPageGroupRef = 0);42 QTouchWebPageProxy(TouchViewInterface*, ViewportInteractionEngine*, QWKContext*, WKPageGroupRef = 0); 39 43 40 44 virtual bool handleEvent(QEvent*); -
trunk/Source/WebKit2/WebKit2.pro
r92376 r93407 253 253 UIProcess/qt/SGTileNode.h \ 254 254 UIProcess/qt/ViewInterface.h \ 255 UIProcess/qt/ViewportInteractionEngine.h \ 255 256 UIProcess/qt/WebUndoCommandQt.h \ 256 257 UIProcess/qt/WebContextMenuProxyQt.h \ … … 484 485 UIProcess/qt/TiledDrawingAreaTileQt.cpp \ 485 486 UIProcess/qt/TextCheckerQt.cpp \ 487 UIProcess/qt/ViewportInteractionEngine.cpp \ 486 488 UIProcess/qt/WebContextMenuProxyQt.cpp \ 487 489 UIProcess/qt/WebContextQt.cpp \
Note: See TracChangeset
for help on using the changeset viewer.