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

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

Issue 1053823002: [Android] Disable fling cancel filtering in the GestureEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup, working tests Created 5 years, 9 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/browser/renderer_host/input/gesture_event_queue.h
diff --git a/content/browser/renderer_host/input/gesture_event_queue.h b/content/browser/renderer_host/input/gesture_event_queue.h
index 693d25d6aa02311d89703ad8fe83acf7efa6f07b..304366802504d99ffc27b6658eada5df6f271322 100644
--- a/content/browser/renderer_host/input/gesture_event_queue.h
+++ b/content/browser/renderer_host/input/gesture_event_queue.h
@@ -73,6 +73,12 @@ class CONTENT_EXPORT GestureEventQueue {
// active scroll sequence, suppressing brief scroll interruptions.
// Zero by default (disabled).
base::TimeDelta debounce_interval;
+
+ // Whether to filter unnecessary GestureFlingCancel events. Filtering should
+ // be disabled if there may be content-targetting fling curves about which
+ // the renderer is unaware (e.g., with Android WebView).
+ // True by default.
+ bool enable_fling_cancel_filtering;
};
// Both |client| and |touchpad_client| must outlive the GestureEventQueue.
@@ -159,6 +165,9 @@ class CONTENT_EXPORT GestureEventQueue {
// The receiver of all forwarded gesture events.
GestureEventQueueClient* client_;
+ // Whether to filter unnecessary GestureFlingCancel events.
+ bool enable_fling_cancel_filtering_;
+
// Whether there are any active flings in the renderer. As the fling
// end notification is asynchronous, we use a count rather than a boolean
// to avoid races in bookkeeping when starting a new fling.
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/input/gesture_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698