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

Unified Diff: third_party/WebKit/Source/web/tests/TouchActionTest.cpp

Issue 2569273002: Add constructors to WebInputEvents and setters so we can work at cleaning up these public structs. (Closed)
Patch Set: Fix mouse up event sender not modifying modifiers 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/TouchActionTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
index b3659aed420917507e9cdad1b8e332286f9ad7b6..395d78266dd257f90de798c419817f1e8a2cd566 100644
--- a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
+++ b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
@@ -370,8 +370,8 @@ void TouchActionTest::sendTouchEvent(WebView* webView,
ASSERT_TRUE(type == WebInputEvent::TouchStart ||
type == WebInputEvent::TouchCancel);
- WebTouchEvent webTouchEvent;
- webTouchEvent.type = type;
+ WebTouchEvent webTouchEvent(type, WebInputEvent::NoModifiers,
+ WebInputEvent::TimeStampForTesting);
if (type == WebInputEvent::TouchCancel)
webTouchEvent.dispatchType = WebInputEvent::EventNonBlocking;
webTouchEvent.touchesLength = 1;

Powered by Google App Engine
This is Rietveld 408576698