blob: 659de922b1b6b68919c2c79173594d6942814f34 [file] [log] [blame]
Tomasz Wiszkowskid938a1112019-03-06 18:01:571// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef COMPONENTS_OMNIBOX_COMMON_OMNIBOX_FEATURES_H_
6#define COMPONENTS_OMNIBOX_COMMON_OMNIBOX_FEATURES_H_
7
8#include "base/feature_list.h"
9
10namespace omnibox {
11
Tommy Li7c2bf492019-10-22 19:34:2312// Please do not add more features to this "big blob" list.
13// Instead, use the categorized and alphabetized lists below this "big blob".
14// You can create a new category if none of the existing ones fit.
Tomasz Wiszkowskid938a1112019-03-06 18:01:5715extern const base::Feature kHideFileUrlScheme;
16extern const base::Feature kHideSteadyStateUrlScheme;
17extern const base::Feature kHideSteadyStateUrlTrivialSubdomains;
18extern const base::Feature kHideSteadyStateUrlPathQueryAndRef;
19extern const base::Feature kOneClickUnelide;
20extern const base::Feature kSimplifyHttpsIndicator;
Kevin Bailey38305592019-05-24 16:55:3621extern const base::Feature kOmniboxGroupSuggestionsBySearchVsUrl;
manukaddd3c42019-04-09 21:20:5922extern const base::Feature kOmniboxLocalEntitySuggestions;
Kevin Baileycd6889922019-05-30 17:22:5523extern const base::Feature kOmniboxMaxURLMatches;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5724extern const base::Feature kOmniboxRichEntitySuggestions;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5725extern const base::Feature kOmniboxReverseAnswers;
Kevin Bailey7d918b92019-05-02 16:00:1426extern const base::Feature kOmniboxShortBookmarkSuggestions;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5727extern const base::Feature kOmniboxTailSuggestions;
28extern const base::Feature kOmniboxTabSwitchSuggestions;
Kevin Bailey37bbf1d2019-08-21 19:23:5529extern const base::Feature kOmniboxTabSwitchSuggestionsDedicatedRow;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5730extern const base::Feature kExperimentalKeywordMode;
31extern const base::Feature kOmniboxPedalSuggestions;
Tommy C. Lia2c75fb2019-04-08 20:22:3432extern const base::Feature kOmniboxSuggestionTransparencyOptions;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5733extern const base::Feature kEnableClipboardProviderTextSuggestions;
34extern const base::Feature kEnableClipboardProviderImageSuggestions;
35extern const base::Feature kSearchProviderWarmUpOnFocus;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5736extern const base::Feature kDisplayTitleForCurrentUrl;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5737extern const base::Feature kUIExperimentMaxAutocompleteMatches;
manukbf3c8ab2019-10-24 16:52:0838extern const base::Feature kQueryInOmnibox;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5739extern const base::Feature kUIExperimentShowSuggestionFavicons;
40extern const base::Feature kUIExperimentSwapTitleAndUrl;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5741extern const base::Feature kSpeculativeServiceWorkerStartOnQueryInput;
42extern const base::Feature kDocumentProvider;
manuk4542e232019-09-11 19:27:3543extern const base::Feature kAutocompleteTitles;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5744extern const base::Feature kOmniboxPopupShortcutIconsInZeroState;
45extern const base::Feature kOmniboxMaterialDesignWeatherIcons;
Patrick Noland2b4968b2019-06-27 14:50:2646extern const base::Feature kOmniboxDisableInstantExtendedLimit;
Brandon Wylief8dd4e82019-07-11 16:39:5747extern const base::Feature kOmniboxSearchEngineLogo;
Gang Wuba18dba2019-09-25 03:43:2148extern const base::Feature kOmniboxRemoveSuggestionsFromClipboard;
manukbf3c8ab2019-10-24 16:52:0849extern const base::Feature kOnDeviceHeadProvider;
50extern const base::Feature kDebounceDocumentProvider;
Tommy C. Li090105512019-05-16 22:00:5651
Tommy Li6390ecc2019-09-06 21:08:5752// Flags that affect the "twiddle" step of AutocompleteResult, i.e. SortAndCull.
53// TODO(tommycli): There are more flags above that belong in this category.
54extern const base::Feature kOmniboxPreserveDefaultMatchScore;
55extern const base::Feature kOmniboxPreserveDefaultMatchAgainstAsyncUpdate;
56
Tommy C. Li090105512019-05-16 22:00:5657// On-Focus Suggestions a.k.a. ZeroSuggest.
58extern const base::Feature kOnFocusSuggestions;
Tomasz Wiszkowski947f6d0d2019-03-15 22:27:2559extern const base::Feature kZeroSuggestionsOnNTP;
Moe Ahmadi4005ec92019-09-09 16:55:5360extern const base::Feature kZeroSuggestionsOnNTPRealbox;
Tommy Li1d03b9bf2019-09-23 23:46:3461extern const base::Feature kZeroSuggestionsOnSERP;
Tomasz Wiszkowskid938a1112019-03-06 18:01:5762
Justin Donnellyf2703482019-10-24 21:42:1563// Scoring - these affect how relevance scores are calculated for suggestions.
64extern const base::Feature kOmniboxExperimentalSuggestScoring;
65
Tommy Li7c2bf492019-10-22 19:34:2366// Suggestions UI - these affect the UI or function of the suggestions popup.
67extern const base::Feature kConfirmOmniboxSuggestionRemovals;
68
Kevin Bailey104e44492019-10-31 16:42:3269// Flags related to new rows and managing rows in the Omnibox.
70// TODO(krb): Move more flags here.
71extern const base::Feature kOmniboxLooseMaxLimitOnDedicatedRows;
72
Tomasz Wiszkowskid938a1112019-03-06 18:01:5773} // namespace omnibox
74
75#endif // COMPONENTS_OMNIBOX_COMMON_OMNIBOX_FEATURES_H_