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

Unified Diff: ui/events/blink/event_with_callback.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: ui/events/blink/event_with_callback.cc
diff --git a/ui/events/blink/event_with_callback.cc b/ui/events/blink/event_with_callback.cc
index e2c90a200c9438da5b17a3f46cc5cf8c4496c9c1..404c6ae57c9a17c63ddf5dd7513a5afca8f45fc4 100644
--- a/ui/events/blink/event_with_callback.cc
+++ b/ui/events/blink/event_with_callback.cc
@@ -56,7 +56,7 @@ void EventWithCallback::CoalesceWith(EventWithCallback* other,
// should always be preserved.
const double time_stamp_seconds = other->event().timeStampSeconds;
Coalesce(other->event(), event_.get());
- event_->timeStampSeconds = time_stamp_seconds;
+ event_->setTimeStampSeconds(time_stamp_seconds);
// When coalescing two input events, we keep the oldest LatencyInfo
// since it will represent the longest latency.

Powered by Google App Engine
This is Rietveld 408576698