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

Unified Diff: content/common/input/event_with_latency_info.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/common/input/event_with_latency_info.cc
diff --git a/content/common/input/event_with_latency_info.cc b/content/common/input/event_with_latency_info.cc
index 6d9002154c117929e3d477071b01a9b8371cff31..622ecae23f7d0d71075fe8509bf173e165551099 100644
--- a/content/common/input/event_with_latency_info.cc
+++ b/content/common/input/event_with_latency_info.cc
@@ -31,7 +31,7 @@ void ScopedWebInputEventWithLatencyInfo::CoalesceWith(
// should always be preserved.
const double time_stamp_seconds = other.event().timeStampSeconds;
ui::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