[Home] Implement velocity model for bottom sheet swipe suppression
This change implements the first half of the velocity model for
swipe suppression. Swipes with a high velocity will not cause the
bottom sheet to open (max 0.2dp/ms).
BUG=779615
Change-Id: If0c12e8ba87c6d4d8b8ee7c53e96acb553199692
Reviewed-on: https://chromium-review.googlesource.com/744585
Commit-Queue: Matthew Jones <[email protected]>
Reviewed-by: Theresa <[email protected]>
Reviewed-by: Ted Choc <[email protected]>
Cr-Commit-Position: refs/heads/master@{#512922}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 883beb6..ac8d365f 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -373,6 +373,8 @@
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kChromeHomeSwipeLogicRestrictArea,
switches::kChromeHomeSwipeLogicType, "restrict-area"},
+ {flag_descriptions::kChromeHomeSwipeLogicVelocity,
+ switches::kChromeHomeSwipeLogicType, "velocity"},
};
#endif // OS_ANDROID