OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) |
3 * Copyright (C) 2009 Antonio Gomes <tonikitoo@webkit.org> | 3 * Copyright (C) 2009 Antonio Gomes <tonikitoo@webkit.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 11 matching lines...) Expand all Loading... |
22 #define SpatialNavigation_h | 22 #define SpatialNavigation_h |
23 | 23 |
24 #include "core/dom/Node.h" | 24 #include "core/dom/Node.h" |
25 #include "core/page/FocusType.h" | 25 #include "core/page/FocusType.h" |
26 #include "platform/geometry/LayoutRect.h" | 26 #include "platform/geometry/LayoutRect.h" |
27 | 27 |
28 #include <limits> | 28 #include <limits> |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class Element; | |
33 class LocalFrame; | 32 class LocalFrame; |
34 class HTMLAreaElement; | 33 class HTMLAreaElement; |
35 class HTMLFrameOwnerElement; | 34 class HTMLFrameOwnerElement; |
36 class IntRect; | |
37 class RenderObject; | |
38 | 35 |
39 inline long long maxDistance() | 36 inline long long maxDistance() |
40 { | 37 { |
41 return std::numeric_limits<long long>::max(); | 38 return std::numeric_limits<long long>::max(); |
42 } | 39 } |
43 | 40 |
44 inline int fudgeFactor() | 41 inline int fudgeFactor() |
45 { | 42 { |
46 return 2; | 43 return 2; |
47 } | 44 } |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(FocusType, Node*); | 139 Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(FocusType, Node*); |
143 LayoutRect nodeRectInAbsoluteCoordinates(Node*, bool ignoreBorder = false); | 140 LayoutRect nodeRectInAbsoluteCoordinates(Node*, bool ignoreBorder = false); |
144 LayoutRect frameRectInAbsoluteCoordinates(LocalFrame*); | 141 LayoutRect frameRectInAbsoluteCoordinates(LocalFrame*); |
145 LayoutRect virtualRectForDirection(FocusType, const LayoutRect& startingRect, La
youtUnit width = 0); | 142 LayoutRect virtualRectForDirection(FocusType, const LayoutRect& startingRect, La
youtUnit width = 0); |
146 LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement&, FocusType); | 143 LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement&, FocusType); |
147 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate&); | 144 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate&); |
148 | 145 |
149 } // namespace blink | 146 } // namespace blink |
150 | 147 |
151 #endif // SpatialNavigation_h | 148 #endif // SpatialNavigation_h |
OLD | NEW |