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

Unified Diff: content/common/input/synthetic_web_input_event_builders.cc

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
Index: content/common/input/synthetic_web_input_event_builders.cc
diff --git a/content/common/input/synthetic_web_input_event_builders.cc b/content/common/input/synthetic_web_input_event_builders.cc
index 3c5800df885ef52aa3b53d2c959ebe7d15acc3bb..c278f8f2608032b1e6d8bc217d0427786ef9d02a 100644
--- a/content/common/input/synthetic_web_input_event_builders.cc
+++ b/content/common/input/synthetic_web_input_event_builders.cc
@@ -189,7 +189,7 @@ void SyntheticWebTouchEvent::ResetPoints() {
}
}
touchesLength = activePointCount;
- type = WebInputEvent::Undefined;
+ m_type = WebInputEvent::Undefined;
movedBeyondSlopRegion = false;
uniqueTouchEventId = ui::GetNextTouchEventId();
}
@@ -208,7 +208,7 @@ int SyntheticWebTouchEvent::PressPoint(float x, float y) {
point.force = 1.f;
point.tiltX = point.tiltY = 0;
++touchesLength;
- WebTouchEventTraits::ResetType(WebInputEvent::TouchStart, timeStampSeconds,
+ WebTouchEventTraits::ResetType(WebInputEvent::TouchStart, timeStampSeconds(),
this);
return point.id;
}
@@ -223,7 +223,7 @@ void SyntheticWebTouchEvent::MovePoint(int index, float x, float y) {
point.position.x = point.screenPosition.x = x;
point.position.y = point.screenPosition.y = y;
touches[index].state = WebTouchPoint::StateMoved;
- WebTouchEventTraits::ResetType(WebInputEvent::TouchMove, timeStampSeconds,
+ WebTouchEventTraits::ResetType(WebInputEvent::TouchMove, timeStampSeconds(),
this);
}
@@ -231,7 +231,7 @@ void SyntheticWebTouchEvent::ReleasePoint(int index) {
CHECK_GE(index, 0);
CHECK_LT(index, kTouchesLengthCap);
touches[index].state = WebTouchPoint::StateReleased;
- WebTouchEventTraits::ResetType(WebInputEvent::TouchEnd, timeStampSeconds,
+ WebTouchEventTraits::ResetType(WebInputEvent::TouchEnd, timeStampSeconds(),
this);
}
@@ -239,7 +239,7 @@ void SyntheticWebTouchEvent::CancelPoint(int index) {
CHECK_GE(index, 0);
CHECK_LT(index, kTouchesLengthCap);
touches[index].state = WebTouchPoint::StateCancelled;
- WebTouchEventTraits::ResetType(WebInputEvent::TouchCancel, timeStampSeconds,
+ WebTouchEventTraits::ResetType(WebInputEvent::TouchCancel, timeStampSeconds(),
this);
}
« no previous file with comments | « content/common/input/input_param_traits_unittest.cc ('k') | content/common/input/touch_event_stream_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698