webengine/osswebengine/WebKit/s60/webview/WebPageScrollHandler.h
changeset 42 d39add9822e2
parent 13 10e98eab6f85
child 58 220a17280356
child 65 5bfc169077b2
equal deleted inserted replaced
38:6297cdf66332 42:d39add9822e2
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include <coedef.h>
    25 #include <coedef.h>
    26 #include <w32std.h>
    26 #include <w32std.h>
    27 #include <rt_gesturehelper.h>
    27 #include <stmgestureinterface.h>
    28 #include "WebScrollingDecelerator.h"
    28 #include "WebScrollingDecelerator.h"
    29 
    29 
    30 
    30 
    31 // MACROS
    31 // MACROS
    32 
    32 
   178 
   178 
   179         //callbacks
   179         //callbacks
   180         static int pageOverviewScrollCallback( TAny* aPtr );
   180         static int pageOverviewScrollCallback( TAny* aPtr );
   181         //static int handleScrollTimerEventCallback( TAny* ptr);
   181         //static int handleScrollTimerEventCallback( TAny* ptr);
   182         void scrollPageOverviewGH();
   182         void scrollPageOverviewGH();
   183         void handleScrollingGH(const RT_GestureHelper::TGestureEvent& aEvent);
   183         void handleScrollingGH(const TStmGestureEvent& aGesture);
   184         void handleTouchDownGH(const RT_GestureHelper::TGestureEvent& aEvent);
   184         void handleTouchDownGH(const TStmGestureEvent& aGesture);
   185         void handleTouchUpGH(const RT_GestureHelper::TGestureEvent& aEvent);
   185         void handleTouchUpGH(const TStmGestureEvent& aGesture);
   186         void updateScrollbars(const TPoint& scrollPos, TPoint& newscrollDelta);
   186         void updateScrollbars(const TPoint& scrollPos, TPoint& newscrollDelta);
   187 
   187 
   188 public:
   188 public:
   189 
   189 
   190      private:
   190      private:
   191         void calculateScrollDirection(int absX, int absY);
   191         void calculateScrollDirection(int absX, int absY);
   192         bool calculateScrollableFrameView(const TPoint& aNewPosition);
   192         bool calculateScrollableFrameView(const TPoint& aNewPosition);
   193         bool calculateScrollableElement(const TPoint& aNewPosition);
   193         bool calculateScrollableElement(const TPoint& aNewPosition);
   194         
   194         
   195         void scrollPageOverview(const TPointerEvent& pointerEvent);
   195         void scrollPageOverview(const TPointerEvent& pointerEvent);
   196         bool startDeceleration(const RT_GestureHelper::TGestureEvent& aEvent);
   196         bool startDeceleration(const TStmGestureEvent& aGesture);
   197         
   197         
   198      private:  
   198      private:  
   199         // Pointer to owning view
   199         // Pointer to owning view
   200         WebView* m_webView; // not owned
   200         WebView* m_webView; // not owned
   201 
   201