diff -r 17302fa075e1 -r da6ac9d688df msg_plat/messaging_editor_api/inc/MsgEditorView.h --- a/msg_plat/messaging_editor_api/inc/MsgEditorView.h Wed Sep 15 12:08:45 2010 +0300 +++ b/msg_plat/messaging_editor_api/inc/MsgEditorView.h Wed Oct 13 14:27:34 2010 +0300 @@ -634,6 +634,46 @@ */ void DoScrollViewL( TInt& aPixelsToScroll, TMsgScrollDirection aDirection ); + /** + * Handle text scrolling from pointer event. + * + * @param aPointerEvent Current pointer event received from HandlePointerEventL. + */ + TBool HandleScrollEventL(const TPointerEvent& aPointerEvent); + + /** + * Throw the pointer event (which is not consumed by text scrolling) to other handler. + * + * @param aPointerEvent Current pointer event received from HandlePointerEventL. + */ + + void ThrowOutPointerEventL(const TPointerEvent& aPointerEvent); + + /** + * Move current view up or down with screen height. + * + * @param aOffset Offset positive/negative will indicate the direction. + */ + + void ScrollPartL(TInt aOffset); + + /** + * Change to the previous or the next part(slide) if possible. + * + * @param aOffset Offset positive/negative will indicate the direction. + */ + + void ScrollPageL(TInt aOffset); + + /** + * Scroll text in current part (slide). This will not trigger part change. + * + * @param aScrolledPixels Pixels wanted to be scrolled. + * + * @return Pixels scrolled. + */ + + TInt ScrollL(TInt aScrolledPixels); private: @@ -664,6 +704,10 @@ RConeResourceLoader iResourceLoader; TMsgFocus iPrevFocus; TBool iMoveUpDownEvent; + TBool iHaveScrolled; + TPoint iScrollPos; + TPointerEvent iFirstPointerDown; + TBool iIsScrolling; }; #include