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

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

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 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
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 34ad8d9dda5a1f3bb45fd428d4c8cb27c43f7ed5..7e1d2c3d94fe15ea2b7235f99dde0f3d274f82f8 100644
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
@@ -472,8 +472,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;
« no previous file with comments | « third_party/WebKit/Source/web/WebInputEventConversion.cpp ('k') | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698