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

Unified Diff: third_party/WebKit/Source/web/DevToolsEmulator.cpp

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Created 4 years 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/web/DevToolsEmulator.cpp
diff --git a/third_party/WebKit/Source/web/DevToolsEmulator.cpp b/third_party/WebKit/Source/web/DevToolsEmulator.cpp
index cb59bd0892dfe2ed841326ec0fe7cd32f6171b16..115075113d626761d0c0a966002ccf9da05fe9a1 100644
--- a/third_party/WebKit/Source/web/DevToolsEmulator.cpp
+++ b/third_party/WebKit/Source/web/DevToolsEmulator.cpp
@@ -491,9 +491,9 @@ bool DevToolsEmulator::handleInputEvent(const WebInputEvent& inputEvent) {
// FIXME: This workaround is required for touch emulation on Mac, where
// compositor-side pinch handling is not enabled. See http://crbug.com/138003.
- bool isPinch = inputEvent.type == WebInputEvent::GesturePinchBegin ||
- inputEvent.type == WebInputEvent::GesturePinchUpdate ||
- inputEvent.type == WebInputEvent::GesturePinchEnd;
+ bool isPinch = inputEvent.type() == WebInputEvent::GesturePinchBegin ||
+ inputEvent.type() == WebInputEvent::GesturePinchUpdate ||
+ inputEvent.type() == WebInputEvent::GesturePinchEnd;
if (isPinch && m_touchEventEmulationEnabled) {
FrameView* frameView = page->deprecatedLocalMainFrame()->view();
PlatformGestureEventBuilder gestureEvent(

Powered by Google App Engine
This is Rietveld 408576698