Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: Source/core/page/SpatialNavigation.h

Issue 832083008: Allow Spatial Navigation ignore elements with event handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: new approach Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/page/SpatialNavigation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/page/SpatialNavigation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698