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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.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/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 8e0b76ba4a2eec9f7684f10167f703f1ae216abf..68f1e2044349b41e8374a5ea5805129ae545ee64 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -167,10 +167,10 @@ class TapHandlingWebViewClient : public FrameTestHelpers::TestWebViewClient {
// WebViewClient methods
void didHandleGestureEvent(const WebGestureEvent& event,
bool eventCancelled) override {
- if (event.type == WebInputEvent::GestureTap) {
+ if (event.type() == WebInputEvent::GestureTap) {
m_tapX = event.x;
m_tapY = event.y;
- } else if (event.type == WebInputEvent::GestureLongPress) {
+ } else if (event.type() == WebInputEvent::GestureLongPress) {
m_longpressX = event.x;
m_longpressY = event.y;
}

Powered by Google App Engine
This is Rietveld 408576698