-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
ui_features.h
120 lines (77 loc) · 3.9 KB
/
ui_features.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// 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.
// This file defines the browser-specific base::FeatureList features that are
// limited to top chrome UI.
#ifndef CHROME_BROWSER_UI_UI_FEATURES_H_
#define CHROME_BROWSER_UI_UI_FEATURES_H_
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/common/buildflags.h"
#include "extensions/buildflags/buildflags.h"
namespace features {
// All features in alphabetical order. The features should be documented
// alongside the definition of their values in the .cc file.
extern const base::Feature kChromeLabs;
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
extern const base::Feature kChromeTipsInMainMenu;
#endif
extern const base::Feature kCommander;
extern const base::Feature kEvDetailsInPageInfo;
#if BUILDFLAG(ENABLE_EXTENSIONS)
extern const base::Feature kExtensionSettingsOverriddenDialogs;
#endif
extern const base::Feature kExtensionsToolbarMenu;
extern const base::Feature kNewProfilePicker;
extern const base::Feature kNewTabstripAnimation;
extern const base::Feature kProminentDarkModeActiveTabTitle;
extern const base::Feature kScrollableTabStrip;
extern const char kMinimumTabWidthFeatureParameterName[];
extern const base::Feature kScrollableTabStripButtons;
extern const base::Feature kSidePanel;
extern const base::Feature kSyncConfirmationUpdatedText;
extern const base::Feature kSignInProfileCreation;
extern const base::Feature kSignInProfileCreationEnterprise;
extern const base::Feature kTabGroupsAutoCreate;
extern const base::Feature kTabGroupsCollapseFreezing;
extern const base::Feature kTabGroupsFeedback;
extern const base::Feature kTabGroupsNewBadgePromo;
extern const base::Feature kTabHoverCards;
extern const char kTabHoverCardsFeatureParameterName[];
extern const base::Feature kTabHoverCardImages;
extern const base::Feature kTabOutlinesInLowContrastThemes;
extern const base::Feature kTabSearch;
extern const base::Feature kTabSearchFeedback;
// Setting this to true will ignore the distance parameter when finding matches.
// This means that it will not matter where in the string the pattern occurs.
extern const base::FeatureParam<bool> kTabSearchSearchIgnoreLocation;
// Determines how close the match must be to the beginning of the string. Eg a
// distance of 100 and threshold of 0.8 would require a perfect match to be
// within 80 characters of the beginning of the string.
extern const base::FeatureParam<int> kTabSearchSearchDistance;
// This determines how strong the match should be for the item to be included in
// the result set. Eg a threshold of 0.0 requires a perfect match, 1.0 would
// match anything. Permissible values are [0.0, 1.0].
extern const base::FeatureParam<double> kTabSearchSearchThreshold;
// These are the hardcoded minimum and maximum search threshold values for
// |kTabSearchSearchThreshold|.
constexpr double kTabSearchSearchThresholdMin = 0.0;
constexpr double kTabSearchSearchThresholdMax = 1.0;
// Controls how heavily weighted the tab's title is relative to the hostname.
extern const base::FeatureParam<double> kTabSearchTitleToHostnameWeightRatio;
// Whether to move the active tab to the bottom of the list.
extern const base::FeatureParam<bool> kTabSearchMoveActiveTabToBottom;
extern const base::Feature kWebFooterExperiment;
extern const base::Feature kWebUIBubblePerProfilePersistence;
extern const base::Feature kWebUIDownloadShelf;
extern const base::Feature kWebUITabStrip;
extern const base::Feature kWebUIFeedback;
#if BUILDFLAG(IS_CHROMEOS_ASH)
extern const base::Feature kHiddenNetworkWarning;
extern const base::Feature kSeparatePointingStickSettings;
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
} // namespace features
#endif // CHROME_BROWSER_UI_UI_FEATURES_H_