Update ui_features.cc

This commit is contained in:
Alexander David Frick 2022-06-10 04:00:24 -07:00 committed by GitHub
parent 921c783fec
commit 61f9844af1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,20 +105,22 @@ const base::Feature kSideSearchPageActionLabelAnimation{
// Controls the frequency that the Side Search page action's label is shown. If
// enabled the label text is shown one per window.
const base::FeatureParam<kSideSearchLabelAnimationFrequencyOption>::Option
kSideSearchPageActionLabelAnimationFrequencyParamOptions[] = {
{kSideSearchLabelAnimationFrequencyOption::kOncePerProfile,
"OncePerProfile"},
{kSideSearchLabelAnimationFrequencyOption::kOncePerWindow,
"OncePerWindow"},
{kSideSearchLabelAnimationFrequencyOption::kOncePerTab, "OncePerTab"}};
const base::FeatureParam<kSideSearchLabelAnimationTypeOption>::Option
kSideSearchPageActionLabelAnimationTypeParamOptions[] = {
{kSideSearchLabelAnimationTypeOption::kProfile, "Profile"},
{kSideSearchLabelAnimationTypeOption::kWindow, "Window"},
{kSideSearchLabelAnimationTypeOption::kTab, "Tab"}};
const base::FeatureParam<kSideSearchLabelAnimationFrequencyOption>
kSideSearchPageActionLabelAnimationFrequency{
const base::FeatureParam<kSideSearchLabelAnimationTypeOption>
kSideSearchPageActionLabelAnimationType{
&kSideSearchPageActionLabelAnimation,
"SideSearchPageActionLabelAnimationFrequency",
kSideSearchLabelAnimationFrequencyOption::kOncePerWindow,
&kSideSearchPageActionLabelAnimationFrequencyParamOptions};
"SideSearchPageActionLabelAnimationType",
kSideSearchLabelAnimationTypeOption::kWindow,
&kSideSearchPageActionLabelAnimationTypeParamOptions};
const base::FeatureParam<int> kSideSearchPageActionLabelAnimationMaxCount{
&kSideSearchPageActionLabelAnimation,
"SideSearchPageActionLabelAnimationMaxCount", 1};
// Whether to clobber all side search side panels in the current browser window
// or only the side search in the current tab before read later or lens side