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

Unified Diff: content/browser/renderer_host/input/passthrough_touch_event_queue.h

Issue 2816613003: Add suppresion of slop region touches in browser (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/passthrough_touch_event_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/passthrough_touch_event_queue.h
diff --git a/content/browser/renderer_host/input/passthrough_touch_event_queue.h b/content/browser/renderer_host/input/passthrough_touch_event_queue.h
index cae55abf2450fde3ba8154db656c4273a8f3febe..d38ee425b19094b6604749119b49c6367701a8f0 100644
--- a/content/browser/renderer_host/input/passthrough_touch_event_queue.h
+++ b/content/browser/renderer_host/input/passthrough_touch_event_queue.h
@@ -12,6 +12,7 @@
namespace content {
class TouchTimeoutHandler;
+class TouchMoveSlopSuppressor;
// A queue that processes a touch-event and forwards it on to the
// renderer process immediately. This class assumes that queueing will
@@ -115,6 +116,10 @@ class CONTENT_EXPORT PassthroughTouchEventQueue : public TouchEventQueue {
// cancelled after a touch timeout.
bool drop_remaining_touches_in_sequence_;
+ // Suppresses TouchMove's within a slop region when a sequence has not yet
+ // been preventDefaulted.
+ std::unique_ptr<TouchMoveSlopSuppressor> touchmove_slop_suppressor_;
+
// Optional handler for timed-out touch event acks.
std::unique_ptr<TouchTimeoutHandler> timeout_handler_;
« no previous file with comments | « no previous file | content/browser/renderer_host/input/passthrough_touch_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698