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

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

Issue 44983003: Events ignoring ack disposition receive synthetic acks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test for single synchronous ack. 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/common/input/web_input_event_traits.cc
diff --git a/content/common/input/web_input_event_traits.cc b/content/common/input/web_input_event_traits.cc
index 2f2eb7f098fe67e217d0e3a16159c56bb9f8722e..6441186457c62ed638d9275302f0d5b9205e677e 100644
--- a/content/common/input/web_input_event_traits.cc
+++ b/content/common/input/web_input_event_traits.cc
@@ -283,4 +283,11 @@ void WebInputEventTraits::Coalesce(const WebInputEvent& event_to_coalesce,
Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event);
}
+bool WebInputEventTraits::IgnoresAckDisposition(
+ WebKit::WebInputEvent::Type type) {
+ return type == WebInputEvent::GestureTapDown ||
+ type == WebInputEvent::GestureShowPress ||
+ type == WebInputEvent::GestureTapCancel;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698