44 |
46 |
45 public: |
47 public: |
46 |
48 |
47 const TPoint& position() const { return m_pos; } |
49 const TPoint& position() const { return m_pos; } |
48 const TRect& nodeRect() const { return m_nodeRect; } |
50 const TRect& nodeRect() const { return m_nodeRect; } |
49 void setPosition(const TPoint& pt) { m_pos = pt; m_sprite.SetPosition(pt);} |
51 void setPosition(const TPoint& pt) { m_pos = pt;} |
50 void updatePositionAndElemType(const TPoint& pt); |
52 void updatePositionAndElemType(const TPoint& pt); |
51 void setCurrentView(WebView& view); |
53 void setCurrentView(WebView& view); |
52 void offsetCursor(const TPoint& offset); |
54 void offsetCursor(const TPoint& offset); |
53 bool isVisible() const { return m_visible; } |
55 bool isVisible() const { return m_visible; } |
54 void setCursorVisible(bool visible) { m_visible = visible; } |
56 void setCursorVisible(bool visible) { m_visible = visible; } |
64 void increaseTransparencyMoveCount(); |
66 void increaseTransparencyMoveCount(); |
65 void resetTransparency(); |
67 void resetTransparency(); |
66 void scrollAndMoveCursor(int dir, int scrollRange, bool auto); |
68 void scrollAndMoveCursor(int dir, int scrollRange, bool auto); |
67 WebFrame* getFrameUnderCursor(); |
69 WebFrame* getFrameUnderCursor(); |
68 bool navigableNodeUnderCursor(WebFrame& webFrame, TPoint& aPoint, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect) const; |
70 bool navigableNodeUnderCursor(WebFrame& webFrame, TPoint& aPoint, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect) const; |
|
71 WebFrame* getFrameAtPoint(const TPoint& viewPos_); |
69 |
72 |
70 |
73 |
71 private: |
74 private: |
72 void moveCursor(int lr,int tb, int scrollRange); |
75 void moveCursor(int lr,int tb, int scrollRange); |
73 WebFrame* getFrameAtPoint(const TPoint& viewPos_); |
|
74 bool determineCursorPosition(WebFrame& webFrame, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect, TRect& aSearchRect, |
76 bool determineCursorPosition(WebFrame& webFrame, TBrCtlDefs::TBrCtlElementType& aElType, TRect& aFocusRect, TRect& aSearchRect, |
75 TPoint& aCursorPosition, bool aInitialize); |
77 TPoint& aCursorPosition, bool aInitialize); |
76 void increaseSearchRect(int lr,int tb,TRect& aRect); |
78 void increaseSearchRect(int lr,int tb,TRect& aRect); |
77 bool decideCursorPosition(WebFrame& webFrame, const WebCore::IntRect& searchRect, WebCore::IntPoint& cursorPosition); |
79 bool decideCursorPosition(WebFrame& webFrame, const WebCore::IntRect& searchRect, WebCore::IntPoint& cursorPosition); |
78 WebFrame* calculateScrollableFrameView(TPoint& pos, TPoint& aPoint, TRect& fRect, bool autoscroll); |
80 WebFrame* calculateScrollableFrameView(TPoint& pos, TPoint& aPoint, TRect& fRect, bool autoscroll); |