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

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

Issue 1800143002: Notify Blink about start of gesture scroll through a queued event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 8 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/touch_event_stream_validator.cc
diff --git a/content/common/input/touch_event_stream_validator.cc b/content/common/input/touch_event_stream_validator.cc
index 4c7598901dd2b1b145eeeaed55d014a5b956dc78..23675b9f1bf4545f82b253b4f1dbc6f3ead345ec 100644
--- a/content/common/input/touch_event_stream_validator.cc
+++ b/content/common/input/touch_event_stream_validator.cc
@@ -48,6 +48,10 @@ bool TouchEventStreamValidator::Validate(const WebTouchEvent& event,
DCHECK(error_msg);
error_msg->clear();
+ // TouchScrollStarted is not part of a regular touch event stream.
+ if (event.type == WebInputEvent::TouchScrollStarted)
+ return true;
+
WebTouchEvent previous_event = previous_event_;
previous_event_ = event;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/common/input/web_input_event_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698