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

Unified Diff: third_party/WebKit/Source/web/WebPagePopupImpl.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/WebPagePopupImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
index f75540807ab011d538b0ffb69988dac7f5bdf0c1..a3d487493e2da56dfd955d3ff0ca1604d06b823f 100644
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
@@ -456,8 +456,8 @@ WebInputEventResult WebPagePopupImpl::handleGestureEvent(
if (m_closing || !m_page || !m_page->mainFrame() ||
!toLocalFrame(m_page->mainFrame())->view())
return WebInputEventResult::NotHandled;
- if ((event.type == WebInputEvent::GestureTap ||
- event.type == WebInputEvent::GestureTapDown) &&
+ if ((event.type() == WebInputEvent::GestureTap ||
+ event.type() == WebInputEvent::GestureTapDown) &&
!isViewportPointInWindow(event.x, event.y)) {
cancel();
return WebInputEventResult::NotHandled;

Powered by Google App Engine
This is Rietveld 408576698