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 26 matching lines...) Expand all Loading... |
37 { | 37 { |
38 return std::numeric_limits<double>::max(); | 38 return std::numeric_limits<double>::max(); |
39 } | 39 } |
40 | 40 |
41 inline int fudgeFactor() | 41 inline int fudgeFactor() |
42 { | 42 { |
43 return 2; | 43 return 2; |
44 } | 44 } |
45 | 45 |
46 bool isSpatialNavigationEnabled(const LocalFrame*); | 46 bool isSpatialNavigationEnabled(const LocalFrame*); |
| 47 bool spatialNavigationIgnoresEventHandlers(const LocalFrame*); |
47 | 48 |
48 // Spatially speaking, two given elements in a web page can be: | 49 // Spatially speaking, two given elements in a web page can be: |
49 // 1) Fully aligned: There is a full intersection between the rects, either | 50 // 1) Fully aligned: There is a full intersection between the rects, either |
50 // vertically or horizontally. | 51 // vertically or horizontally. |
51 // | 52 // |
52 // * Horizontally * Vertically | 53 // * Horizontally * Vertically |
53 // _ | 54 // _ |
54 // |_| _ _ _ _ _ _ | 55 // |_| _ _ _ _ _ _ |
55 // |_|...... _ |_|_|_|_|_|_| | 56 // |_|...... _ |_|_|_|_|_|_| |
56 // |_| |_| . . | 57 // |_| |_| . . |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(WebFocusType, Node*)
; | 138 Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(WebFocusType, Node*)
; |
138 LayoutRect nodeRectInAbsoluteCoordinates(Node*, bool ignoreBorder = false); | 139 LayoutRect nodeRectInAbsoluteCoordinates(Node*, bool ignoreBorder = false); |
139 LayoutRect frameRectInAbsoluteCoordinates(LocalFrame*); | 140 LayoutRect frameRectInAbsoluteCoordinates(LocalFrame*); |
140 LayoutRect virtualRectForDirection(WebFocusType, const LayoutRect& startingRect,
LayoutUnit width = 0); | 141 LayoutRect virtualRectForDirection(WebFocusType, const LayoutRect& startingRect,
LayoutUnit width = 0); |
141 LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement&, WebFocusType)
; | 142 LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement&, WebFocusType)
; |
142 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate&); | 143 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate&); |
143 | 144 |
144 } // namespace blink | 145 } // namespace blink |
145 | 146 |
146 #endif // SpatialNavigation_h | 147 #endif // SpatialNavigation_h |
OLD | NEW |