49 |
49 |
50 const TPoint& position() const { return m_pos; } |
50 const TPoint& position() const { return m_pos; } |
51 const TRect& nodeRect() const { return m_nodeRect; } |
51 const TRect& nodeRect() const { return m_nodeRect; } |
52 void setPosition(const TPoint& pt) { m_pos = pt;} |
52 void setPosition(const TPoint& pt) { m_pos = pt;} |
53 void updatePositionAndElemType(const TPoint& pt); |
53 void updatePositionAndElemType(const TPoint& pt); |
54 void setCurrentView(WebView* view); |
54 void setCurrentView(WebView& view); |
55 void offsetCursor(const TPoint& offset); |
55 void offsetCursor(const TPoint& offset); |
56 bool isVisible() const { return m_visible; } |
56 bool isVisible() const { return m_visible; } |
57 void setCursorVisible(bool visible) { m_visible = visible; } |
57 void setCursorVisible(bool visible) { m_visible = visible; } |
58 void setCursor(CursorTypes); |
58 void setCursor(CursorTypes); |
59 void cursorUpdate(bool visible); |
59 void cursorUpdate(bool visible); |
71 WebFrame* getFrameUnderCursor(); |
71 WebFrame* getFrameUnderCursor(); |
72 bool navigableNodeUnderCursor(WebFrame& webFrame, TPoint& aPoint, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect); |
72 bool navigableNodeUnderCursor(WebFrame& webFrame, TPoint& aPoint, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect); |
73 WebFrame* getFrameAtPoint(const TPoint& viewPos_); |
73 WebFrame* getFrameAtPoint(const TPoint& viewPos_); |
74 WebCore::Element* getElementUnderCursor() {return m_elementUnderCursor;} |
74 WebCore::Element* getElementUnderCursor() {return m_elementUnderCursor;} |
75 void stopTransparencyTimer(); |
75 void stopTransparencyTimer(); |
76 WebView* getCursorWebView(){ return m_view;} |
76 |
77 |
|
78 |
77 |
79 private: |
78 private: |
80 void moveCursor(int lr,int tb, int scrollRange); |
79 void moveCursor(int lr,int tb, int scrollRange); |
81 bool determineCursorPosition(WebFrame& webFrame, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect, TRect& aSearchRect, |
80 bool determineCursorPosition(WebFrame& webFrame, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect, TRect& aSearchRect, |
82 TPoint& aCursorPosition, bool aInitialize); |
81 TPoint& aCursorPosition, bool aInitialize); |