webengine/osswebengine/WebKit/s60/webview/WebCursor.h
changeset 15 60c5402cb945
parent 11 c8a366e56285
child 47 e1bea15f9a39
equal deleted inserted replaced
11:c8a366e56285 15:60c5402cb945
    25 #include <w32std.h>
    25 #include <w32std.h>
    26 
    26 
    27 namespace WebCore {
    27 namespace WebCore {
    28     class IntRect;
    28     class IntRect;
    29     class IntPoint;
    29     class IntPoint;
       
    30     class Element;
    30 }
    31 }
    31 #define KInitialOffset 5
    32 #define KInitialOffset 5
    32 
    33 
    33 class WebView;
    34 class WebView;
    34 class WebFrame;
    35 class WebFrame;
    66         void increaseTransparencyMoveCount();
    67         void increaseTransparencyMoveCount();
    67         void resetTransparency();
    68         void resetTransparency();
    68         void scrollAndMoveCursor(int dir, int scrollRange, bool auto);
    69         void scrollAndMoveCursor(int dir, int scrollRange, bool auto);
    69         void simpleScroll(int dir, int scrollRange, bool auto=true);
    70         void simpleScroll(int dir, int scrollRange, bool auto=true);
    70         WebFrame* getFrameUnderCursor();
    71         WebFrame* getFrameUnderCursor();
    71         bool navigableNodeUnderCursor(WebFrame& webFrame, TPoint& aPoint, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect) const;
    72         bool navigableNodeUnderCursor(WebFrame& webFrame, TPoint& aPoint, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect);
    72         WebFrame* getFrameAtPoint(const TPoint& viewPos_);
    73         WebFrame* getFrameAtPoint(const TPoint& viewPos_);
       
    74         WebCore::Element*  getElementUnderCursor() {return m_elementUnderCursor;}
       
    75         void stopTransparencyTimer();
    73         
    76         
    74 
    77        
    75   private:
    78   private:
    76         void moveCursor(int lr,int tb, int scrollRange);
    79         void moveCursor(int lr,int tb, int scrollRange);
    77         bool determineCursorPosition(WebFrame& webFrame, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect, TRect& aSearchRect, 
    80         bool determineCursorPosition(WebFrame& webFrame, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect, TRect& aSearchRect, 
    78             TPoint& aCursorPosition, bool aInitialize);
    81             TPoint& aCursorPosition, bool aInitialize);
    79         void increaseSearchRect(int lr,int tb,TRect& aRect);
    82         void increaseSearchRect(int lr,int tb,TRect& aRect);
   116         CPeriodic*                      m_transtimer;
   119         CPeriodic*                      m_transtimer;
   117         int                             m_transcount;
   120         int                             m_transcount;
   118         CursorTypes                     m_type;
   121         CursorTypes                     m_type;
   119         int                             m_flipCounter;
   122         int                             m_flipCounter;
   120         TPoint                          m_incrLimit;
   123         TPoint                          m_incrLimit;
       
   124         WebCore::Element*               m_elementUnderCursor;
   121     };
   125     };
   122 
   126 
   123 #endif
   127 #endif