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

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: jdduke comments. 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
« no previous file with comments | « content/common/input/web_input_event_traits.h ('k') | content/port/common/input_event_ack_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48787a298c844e0e3841964e4a3a0646c937c91e..08d66ba68158b59660ccf789376ae1b4aea37ea1 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(
+ blink::WebInputEvent::Type type) {
+ return type == WebInputEvent::GestureTapDown ||
+ type == WebInputEvent::GestureShowPress ||
+ type == WebInputEvent::GestureTapCancel;
+}
+
} // namespace content
« no previous file with comments | « content/common/input/web_input_event_traits.h ('k') | content/port/common/input_event_ack_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698