diff -r e1bea15f9a39 -r 79859ed3eea9 webengine/osswebengine/WebKit/s60/webview/WebPointerEventHandler.h --- a/webengine/osswebengine/WebKit/s60/webview/WebPointerEventHandler.h Thu Aug 19 10:58:56 2010 +0300 +++ b/webengine/osswebengine/WebKit/s60/webview/WebPointerEventHandler.h Tue Aug 31 16:17:46 2010 +0300 @@ -20,9 +20,8 @@ #include #include -#include #include "Timer.h" - +#include namespace WebCore { @@ -32,9 +31,8 @@ class WebView; class CActiveSchedulerWait; -class WebGestureInterface; -class WebPointerEventHandler : public CBase +class WebPointerEventHandler : public CBase, public RT_GestureHelper::MGestureObserver { public: static WebPointerEventHandler* NewL(WebView* view); @@ -44,24 +42,25 @@ public: void HandlePointerEventL(const TPointerEvent& aPointerEvent); void HandleHighlightChange(const TPoint &aPoint); - void HandleGestureEventL(const TStmGestureEvent& aGesture); + + virtual void HandleGestureL( const RT_GestureHelper::TGestureEvent& aEvent ); + private: + bool checkForEventListener(WebCore::Node* node); bool canDehighlight(const TPoint &aPoint); void dehighlight(); bool isHighlitableElement(TBrCtlDefs::TBrCtlElementType& elType); TBrCtlDefs::TBrCtlElementType highlitableElement(); - void doTouchDownL(); - 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 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 doTapL(); void updateCursor(const TPoint& pos); - void handlePinchZoomL(const TStmGestureEvent& aGesture); - bool isPluginConsumable(const TStmGestureUid uid); private: WebPointerEventHandler(WebView* view); WebView* m_webview; @@ -76,8 +75,12 @@ TPoint m_highlightPos; WebCore::Node* m_highlightedNode; TPointerEvent m_currentEvent; + WebCore::Timer m_buttonDownTimer; + + RT_GestureHelper::CGestureHelper* m_gestureHelper; + TPointerEvent m_lastPointerEvent; bool m_ignoreTap; - WebGestureInterface* m_gestureInterface; + CActiveSchedulerWait* m_waiter; };