diff -r 6297cdf66332 -r d39add9822e2 webengine/osswebengine/WebKit/s60/webview/WebPointerEventHandler.h --- a/webengine/osswebengine/WebKit/s60/webview/WebPointerEventHandler.h Mon Jan 18 21:20:18 2010 +0200 +++ b/webengine/osswebengine/WebKit/s60/webview/WebPointerEventHandler.h Tue Feb 02 00:56:45 2010 +0200 @@ -20,8 +20,9 @@ #include #include +#include #include "Timer.h" -#include + namespace WebCore { @@ -31,8 +32,9 @@ class WebView; class CActiveSchedulerWait; +class WebGestureInterface; -class WebPointerEventHandler : public CBase, public RT_GestureHelper::MGestureObserver +class WebPointerEventHandler : public CBase { public: static WebPointerEventHandler* NewL(WebView* view); @@ -42,9 +44,7 @@ public: void HandlePointerEventL(const TPointerEvent& aPointerEvent); void HandleHighlightChange(const TPoint &aPoint); - - virtual void HandleGestureL( const RT_GestureHelper::TGestureEvent& aEvent ); - + void HandleGestureEventL(const TStmGestureEvent& aGesture); private: bool checkForEventListener(WebCore::Node* node); @@ -54,14 +54,15 @@ bool isHighlitableElement(TBrCtlDefs::TBrCtlElementType& elType); TBrCtlDefs::TBrCtlElementType highlitableElement(); void buttonDownTimerCB(WebCore::Timer* t); - void handleTouchDownL(const RT_GestureHelper::TGestureEvent& aEvent); - void handleTouchUp(const RT_GestureHelper::TGestureEvent& aEvent); - void handleTapL(const RT_GestureHelper::TGestureEvent& aEvent); - void handleDoubleTap(const RT_GestureHelper::TGestureEvent& aEvent); - void handleMove(const RT_GestureHelper::TGestureEvent& aEvent); + void handleTouchDownL(const TStmGestureEvent& aGesture); + void handleTouchUp(const TStmGestureEvent& aGesture); + void handleTapL(const TStmGestureEvent& aGesture); + void handleDoubleTap(const TStmGestureEvent& aGesture); + void handleMove(const TStmGestureEvent& aGesture); void doTapL(); void updateCursor(const TPoint& pos); void setFocusRing(); + void handlePinchZoomL(const TStmGestureEvent& aGesture); private: WebPointerEventHandler(WebView* view); WebView* m_webview; @@ -78,10 +79,10 @@ TPointerEvent m_currentEvent; WebCore::Timer m_buttonDownTimer; - RT_GestureHelper::CGestureHelper* m_gestureHelper; TPointerEvent m_lastPointerEvent; bool m_ignoreTap; CActiveSchedulerWait* m_waiter; + WebGestureInterface* m_gestureInterface; };