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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.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/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 05efa641d63fe0c766cee63a5bba27c1992cdda0..7929d8fa3fbaa57806c46da6e1ada59c298b7280 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -168,10 +168,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;
}
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp ('k') | third_party/WebKit/public/platform/WebGestureEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698