|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implemetation of CWebKitView |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __WEBTABBEDNAVIGATION_H__ |
|
19 #define __WEBTABBEDNAVIGATION_H__ |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 class WebView; |
|
24 |
|
25 class WebTabbedNavigation { |
|
26 public: |
|
27 |
|
28 WebTabbedNavigation(WebView* webView); |
|
29 ~WebTabbedNavigation(); |
|
30 bool navigate(int horizontalDir, int verticalDir); |
|
31 void clear(); |
|
32 void initializeForPage(); |
|
33 |
|
34 private: |
|
35 bool selectNode(int horizontalDir, int verticalDir, TRect& selectedRect, TRect& newNodeRect, TPoint& selectedPoint, TPoint& newFocusPoint); |
|
36 TPoint potentialFocusPoint(int horizontalDir, int verticalDir, TRect& newNodeRect); |
|
37 int distanceFunction(int horizontalDir, int verticalDir, TRect& rect, TPoint& point); |
|
38 |
|
39 private: |
|
40 TRect m_selectedElementRect; |
|
41 WebView* m_webView; // not owned |
|
42 bool m_initializedForPage; |
|
43 bool m_firstNavigationOnPage; |
|
44 TPoint m_focusPosition; |
|
45 void* m_node; |
|
46 }; |
|
47 |
|
48 #endif //__WEBTABBEDNAVIGATION_H__ |
|
49 |
|
50 // END OF FILE |
|
51 |