Filtering of scroll events.
Add a InputFilter object in the ScrollPredictor object. Each predicted
scroll event is sent to the filter and if Filtering flag is enabled,
the predicted scroll event position is replaced by the filtered returned
by the filter.
Firsts real events are sent to the filter to faster initialize its state.
Filter is reset with the predictor is reset.
A flag kFilteringScrollPrediction is added to disable/enable the scroll
filtering.
Bug: 984027
Change-Id: I04bc71f18647b7df5dd28bccd118b56bc083c1e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1710757
Reviewed-by: David Bokan <[email protected]>
Reviewed-by: Ella Ge <[email protected]>
Commit-Queue: Axel Antoine <[email protected]>
Cr-Commit-Position: refs/heads/master@{#680900}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index ec94e32..a397c20 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -1035,6 +1035,10 @@
"Enables granting and removing access to features through the "
"Feature-Policy HTTP header.";
+const char kFilteringScrollPredictionName[] = "Filtering scroll prediction";
+const char kFilteringScrollPredictionDescription[] =
+ "Enable filtering of predicted scroll events";
+
const char kForceEffectiveConnectionTypeName[] =
"Override effective connection type";
const char kForceEffectiveConnectionTypeDescription[] =