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

Unified Diff: content/browser/renderer_host/input/synthetic_touch_driver.cc

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: content/browser/renderer_host/input/synthetic_touch_driver.cc
diff --git a/content/browser/renderer_host/input/synthetic_touch_driver.cc b/content/browser/renderer_host/input/synthetic_touch_driver.cc
index 19b94cb150c52ea1a86a6e3c1aeabd9c6fd86e19..3adb753c6162b1c65e3a2d338e5aaad29ff77849 100644
--- a/content/browser/renderer_host/input/synthetic_touch_driver.cc
+++ b/content/browser/renderer_host/input/synthetic_touch_driver.cc
@@ -21,9 +21,8 @@ SyntheticTouchDriver::~SyntheticTouchDriver() {}
void SyntheticTouchDriver::DispatchEvent(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) {
- touch_event_.timeStampSeconds = ConvertTimestampToSeconds(timestamp);
- if (touch_event_.type != blink::WebInputEvent::Undefined)
- target->DispatchInputEventToPlatform(touch_event_);
+ touch_event_.setTimeStampSeconds(ConvertTimestampToSeconds(timestamp));
+ target->DispatchInputEventToPlatform(touch_event_);
touch_event_.ResetPoints();
}

Powered by Google App Engine
This is Rietveld 408576698