34 bool navigate(int horizontalDir, int verticalDir); |
35 bool navigate(int horizontalDir, int verticalDir); |
35 void clear(); |
36 void clear(); |
36 void initializeForPage(); |
37 void initializeForPage(); |
37 void updateCursorPosition(const TPoint& pos); |
38 void updateCursorPosition(const TPoint& pos); |
38 void focusedElementChanged(WebCore::Element* element); |
39 void focusedElementChanged(WebCore::Element* element); |
39 |
40 TPoint updateCursorPosAfterScroll(WebCore::Frame* frame, int horizontalDir, int verticalDir); |
40 private: |
41 private: |
41 bool selectNode(int horizontalDir, int verticalDir, TRect& selectedRect, TRect& newNodeRect, TPoint& selectedPoint, TPoint& newFocusPoint); |
42 bool selectNode(int horizontalDir, int verticalDir, TRect& selectedRect, TRect& newNodeRect, TPoint& selectedPoint, TPoint& newFocusPoint); |
42 TPoint potentialFocusPoint(int horizontalDir, int verticalDir, TRect& newNodeRect); |
43 TPoint potentialFocusPoint(int horizontalDir, int verticalDir, TRect& newNodeRect); |
43 int distanceFunction(int horizontalDir, int verticalDir, TRect& rect, TPoint& point); |
44 int distanceFunction(int horizontalDir, int verticalDir, TRect& rect, TPoint& point); |
|
45 WebCore::Node* bestFitFocusableNode(WebCore::Frame* topFrame, TRect& viewRect, int horizontalDir, int verticalDir, |
|
46 TPoint& selectedPoint, TRect& selectedRect ); |
|
47 void handleMultiSelect(int horizontalDir, int verticalDir); |
|
48 void resetNavigationIfNeeded(TPoint& contentPos, TSize& contentSize, WebCore::Frame* focusedFrame, |
|
49 int horizontalDir, int verticalDir); |
|
50 TPoint focusPointFromFocusedNode(WebCore::Frame* frame, int horizontalDir, int verticalDir); |
|
51 void calcSearchViewRect(int horizontalDir, int verticalDir, TRect& view); |
|
52 bool shouldConsiderRect(TRect& rect, TRect& searchRect, int horizontalDir, int verticalDir); |
44 |
53 |
45 private: |
54 private: |
46 TRect m_selectedElementRect; |
55 TRect m_selectedElementRect; |
47 WebView* m_webView; // not owned |
56 WebView* m_webView; // not owned |
48 bool m_initializedForPage; |
57 bool m_initializedForPage; |