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

Unified Diff: content/browser/renderer_host/input/synthetic_web_input_event_builders.cc

Issue 78263003: Ignore TouchCancel ack dispositions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REbase Created 7 years, 1 month 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/browser/renderer_host/input/synthetic_web_input_event_builders.cc
diff --git a/content/browser/renderer_host/input/synthetic_web_input_event_builders.cc b/content/browser/renderer_host/input/synthetic_web_input_event_builders.cc
index d6f782dafd8f153785b0bb3bc03c3036939a4975..09f38dc569762c30edcb43068a711f2523b62ee0 100644
--- a/content/browser/renderer_host/input/synthetic_web_input_event_builders.cc
+++ b/content/browser/renderer_host/input/synthetic_web_input_event_builders.cc
@@ -168,6 +168,12 @@ void SyntheticWebTouchEvent::ReleasePoint(int index) {
type = WebInputEvent::TouchEnd;
}
+void SyntheticWebTouchEvent::CancelPoint(int index) {
+ CHECK(index >= 0 && index < touchesLengthCap);
+ touches[index].state = WebTouchPoint::StateCancelled;
+ type = WebInputEvent::TouchCancel;
+}
+
void SyntheticWebTouchEvent::SetTimestamp(base::TimeDelta timestamp) {
timeStampSeconds = timestamp.InSecondsF();
}

Powered by Google App Engine
This is Rietveld 408576698