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

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

Issue 2173073003: Move WebInputEvent into public/platform from public/web (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn build failure with android Created 4 years, 5 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/input/event_with_latency_info.cc ('k') | content/renderer/pepper/event_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c5962b9a74e7dbab983c1327ab06ccfa1e64c606..653bccd68bce24fcc5f9171a6dc3fe22f12574ae 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() {
}
int SyntheticWebTouchEvent::PressPoint(float x, float y) {
- if (touchesLength == touchesLengthCap)
+ if (touchesLength == kTouchesLengthCap)
return -1;
WebTouchPoint& point = touches[touchesLength];
point.id = touchesLength;
@@ -208,7 +208,7 @@ int SyntheticWebTouchEvent::PressPoint(float x, float y) {
void SyntheticWebTouchEvent::MovePoint(int index, float x, float y) {
CHECK_GE(index, 0);
- CHECK_LT(index, touchesLengthCap);
+ CHECK_LT(index, kTouchesLengthCap);
// Always set this bit to avoid otherwise unexpected touchmove suppression.
// The caller can opt-out explicitly, if necessary.
movedBeyondSlopRegion = true;
@@ -222,7 +222,7 @@ void SyntheticWebTouchEvent::MovePoint(int index, float x, float y) {
void SyntheticWebTouchEvent::ReleasePoint(int index) {
CHECK_GE(index, 0);
- CHECK_LT(index, touchesLengthCap);
+ CHECK_LT(index, kTouchesLengthCap);
touches[index].state = WebTouchPoint::StateReleased;
WebTouchEventTraits::ResetType(
WebInputEvent::TouchEnd, timeStampSeconds, this);
@@ -230,7 +230,7 @@ void SyntheticWebTouchEvent::ReleasePoint(int index) {
void SyntheticWebTouchEvent::CancelPoint(int index) {
CHECK_GE(index, 0);
- CHECK_LT(index, touchesLengthCap);
+ CHECK_LT(index, kTouchesLengthCap);
touches[index].state = WebTouchPoint::StateCancelled;
WebTouchEventTraits::ResetType(
WebInputEvent::TouchCancel, timeStampSeconds, this);
« no previous file with comments | « content/common/input/event_with_latency_info.cc ('k') | content/renderer/pepper/event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698