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

Unified Diff: content/common/input/web_touch_event_traits.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/web_touch_event_traits.cc
diff --git a/content/common/input/web_touch_event_traits.cc b/content/common/input/web_touch_event_traits.cc
index 031d4e10305599a480851553795873c5663ae88a..dbd0630f3a17fa443d6e1a274d7030e377c4f0bd 100644
--- a/content/common/input/web_touch_event_traits.cc
+++ b/content/common/input/web_touch_event_traits.cc
@@ -54,11 +54,11 @@ void WebTouchEventTraits::ResetType(WebInputEvent::Type type,
DCHECK(WebInputEvent::isTouchEventType(type));
DCHECK(type != WebInputEvent::TouchScrollStarted);
- event->type = type;
+ event->setType(type);
event->dispatchType = type == WebInputEvent::TouchCancel
? WebInputEvent::EventNonBlocking
: WebInputEvent::Blocking;
- event->timeStampSeconds = timestamp_sec;
+ event->setTimeStampSeconds(timestamp_sec);
}
void WebTouchEventTraits::ResetTypeAndTouchStates(WebInputEvent::Type type,

Powered by Google App Engine
This is Rietveld 408576698