19 #define __WEBTABBEDNAVIGATION_H__ |
19 #define __WEBTABBEDNAVIGATION_H__ |
20 |
20 |
21 #include <e32std.h> |
21 #include <e32std.h> |
22 |
22 |
23 class WebView; |
23 class WebView; |
|
24 namespace WebCore { |
|
25 class Element; |
|
26 class Node; |
|
27 }; |
24 |
28 |
25 class WebTabbedNavigation { |
29 class WebTabbedNavigation { |
26 public: |
30 public: |
27 |
31 |
28 WebTabbedNavigation(WebView* webView); |
32 WebTabbedNavigation(WebView* webView); |
29 ~WebTabbedNavigation(); |
33 ~WebTabbedNavigation(); |
30 bool navigate(int horizontalDir, int verticalDir); |
34 bool navigate(int horizontalDir, int verticalDir); |
31 void clear(); |
35 void clear(); |
32 void initializeForPage(); |
36 void initializeForPage(); |
|
37 void updateCursorPosition(const TPoint& pos); |
|
38 void focusedElementChanged(WebCore::Element* element); |
33 |
39 |
34 private: |
40 private: |
35 bool selectNode(int horizontalDir, int verticalDir, TRect& selectedRect, TRect& newNodeRect, TPoint& selectedPoint, TPoint& newFocusPoint); |
41 bool selectNode(int horizontalDir, int verticalDir, TRect& selectedRect, TRect& newNodeRect, TPoint& selectedPoint, TPoint& newFocusPoint); |
36 TPoint potentialFocusPoint(int horizontalDir, int verticalDir, TRect& newNodeRect); |
42 TPoint potentialFocusPoint(int horizontalDir, int verticalDir, TRect& newNodeRect); |
37 int distanceFunction(int horizontalDir, int verticalDir, TRect& rect, TPoint& point); |
43 int distanceFunction(int horizontalDir, int verticalDir, TRect& rect, TPoint& point); |