webengine/osswebengine/WebKit/s60/webview/WebPageScrollHandler.h
branchRCL_3
changeset 58 220a17280356
parent 42 d39add9822e2
child 84 800203832575
equal deleted inserted replaced
46:ea4b2e4f7cac 58:220a17280356
   173         * @since 5.0
   173         * @since 5.0
   174         * param
   174         * param
   175         * return
   175         * return
   176         */
   176         */
   177         WebScrollbarDrawer*  scrollbarDrawer() {return m_scrollbarDrawer;}
   177         WebScrollbarDrawer*  scrollbarDrawer() {return m_scrollbarDrawer;}
       
   178         
       
   179         WebScrollingDeceleratorGH* ScrollingDeceleratorGH() {return m_decelGH;} 
   178 
   180 
   179         //callbacks
   181         //callbacks
   180         static int pageOverviewScrollCallback( TAny* aPtr );
   182         static int pageOverviewScrollCallback( TAny* aPtr );
   181         //static int handleScrollTimerEventCallback( TAny* ptr);
   183         //static int handleScrollTimerEventCallback( TAny* ptr);
   182         void scrollPageOverviewGH();
   184         void scrollPageOverviewGH();
   183         void handleScrollingGH(const TStmGestureEvent& aGesture);
   185         void handleScrollingGH(const TStmGestureEvent& aGesture);
   184         void handleTouchDownGH(const TStmGestureEvent& aGesture);
   186         void handleTouchDownGH(const TStmGestureEvent& aGesture);
   185         void handleTouchUpGH(const TStmGestureEvent& aGesture);
   187         void handleTouchUpGH(const TStmGestureEvent& aGesture);
   186         void updateScrollbars(const TPoint& scrollPos, TPoint& newscrollDelta);
   188         void updateScrollbars(const TPoint& scrollPos, TPoint& newscrollDelta);
   187 
       
   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);
   210         bool m_isXScrollable;
   210         bool m_isXScrollable;
   211         bool m_isYScrollable;
   211         bool m_isYScrollable;
   212         TTime m_lastMoveEventTime;
   212         TTime m_lastMoveEventTime;
   213         TTime m_pageOverviewEventTime;
   213         TTime m_pageOverviewEventTime;
   214         WebScrollingDecelerator* m_decel;
   214         WebScrollingDecelerator* m_decel;
   215 	WebScrollingDeceleratorGH* m_decelGH; 
   215         WebScrollingDeceleratorGH* m_decelGH; 
   216         TPointerEvent m_lastDragEvent;
   216         TPointerEvent m_lastDragEvent;
   217         CPeriodic* m_scrollTimer;
   217         CPeriodic* m_scrollTimer;
   218         ScrollableView m_scrollableView;
   218         ScrollableView m_scrollableView;
   219         TPoint m_currentNormalizedPosition; //normalized position
   219         TPoint m_currentNormalizedPosition; //normalized position
   220         enum ScrollDirectionState m_scrollDirectionState;        
   220         enum ScrollDirectionState m_scrollDirectionState;