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 |