156 |
156 |
157 //callbacks |
157 //callbacks |
158 static int pageOverviewScrollCallback( TAny* aPtr ); |
158 static int pageOverviewScrollCallback( TAny* aPtr ); |
159 //static int handleScrollTimerEventCallback( TAny* ptr); |
159 //static int handleScrollTimerEventCallback( TAny* ptr); |
160 void scrollPageOverviewGH(); |
160 void scrollPageOverviewGH(); |
161 void handleScrollingGH(const RT_GestureHelper::MGestureEvent& aEvent); |
161 void handleScrollingGH(const RT_GestureHelper::TGestureEvent& aEvent); |
162 void handleTouchDownGH(const RT_GestureHelper::MGestureEvent& aEvent); |
162 void handleTouchDownGH(const RT_GestureHelper::TGestureEvent& aEvent); |
163 void handleTouchUpGH(const RT_GestureHelper::MGestureEvent& aEvent); |
163 void handleTouchUpGH(const RT_GestureHelper::TGestureEvent& aEvent); |
164 void updateScrollbars(const TPoint& scrollPos, TPoint& newscrollDelta); |
164 void updateScrollbars(const TPoint& scrollPos, TPoint& newscrollDelta); |
165 |
165 |
166 public: |
166 public: |
167 |
167 |
168 private: |
168 private: |
169 void calculateScrollDirection(int absX, int absY); |
169 void calculateScrollDirection(int absX, int absY); |
170 bool calculateScrollableFrameView(const TPoint& aNewPosition); |
170 bool calculateScrollableFrameView(const TPoint& aNewPosition); |
171 bool calculateScrollableElement(const TPoint& aNewPosition); |
171 bool calculateScrollableElement(const TPoint& aNewPosition); |
172 |
172 |
173 void scrollPageOverview(const TPointerEvent& pointerEvent); |
173 void scrollPageOverview(const TPointerEvent& pointerEvent); |
174 bool startDeceleration(const RT_GestureHelper::MGestureEvent& aEvent); |
174 bool startDeceleration(const RT_GestureHelper::TGestureEvent& aEvent); |
175 |
175 |
176 private: |
176 private: |
177 // Pointer to owning view |
177 // Pointer to owning view |
178 WebView* m_webView; // not owned |
178 WebView* m_webView; // not owned |
179 |
179 |