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

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

Issue 2678683002: Delay instantiating InputDeviceCapabilities until accessed. (Closed)
Patch Set: rebased 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
Index: third_party/WebKit/Source/core/input/GestureManager.cpp
diff --git a/third_party/WebKit/Source/core/input/GestureManager.cpp b/third_party/WebKit/Source/core/input/GestureManager.cpp
index 4eddb518a574717af1b51cf311bb32f2e2c9a5fa..7a4cd320a923de3beecbea525a795e75f85325ec 100644
--- a/third_party/WebKit/Source/core/input/GestureManager.cpp
+++ b/third_party/WebKit/Source/core/input/GestureManager.cpp
@@ -216,10 +216,7 @@ WebInputEventResult GestureManager::handleGestureTap(
m_selectionController->initializeSelectionState();
if (mouseDownEventResult == WebInputEventResult::NotHandled) {
mouseDownEventResult = m_mouseEventManager->handleMouseFocus(
- currentHitTest, m_frame->document()
- ->domWindow()
- ->getInputDeviceCapabilities()
- ->firesTouchEvents(true));
+ currentHitTest, InputDeviceCapabilities::FiresTouchEvents);
}
if (mouseDownEventResult == WebInputEventResult::NotHandled) {
mouseDownEventResult = m_mouseEventManager->handleMousePressEvent(
@@ -398,11 +395,8 @@ WebInputEventResult GestureManager::sendContextMenuEventForGesture(
MouseEventWithHitTestResults mev =
m_frame->document()->performMouseEventHitTest(request, documentPoint,
mouseEvent);
- m_mouseEventManager->handleMouseFocus(mev.hitTestResult(),
- m_frame->document()
- ->domWindow()
- ->getInputDeviceCapabilities()
- ->firesTouchEvents(true));
+ m_mouseEventManager->handleMouseFocus(
+ mev.hitTestResult(), InputDeviceCapabilities::FiresTouchEvents);
}
return m_frame->eventHandler().sendContextMenuEvent(mouseEvent);
}
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/InputDeviceCapabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698