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

Unified Diff: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp

Issue 2675793005: Track constant InputDeviceCapabilities objects per-window. (Closed)
Patch Set: test tidying Created 3 years, 10 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 | « third_party/WebKit/Source/core/input/InputDeviceCapabilities.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
index c27e4239e7f7b8a178a101b1bb83b47beb9fcc27..a7076a8a11870013d3ef71eabffff4b4ec02f008 100644
--- a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
@@ -11,6 +11,7 @@
#include "core/html/HTMLDialogElement.h"
#include "core/input/EventHandler.h"
#include "core/input/EventHandlingUtil.h"
+#include "core/input/InputDeviceCapabilities.h"
#include "core/input/ScrollManager.h"
#include "core/layout/LayoutObject.h"
#include "core/layout/LayoutTextControlSingleLine.h"
@@ -394,9 +395,11 @@ void KeyboardEventManager::defaultTabEventHandler(KeyboardEvent* event) {
if (m_frame->document()->inDesignMode())
return;
- if (page->focusController().advanceFocus(
- focusType,
- InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities()))
+ if (page->focusController().advanceFocus(focusType,
+ m_frame->document()
+ ->domWindow()
+ ->getInputDeviceCapabilities()
+ ->firesTouchEvents(false)))
event->setDefaultHandled();
}
« no previous file with comments | « third_party/WebKit/Source/core/input/InputDeviceCapabilities.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698