Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 1 | // 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 | |
| 10 | namespace omnibox { |
| 11 | |
Tommy Li | 7c2bf49 | 2019-10-22 19:34:23 | [diff] [blame] | 12 | // 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 Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 15 | extern const base::Feature kHideFileUrlScheme; |
| 16 | extern const base::Feature kHideSteadyStateUrlScheme; |
| 17 | extern const base::Feature kHideSteadyStateUrlTrivialSubdomains; |
| 18 | extern const base::Feature kHideSteadyStateUrlPathQueryAndRef; |
| 19 | extern const base::Feature kOneClickUnelide; |
manuk | addd3c4 | 2019-04-09 21:20:59 | [diff] [blame] | 20 | extern const base::Feature kOmniboxLocalEntitySuggestions; |
Kevin Bailey | cd688992 | 2019-05-30 17:22:55 | [diff] [blame] | 21 | extern const base::Feature kOmniboxMaxURLMatches; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 22 | extern const base::Feature kOmniboxRichEntitySuggestions; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 23 | extern const base::Feature kOmniboxReverseAnswers; |
Kevin Bailey | 7d918b9 | 2019-05-02 16:00:14 | [diff] [blame] | 24 | extern const base::Feature kOmniboxShortBookmarkSuggestions; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 25 | extern const base::Feature kOmniboxTailSuggestions; |
| 26 | extern const base::Feature kOmniboxTabSwitchSuggestions; |
Kevin Bailey | 37bbf1d | 2019-08-21 19:23:55 | [diff] [blame] | 27 | extern const base::Feature kOmniboxTabSwitchSuggestionsDedicatedRow; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 28 | extern const base::Feature kExperimentalKeywordMode; |
| 29 | extern const base::Feature kOmniboxPedalSuggestions; |
Tommy C. Li | a2c75fb | 2019-04-08 20:22:34 | [diff] [blame] | 30 | extern const base::Feature kOmniboxSuggestionTransparencyOptions; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 31 | extern const base::Feature kEnableClipboardProviderTextSuggestions; |
| 32 | extern const base::Feature kEnableClipboardProviderImageSuggestions; |
| 33 | extern const base::Feature kSearchProviderWarmUpOnFocus; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 34 | extern const base::Feature kDisplayTitleForCurrentUrl; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 35 | extern const base::Feature kUIExperimentMaxAutocompleteMatches; |
manuk | bf3c8ab | 2019-10-24 16:52:08 | [diff] [blame] | 36 | extern const base::Feature kQueryInOmnibox; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 37 | extern const base::Feature kUIExperimentSwapTitleAndUrl; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 38 | extern const base::Feature kSpeculativeServiceWorkerStartOnQueryInput; |
| 39 | extern const base::Feature kDocumentProvider; |
manuk | 4542e23 | 2019-09-11 19:27:35 | [diff] [blame] | 40 | extern const base::Feature kAutocompleteTitles; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 41 | extern const base::Feature kOmniboxMaterialDesignWeatherIcons; |
Patrick Noland | 2b4968b | 2019-06-27 14:50:26 | [diff] [blame] | 42 | extern const base::Feature kOmniboxDisableInstantExtendedLimit; |
Brandon Wylie | f8dd4e8 | 2019-07-11 16:39:57 | [diff] [blame] | 43 | extern const base::Feature kOmniboxSearchEngineLogo; |
Gang Wu | ba18dba | 2019-09-25 03:43:21 | [diff] [blame] | 44 | extern const base::Feature kOmniboxRemoveSuggestionsFromClipboard; |
manuk | bf3c8ab | 2019-10-24 16:52:08 | [diff] [blame] | 45 | extern const base::Feature kOnDeviceHeadProvider; |
| 46 | extern const base::Feature kDebounceDocumentProvider; |
Tommy C. Li | 09010551 | 2019-05-16 22:00:56 | [diff] [blame] | 47 | |
Tommy Li | 6390ecc | 2019-09-06 21:08:57 | [diff] [blame] | 48 | // Flags that affect the "twiddle" step of AutocompleteResult, i.e. SortAndCull. |
| 49 | // TODO(tommycli): There are more flags above that belong in this category. |
Tommy Li | 6390ecc | 2019-09-06 21:08:57 | [diff] [blame] | 50 | extern const base::Feature kOmniboxPreserveDefaultMatchAgainstAsyncUpdate; |
manuk | 7b89f664 | 2019-11-08 19:25:24 | [diff] [blame] | 51 | extern const base::Feature kOmniboxDemoteByType; |
Tommy Li | 6390ecc | 2019-09-06 21:08:57 | [diff] [blame] | 52 | |
Tommy C. Li | 09010551 | 2019-05-16 22:00:56 | [diff] [blame] | 53 | // On-Focus Suggestions a.k.a. ZeroSuggest. |
| 54 | extern const base::Feature kOnFocusSuggestions; |
Tomasz Wiszkowski | 947f6d0d | 2019-03-15 22:27:25 | [diff] [blame] | 55 | extern const base::Feature kZeroSuggestionsOnNTP; |
Moe Ahmadi | 4005ec9 | 2019-09-09 16:55:53 | [diff] [blame] | 56 | extern const base::Feature kZeroSuggestionsOnNTPRealbox; |
Tommy Li | 1d03b9bf | 2019-09-23 23:46:34 | [diff] [blame] | 57 | extern const base::Feature kZeroSuggestionsOnSERP; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 58 | |
Justin Donnelly | f270348 | 2019-10-24 21:42:15 | [diff] [blame] | 59 | // Scoring - these affect how relevance scores are calculated for suggestions. |
| 60 | extern const base::Feature kOmniboxExperimentalSuggestScoring; |
manukh | 5ff0f58 | 2020-01-14 03:54:13 | [diff] [blame] | 61 | extern const base::Feature kHistoryQuickProviderAllowButDoNotScoreMidwordTerms; |
| 62 | extern const base::Feature kHistoryQuickProviderAllowMidwordContinuations; |
Justin Donnelly | f270348 | 2019-10-24 21:42:15 | [diff] [blame] | 63 | |
Tommy Li | 7c2bf49 | 2019-10-22 19:34:23 | [diff] [blame] | 64 | // Suggestions UI - these affect the UI or function of the suggestions popup. |
Tomasz Wiszkowski | 8a0e0dc4 | 2020-02-19 00:06:37 | [diff] [blame] | 65 | extern const base::Feature kAdaptiveSuggestionsCount; |
Tomasz Wiszkowski | 70fb35f | 2020-02-27 00:39:19 | [diff] [blame] | 66 | extern const base::Feature kCompactSuggestions; |
Tommy Li | 7c2bf49 | 2019-10-22 19:34:23 | [diff] [blame] | 67 | extern const base::Feature kConfirmOmniboxSuggestionRemovals; |
Tomasz Wiszkowski | 70fb35f | 2020-02-27 00:39:19 | [diff] [blame] | 68 | extern const base::Feature kDeferredKeyboardPopup; |
Kevin Bailey | 104e4449 | 2019-10-31 16:42:32 | [diff] [blame] | 69 | extern const base::Feature kOmniboxLooseMaxLimitOnDedicatedRows; |
Orin Jaworski | fc17472 | 2020-01-29 00:32:22 | [diff] [blame] | 70 | extern const base::Feature kOmniboxSuggestionButtonRow; |
| 71 | extern const base::Feature kTabKeyCanEscapeOmniboxPopup; |
Tommy Li | 1f1fc4a | 2020-01-31 21:02:07 | [diff] [blame] | 72 | extern const base::Feature kWebUIOmniboxPopup; |
Kevin Bailey | 104e4449 | 2019-10-31 16:42:32 | [diff] [blame] | 73 | |
Brandon Wylie | 1299ff8 | 2020-01-23 02:13:37 | [diff] [blame] | 74 | // Omnibox UI - these affect the UI or function of the location bar (not the |
| 75 | // popup). |
| 76 | extern const base::Feature kOmniboxAssistantVoiceSearch; |
Livvie Lin | 30a9f9d | 2020-03-17 19:45:19 | [diff] [blame^] | 77 | extern const base::Feature kOmniboxContextMenuShowFullUrls; |
Brandon Wylie | 1299ff8 | 2020-01-23 02:13:37 | [diff] [blame] | 78 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 79 | } // namespace omnibox |
| 80 | |
| 81 | #endif // COMPONENTS_OMNIBOX_COMMON_OMNIBOX_FEATURES_H_ |