[EoC] Add IPH variant that requires a reverse scroll
Add a feature flag and implementation for an in-product help variant
that shows the bubble after a reverse scroll rather than immediately
when the toolbar button is shown.
Also update the ContextualSuggestionsMediator to get the IPH anchor view
directly from the toolbar.
BUG=893290,893269
Change-Id: I704ba2bafba637892c84ede502e6769b7ca28ed9
Reviewed-on: https://chromium-review.googlesource.com/c/1269185
Commit-Queue: Theresa <[email protected]>
Reviewed-by: Matthew Jones <[email protected]>
Reviewed-by: Filip Gorski <[email protected]>
Cr-Commit-Position: refs/heads/master@{#598346}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 7bcf18c..5ea39e2 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2689,6 +2689,12 @@
kOsAndroid,
FEATURE_VALUE_TYPE(
contextual_suggestions::kContextualSuggestionsAlternateCardLayout)},
+ {"contextual-suggestions-iph-reverse-scroll",
+ flag_descriptions::kContextualSuggestionsIPHReverseScrollName,
+ flag_descriptions::kContextualSuggestionsIPHReverseScrollDescription,
+ kOsAndroid,
+ FEATURE_VALUE_TYPE(
+ contextual_suggestions::kContextualSuggestionsIPHReverseScroll)},
{"contextual-suggestions-opt-out",
flag_descriptions::kContextualSuggestionsOptOutName,
flag_descriptions::kContextualSuggestionsOptOutDescription, kOsAndroid,