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

Unified Diff: content/common/input/event_with_latency_info.h

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
« no previous file with comments | « content/common/content_param_traits.cc ('k') | content/common/input/event_with_latency_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/event_with_latency_info.h
diff --git a/content/common/input/event_with_latency_info.h b/content/common/input/event_with_latency_info.h
index 751197fcd376d11910bc8f48e9df168c68225c09..77be4786c12565296c76be54a25c5994c5312809 100644
--- a/content/common/input/event_with_latency_info.h
+++ b/content/common/input/event_with_latency_info.h
@@ -58,11 +58,11 @@ class EventWithLatencyInfo {
bool CanCoalesceWith(const EventWithLatencyInfo& other)
const WARN_UNUSED_RESULT {
- if (other.event.type != event.type)
+ if (other.event.type() != event.type())
return false;
- DCHECK_EQ(sizeof(T), event.size);
- DCHECK_EQ(sizeof(T), other.event.size);
+ DCHECK_EQ(sizeof(T), event.size());
+ DCHECK_EQ(sizeof(T), other.event.size());
return ui::CanCoalesce(other.event, event);
}
@@ -74,7 +74,7 @@ class EventWithLatencyInfo {
// New events get coalesced into older events, and the newer timestamp
// should always be preserved.
- const double time_stamp_seconds = other.event.timeStampSeconds;
+ const double time_stamp_seconds = other.event.timeStampSeconds();
ui::Coalesce(other.event, &event);
event.setTimeStampSeconds(time_stamp_seconds);
« no previous file with comments | « content/common/content_param_traits.cc ('k') | content/common/input/event_with_latency_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698