webengine/osswebengine/WebKit/s60/webview/WebScrollingDeceleratorGH.h
branchRCL_3
changeset 93 79859ed3eea9
parent 84 800203832575
child 94 919f36ff910f
equal deleted inserted replaced
92:e1bea15f9a39 93:79859ed3eea9
    21 
    21 
    22 //  INCLUDES
    22 //  INCLUDES
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <coedef.h>
    24 #include <coedef.h>
    25 #include <w32std.h>
    25 #include <w32std.h>
    26 #include <stmgesturelistener.h>
    26 #include <rt_gestureobserver.h>
    27 
    27 
    28 // MACROS
    28 // MACROS
    29 
    29 
    30 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    31 class WebView;
    31 class WebView;
    58         */
    58         */
    59         void ConstructL();
    59         void ConstructL();
    60 
    60 
    61     public: // Main functions
    61     public: // Main functions
    62         
    62         
    63         bool startDecel(TRealPoint& speed, WebScrollbarDrawer* scrollbarDrawer);
    63         void startDecel(RT_GestureHelper::TRealPoint& speed, WebScrollbarDrawer* scrollbarDrawer);
    64         
    64         
    65         void cancelDecel();
    65         void cancelDecel();
    66         
    66         
    67         void scroll();
    67         void scroll();
    68         
    68         
    83         bool m_decelelatorSwitch;
    83         bool m_decelelatorSwitch;
    84         
    84         
    85         //normalized current position to minimize rounding error
    85         //normalized current position to minimize rounding error
    86         TPoint m_normalizedCurrentPosition;
    86         TPoint m_normalizedCurrentPosition;
    87         
    87         
    88         TRealPoint m_initSpeed;
    88         RT_GestureHelper::TRealPoint m_initSpeed;
    89         
    89         
    90         CPeriodic*  m_decelTimer;
    90         CPeriodic*  m_decelTimer;
    91         
    91         
    92         TPoint m_lastPos;
    92         TPoint m_lastPos;
    93         
    93         
    94         TPoint m_startPos;
    94         TPoint m_startPos;
    95         
    95         
    96         WebScrollbarDrawer* m_scrollbarDrawer;
    96         WebScrollbarDrawer* m_scrollbarDrawer;
    97         
       
    98         TReal32 m_deceleration;
       
    99     };
    97     };
   100 
    98 
   101 
    99 
   102 
   100 
   103 #endif      // WEBSCROLLINGDECELERATOR_GH_H
   101 #endif      // WEBSCROLLINGDECELERATOR_GH_H