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

Unified Diff: Source/core/page/SpatialNavigation.cpp

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/SpatialNavigation.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/SpatialNavigation.cpp
diff --git a/Source/core/page/SpatialNavigation.cpp b/Source/core/page/SpatialNavigation.cpp
index 31a70ec6557fade88ced2e765db5eb9675eff3a6..435be154cb7f0834a4baedfc1b2ff38537dffaf9 100644
--- a/Source/core/page/SpatialNavigation.cpp
+++ b/Source/core/page/SpatialNavigation.cpp
@@ -86,6 +86,11 @@ bool isSpatialNavigationEnabled(const LocalFrame* frame)
return (frame && frame->settings() && frame->settings()->spatialNavigationEnabled());
}
+bool spatialNavigationIgnoresEventHandlers(const LocalFrame* frame)
+{
+ return (frame && frame->settings() && frame->settings()->deviceSupportsTouch());
+}
+
static bool rectsIntersectOnOrthogonalAxis(WebFocusType type, const LayoutRect& a, const LayoutRect& b)
{
switch (type) {
« no previous file with comments | « Source/core/page/SpatialNavigation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698