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

Unified Diff: third_party/WebKit/Source/core/input/EventHandlerTest.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/core/input/EventHandlerTest.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
index dbce543599c4478ae123567a37ebc5bba6745824..c6235cbfaae7c94080beb1f6e280891b744526e1 100644
--- a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
@@ -35,11 +35,12 @@ class EventHandlerTest : public ::testing::Test {
class TapEventBuilder : public WebGestureEvent {
public:
- TapEventBuilder(IntPoint position, int tapCount) : WebGestureEvent() {
- type = WebInputEvent::GestureTap;
+ TapEventBuilder(IntPoint position, int tapCount)
+ : WebGestureEvent(WebInputEvent::GestureTap,
+ WebInputEvent::NoModifiers,
+ TimeTicks::Now().InSeconds()) {
x = globalX = position.x();
y = globalY = position.y();
- timeStampSeconds = TimeTicks::Now().InSeconds();
sourceDevice = WebGestureDeviceTouchscreen;
data.tap.tapCount = tapCount;
data.tap.width = 5;
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/GestureManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698