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