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

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

Issue 2569273002: Add constructors to WebInputEvents and setters so we can work at cleaning up these public structs. (Closed)
Patch Set: Rebase Created 3 years, 12 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/ImeOnFocusTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp b/third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp
index 830283f592765b3bd9ff228f35d521bc4a1e1374..2d7d55249c36d9e96f959714635a9bb8d23ea9bc 100644
--- a/third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp
+++ b/third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp
@@ -63,8 +63,9 @@ class ImeOnFocusTest : public ::testing::Test {
};
void ImeOnFocusTest::sendGestureTap(WebView* webView, IntPoint clientPoint) {
- WebGestureEvent webGestureEvent;
- webGestureEvent.type = WebInputEvent::GestureTap;
+ WebGestureEvent webGestureEvent(WebInputEvent::GestureTap,
+ WebInputEvent::NoModifiers,
+ WebInputEvent::TimeStampForTesting);
// GestureTap is only ever from touch screens.
webGestureEvent.sourceDevice = WebGestureDeviceTouchscreen;
webGestureEvent.x = clientPoint.x();

Powered by Google App Engine
This is Rietveld 408576698