| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/ui/ui_features.h" |
| |
| namespace features { |
| |
| // Enables showing the EV certificate details in the Page Info bubble. |
| const base::Feature kEvDetailsInPageInfo{"EvDetailsInPageInfo", |
| base::FEATURE_ENABLED_BY_DEFAULT}; |
| |
| #if BUILDFLAG(ENABLE_EXTENSIONS) |
| // Enables using dialogs (instead of bubbles) for the post-install UI when an |
| // extension overrides a setting. |
| // TODO(devlin): Remove this feature in M88, since this launched as part of |
| // https://crbug.com/1084281. |
| const base::Feature kExtensionSettingsOverriddenDialogs{ |
| "ExtensionSettingsOverriddenDialogs", base::FEATURE_ENABLED_BY_DEFAULT}; |
| #endif |
| |
| // Enables an extension menu in the toolbar. See https://crbug.com/943702 |
| const base::Feature kExtensionsToolbarMenu{"ExtensionsToolbarMenu", |
| base::FEATURE_ENABLED_BY_DEFAULT}; |
| |
| // Force enables legacy privet printers that are already registered in Print |
| // Preview. To be removed in M90. |
| const base::Feature kForceEnablePrivetPrinting{ |
| "ForceEnablePrivetPrinting", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables the new profile picker. |
| // https:://crbug.com/1063856 |
| const base::Feature kNewProfilePicker{"NewProfilePicker", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables updated tabstrip animations, required for a scrollable tabstrip. |
| // https://crbug.com/958173 |
| const base::Feature kNewTabstripAnimation{"NewTabstripAnimation", |
| base::FEATURE_ENABLED_BY_DEFAULT}; |
| |
| // Enables an experimental permission prompt that uses a chip in the location |
| // bar. |
| const base::Feature kPermissionChip{"PermissionChip", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables a more prominent active tab title in dark mode to aid with |
| // accessibility. |
| const base::Feature kProminentDarkModeActiveTabTitle{ |
| "ProminentDarkModeActiveTabTitle", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables tabs to scroll in the tabstrip. https://crbug.com/951078 |
| const base::Feature kScrollableTabStrip{"ScrollableTabStrip", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables buttons to permanently appear on the tabstrip when |
| // scrollable-tabstrip is enabled. https://crbug.com/1116118 |
| const base::Feature kScrollableTabStripButtons{ |
| "ScrollableTabStripButtons", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Hosts some content in a side panel. https://crbug.com/1141224 |
| const base::Feature kSidePanel{"SidePanel", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Revamp of profiles. https://crbug.com/1108289 |
| const base::Feature kProfilesUIRevamp{"ProfilesUIRevamp", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Automatically create groups for users based on domain. |
| // https://crbug.com/1128703 |
| const base::Feature kTabGroupsAutoCreate{"TabGroupsAutoCreate", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables tab groups to be collapsed and expanded. https://crbug.com/1018230 |
| const base::Feature kTabGroupsCollapse{"TabGroupsCollapse", |
| base::FEATURE_ENABLED_BY_DEFAULT}; |
| |
| // Enables tabs to be frozen when collapsed. https://crbug.com/1110108 |
| const base::Feature kTabGroupsCollapseFreezing{ |
| "TabGroupsCollapseFreezing", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables the feedback through the tab group editor bubble. |
| // https://crbug.com/1067062 |
| const base::Feature kTabGroupsFeedback{"TabGroupsFeedback", |
| base::FEATURE_ENABLED_BY_DEFAULT}; |
| |
| // Enables popup cards containing tab information when hovering over a tab. |
| // https://crbug.com/910739 |
| const base::Feature kTabHoverCards{"TabHoverCards", |
| base::FEATURE_ENABLED_BY_DEFAULT}; |
| |
| // Parameter name used for tab hover cards user study. |
| // TODO(corising): Removed this after tab hover cards user study. |
| const char kTabHoverCardsFeatureParameterName[] = "setting"; |
| |
| // Enables preview images in hover cards. See kTabHoverCards. |
| // https://crbug.com/928954 |
| const base::Feature kTabHoverCardImages{"TabHoverCardImages", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables tab outlines in additional situations for accessibility. |
| const base::Feature kTabOutlinesInLowContrastThemes{ |
| "TabOutlinesInLowContrastThemes", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables searching tabs across multiple windows. |
| const base::Feature kTabSearch{"TabSearch", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables the tab search submit feedback button. |
| const base::Feature kTabSearchFeedback{"TabSearchFeedback", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| const base::FeatureParam<bool> kTabSearchSearchIgnoreLocation{ |
| &kTabSearch, "TabSearchSearchIgnoreLocation", true}; |
| |
| const base::FeatureParam<int> kTabSearchSearchDistance{ |
| &kTabSearch, "TabSearchSearchDistance", 200}; |
| |
| const base::FeatureParam<double> kTabSearchSearchThreshold{ |
| &kTabSearch, "TabSearchSearchThreshold", 0.0}; |
| |
| const base::FeatureParam<double> kTabSearchTitleToHostnameWeightRatio{ |
| &kTabSearch, "TabSearchTitleToHostnameWeightRatio", 2.0}; |
| |
| const base::FeatureParam<bool> kTabSearchMoveActiveTabToBottom{ |
| &kTabSearch, "TabSearchMoveActiveTabToBottom", true}; |
| |
| // Enables a web-based separator that's only used for performance testing. See |
| // https://crbug.com/993502. |
| const base::Feature kWebFooterExperiment{"WebFooterExperiment", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables a web-based tab strip. See https://crbug.com/989131. Note this |
| // feature only works when the ENABLE_WEBUI_TAB_STRIP buildflag is enabled. |
| const base::Feature kWebUITabStrip{"WebUITabStrip", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| #if defined(OS_CHROMEOS) |
| // Enables a warning about connecting to hidden WiFi networks. |
| // https://crbug.com/903908 |
| const base::Feature kHiddenNetworkWarning{"HiddenNetworkWarning", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enables a separate group of settings (speed, button swap, and acceleration) |
| // for pointing sticks (such as TrackPoints). |
| const base::Feature kSeparatePointingStickSettings{ |
| "SeparatePointingStickSettings", base::FEATURE_DISABLED_BY_DEFAULT}; |
| #endif // defined(OS_CHROMEOS) |
| } // namespace features |