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 | #include "components/omnibox/common/omnibox_features.h" |
| 6 | |
manuk | c32a8eff | 2019-07-02 15:48:30 | [diff] [blame] | 7 | #include "build/build_config.h" |
| 8 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 9 | namespace omnibox { |
| 10 | |
Tomasz Wiszkowski | 8a0e0dc4 | 2020-02-19 00:06:37 | [diff] [blame] | 11 | // Allows Omnibox to dynamically adjust number of offered suggestions to fill in |
| 12 | // the space between Omnibox an the soft keyboard. The number of suggestions |
| 13 | // shown will be no less than minimum for the platform (eg. 5 for Android). |
| 14 | const base::Feature kAdaptiveSuggestionsCount{ |
| 15 | "OmniboxAdaptiveSuggestionsCount", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 16 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 17 | // Feature used to hide the scheme from steady state URLs displayed in the |
| 18 | // toolbar. It is restored during editing. |
| 19 | const base::Feature kHideFileUrlScheme { |
| 20 | "OmniboxUIExperimentHideFileUrlScheme", |
| 21 | // Android and iOS don't have the File security chip, and therefore still |
| 22 | // need to show the file scheme. |
| 23 | #if defined(OS_ANDROID) || defined(OS_IOS) |
| 24 | base::FEATURE_DISABLED_BY_DEFAULT |
| 25 | #else |
| 26 | base::FEATURE_ENABLED_BY_DEFAULT |
| 27 | #endif |
| 28 | }; |
| 29 | |
| 30 | // Feature used to hide the scheme from steady state URLs displayed in the |
| 31 | // toolbar. It is restored during editing. |
Tommy C. Li | 7514ba8 | 2019-06-25 19:43:53 | [diff] [blame] | 32 | const base::Feature kHideSteadyStateUrlScheme{ |
| 33 | "OmniboxUIExperimentHideSteadyStateUrlScheme", |
| 34 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 35 | |
| 36 | // Feature used to hide trivial subdomains from steady state URLs displayed in |
| 37 | // the toolbar. It is restored during editing. |
Tommy C. Li | 7514ba8 | 2019-06-25 19:43:53 | [diff] [blame] | 38 | const base::Feature kHideSteadyStateUrlTrivialSubdomains{ |
| 39 | "OmniboxUIExperimentHideSteadyStateUrlTrivialSubdomains", |
| 40 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 41 | |
| 42 | // Feature used to hide the path, query and ref from steady state URLs |
| 43 | // displayed in the toolbar. It is restored during editing. |
| 44 | const base::Feature kHideSteadyStateUrlPathQueryAndRef { |
| 45 | "OmniboxUIExperimentHideSteadyStateUrlPathQueryAndRef", |
| 46 | #if defined(OS_IOS) |
| 47 | base::FEATURE_ENABLED_BY_DEFAULT |
| 48 | #else |
| 49 | base::FEATURE_DISABLED_BY_DEFAULT |
| 50 | #endif |
| 51 | }; |
| 52 | |
| 53 | // Feature used to undo all omnibox elisions on a single click or focus action. |
| 54 | const base::Feature kOneClickUnelide{"OmniboxOneClickUnelide", |
| 55 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 56 | |
manuk | addd3c4 | 2019-04-09 21:20:59 | [diff] [blame] | 57 | // Feature used to enable local entity suggestions. Similar to rich entities but |
| 58 | // but location specific. E.g., typing 'starbucks near' could display the local |
| 59 | // entity suggestion 'starbucks near disneyland \n starbucks * Anaheim, CA'. |
| 60 | const base::Feature kOmniboxLocalEntitySuggestions{ |
| 61 | "OmniboxLocalEntitySuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 62 | |
Kevin Bailey | b3e0873 | 2019-05-29 03:55:25 | [diff] [blame] | 63 | // Feature used to cap the number of URL-type matches shown within the |
| 64 | // Omnibox. If enabled, the number of URL-type matches is limited (unless |
| 65 | // there are no more non-URL matches available.) If enabled, there is a |
| 66 | // companion parameter - OmniboxMaxURLMatches - which specifies the maximum |
| 67 | // desired number of URL-type matches. |
Kevin Bailey | 2623886 | 2019-10-31 22:08:12 | [diff] [blame] | 68 | const base::Feature kOmniboxMaxURLMatches { |
| 69 | "OmniboxMaxURLMatches", |
| 70 | #if defined(OS_IOS) || defined(OS_ANDROID) |
| 71 | base::FEATURE_DISABLED_BY_DEFAULT |
| 72 | #else |
| 73 | base::FEATURE_ENABLED_BY_DEFAULT |
| 74 | #endif |
| 75 | }; |
Kevin Bailey | b3e0873 | 2019-05-29 03:55:25 | [diff] [blame] | 76 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 77 | // Feature used to enable entity suggestion images and enhanced presentation |
| 78 | // showing more context and descriptive text about the entity. |
| 79 | const base::Feature kOmniboxRichEntitySuggestions{ |
Justin Donnelly | 481a69c | 2019-05-03 20:41:42 | [diff] [blame] | 80 | "OmniboxRichEntitySuggestions", |
| 81 | #if defined(OS_IOS) || defined(OS_ANDROID) |
| 82 | base::FEATURE_DISABLED_BY_DEFAULT |
| 83 | #else |
| 84 | base::FEATURE_ENABLED_BY_DEFAULT |
| 85 | #endif |
| 86 | }; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 87 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 88 | // Feature used to enable swapping the rows on answers. |
| 89 | const base::Feature kOmniboxReverseAnswers{"OmniboxReverseAnswers", |
| 90 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 91 | |
Kevin Bailey | 7d918b9 | 2019-05-02 16:00:14 | [diff] [blame] | 92 | // Feature used to enable matching short words to bookmarks for suggestions. |
| 93 | const base::Feature kOmniboxShortBookmarkSuggestions{ |
| 94 | "OmniboxShortBookmarkSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 95 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 96 | // Feature used to force on the experiment of transmission of tail suggestions |
| 97 | // from GWS to this client, currently testing for desktop. |
| 98 | const base::Feature kOmniboxTailSuggestions{ |
| 99 | "OmniboxTailSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 100 | |
Kevin Bailey | 37bbf1d | 2019-08-21 19:23:55 | [diff] [blame] | 101 | // Feature that enables the tab-switch suggestions corresponding to an open |
| 102 | // tab, for a button or dedicated suggestion. Enabled by default on Desktop |
| 103 | // and iOS. |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 104 | const base::Feature kOmniboxTabSwitchSuggestions{ |
| 105 | "OmniboxTabSwitchSuggestions", |
Stepan Khapugin | b0980166 | 2019-05-07 10:17:04 | [diff] [blame] | 106 | #if defined(OS_ANDROID) |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 107 | base::FEATURE_DISABLED_BY_DEFAULT |
| 108 | #else |
| 109 | base::FEATURE_ENABLED_BY_DEFAULT |
| 110 | #endif |
| 111 | }; |
| 112 | |
Kevin Bailey | 37bbf1d | 2019-08-21 19:23:55 | [diff] [blame] | 113 | // Feature that enables tab-switch suggestions in their own row. |
| 114 | const base::Feature kOmniboxTabSwitchSuggestionsDedicatedRow{ |
| 115 | "OmniboxTabSwitchSuggestionsDedicatedRow", |
| 116 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 117 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 118 | // Feature used to enable various experiments on keyword mode, UI and |
| 119 | // suggestions. |
| 120 | const base::Feature kExperimentalKeywordMode{"OmniboxExperimentalKeywordMode", |
| 121 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 122 | |
| 123 | // Feature used to enable Pedal suggestions. |
| 124 | const base::Feature kOmniboxPedalSuggestions{"OmniboxPedalSuggestions", |
| 125 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 126 | |
Tommy C. Li | a2c75fb | 2019-04-08 20:22:34 | [diff] [blame] | 127 | // Feature used for UI that improves transparency of and control over omnibox |
Tommy Li | 9d12b4be | 2019-09-12 19:21:41 | [diff] [blame] | 128 | // suggestions. This includes "Why this Suggestion?" and user controls to delete |
| 129 | // personalized suggestions. This will be eventually enabled by default. |
Tommy C. Li | a2c75fb | 2019-04-08 20:22:34 | [diff] [blame] | 130 | const base::Feature kOmniboxSuggestionTransparencyOptions{ |
| 131 | "OmniboxSuggestionTransparencyOptions", base::FEATURE_DISABLED_BY_DEFAULT}; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 132 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 133 | // Feature to enable clipboard provider to suggest copied text. |
| 134 | const base::Feature kEnableClipboardProviderTextSuggestions{ |
Robbie Gibson | 85cef318 | 2019-07-21 15:10:29 | [diff] [blame] | 135 | "OmniboxEnableClipboardProviderTextSuggestions", |
| 136 | #if defined(OS_IOS) |
| 137 | base::FEATURE_ENABLED_BY_DEFAULT |
| 138 | #else |
| 139 | base::FEATURE_DISABLED_BY_DEFAULT |
| 140 | #endif |
| 141 | }; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 142 | |
| 143 | // Feature to enable clipboard provider to suggest searching for copied images. |
| 144 | const base::Feature kEnableClipboardProviderImageSuggestions{ |
Robbie Gibson | 85cef318 | 2019-07-21 15:10:29 | [diff] [blame] | 145 | "OmniboxEnableClipboardProviderImageSuggestions", |
| 146 | #if defined(OS_IOS) |
| 147 | base::FEATURE_ENABLED_BY_DEFAULT |
| 148 | #else |
| 149 | base::FEATURE_DISABLED_BY_DEFAULT |
| 150 | #endif |
| 151 | }; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 152 | |
| 153 | // Feature to enable the search provider to send a request to the suggest |
| 154 | // server on focus. This allows the suggest server to warm up, by, for |
| 155 | // example, loading per-user models into memory. Having a per-user model |
| 156 | // in memory allows the suggest server to respond more quickly with |
| 157 | // personalized suggestions as the user types. |
| 158 | const base::Feature kSearchProviderWarmUpOnFocus{ |
| 159 | "OmniboxWarmUpSearchProviderOnFocus", |
| 160 | #if defined(OS_IOS) |
| 161 | base::FEATURE_DISABLED_BY_DEFAULT |
| 162 | #else |
| 163 | base::FEATURE_ENABLED_BY_DEFAULT |
| 164 | #endif |
| 165 | }; |
| 166 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 167 | // Feature used to display the title of the current URL match. |
| 168 | const base::Feature kDisplayTitleForCurrentUrl{ |
| 169 | "OmniboxDisplayTitleForCurrentUrl", |
| 170 | #if !defined(OS_IOS) |
| 171 | base::FEATURE_ENABLED_BY_DEFAULT |
| 172 | #else |
| 173 | base::FEATURE_DISABLED_BY_DEFAULT |
| 174 | #endif |
| 175 | }; |
| 176 | |
| 177 | // Feature used for the max autocomplete matches UI experiment. |
| 178 | const base::Feature kUIExperimentMaxAutocompleteMatches{ |
| 179 | "OmniboxUIExperimentMaxAutocompleteMatches", |
| 180 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 181 | |
| 182 | // Feature used to display the search terms instead of the URL in the Omnibox |
| 183 | // when the user is on the search results page of the default search provider. |
| 184 | const base::Feature kQueryInOmnibox{"QueryInOmnibox", |
| 185 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 186 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 187 | // Feature used to always swap the title and URL. |
| 188 | const base::Feature kUIExperimentSwapTitleAndUrl{ |
| 189 | "OmniboxUIExperimentSwapTitleAndUrl", |
| 190 | #if defined(OS_IOS) || defined(OS_ANDROID) |
| 191 | base::FEATURE_DISABLED_BY_DEFAULT |
| 192 | #else |
| 193 | base::FEATURE_ENABLED_BY_DEFAULT |
| 194 | #endif |
| 195 | }; |
| 196 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 197 | // Feature used to enable speculatively starting a service worker associated |
| 198 | // with the destination of the default match when the user's input looks like a |
| 199 | // query. |
| 200 | const base::Feature kSpeculativeServiceWorkerStartOnQueryInput{ |
| 201 | "OmniboxSpeculativeServiceWorkerStartOnQueryInput", |
| 202 | base::FEATURE_ENABLED_BY_DEFAULT |
| 203 | }; |
| 204 | |
| 205 | // Feature used to fetch document suggestions. |
| 206 | const base::Feature kDocumentProvider{"OmniboxDocumentProvider", |
| 207 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 208 | |
manuk | 4542e23 | 2019-09-11 19:27:35 | [diff] [blame] | 209 | // Feature used to autocomplete bookmark, history, and document suggestions when |
| 210 | // the user input is a prefix of their titles, as opposed to their URLs. |
| 211 | const base::Feature kAutocompleteTitles{"OmniboxAutocompleteTitles", |
| 212 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 213 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 214 | // Feature to use material design weather icons in the omnibox when displaying |
| 215 | // weather answers. |
| 216 | const base::Feature kOmniboxMaterialDesignWeatherIcons{ |
manuk | 9a2ed55 | 2019-09-09 23:45:44 | [diff] [blame] | 217 | "OmniboxMaterialDesignWeatherIcons", base::FEATURE_ENABLED_BY_DEFAULT}; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 218 | |
Patrick Noland | 2b4968b | 2019-06-27 14:50:26 | [diff] [blame] | 219 | // Returns whether IsInstantExtendedAPIEnabled should be ignored when deciding |
| 220 | // the number of Google-provided search suggestions. |
| 221 | const base::Feature kOmniboxDisableInstantExtendedLimit{ |
| 222 | "OmniboxDisableInstantExtendedLimit", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 223 | |
Brandon Wylie | f8dd4e8 | 2019-07-11 16:39:57 | [diff] [blame] | 224 | // Show the search engine logo in the omnibox on Android (desktop already does |
| 225 | // this). |
| 226 | const base::Feature kOmniboxSearchEngineLogo{"OmniboxSearchEngineLogo", |
| 227 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 228 | |
manuk | bf3c8ab | 2019-10-24 16:52:08 | [diff] [blame] | 229 | // Feature used to allow users to remove suggestions from clipboard. |
| 230 | const base::Feature kOmniboxRemoveSuggestionsFromClipboard{ |
| 231 | "OmniboxRemoveSuggestionsFromClipboard", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 232 | |
| 233 | // Feature to provide non personalized head search suggestion from a compact |
| 234 | // on device model. |
| 235 | const base::Feature kOnDeviceHeadProvider{"OmniboxOnDeviceHeadProvider", |
| 236 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 237 | |
| 238 | // Feature to debounce drive requests from the document provider. |
| 239 | const base::Feature kDebounceDocumentProvider{ |
| 240 | "OmniboxDebounceDocumentProvider", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 241 | |
Tommy Li | 6390ecc | 2019-09-06 21:08:57 | [diff] [blame] | 242 | // Preserves the default match against change when providers return results |
| 243 | // asynchronously. This prevents the default match from changing after the user |
| 244 | // finishes typing. Without this feature, if the default match is updated right |
| 245 | // when the user presses Enter, the user may go to a surprising destination. |
| 246 | const base::Feature kOmniboxPreserveDefaultMatchAgainstAsyncUpdate{ |
| 247 | "OmniboxPreserveDefaultMatchAgainstAsyncUpdate", |
Tommy Li | 2b9db03 | 2020-03-02 22:12:14 | [diff] [blame^] | 248 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Tommy Li | 6390ecc | 2019-09-06 21:08:57 | [diff] [blame] | 249 | |
manuk | 7b89f664 | 2019-11-08 19:25:24 | [diff] [blame] | 250 | // Demotes the relevance scores when comparing suggestions based on the |
| 251 | // suggestion's |AutocompleteMatchType| and the user's |PageClassification|. |
| 252 | // This feature's main job is to contain the DemoteByType parameter. |
| 253 | const base::Feature kOmniboxDemoteByType{"OmniboxDemoteByType", |
| 254 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 255 | |
Tommy C. Li | 09010551 | 2019-05-16 22:00:56 | [diff] [blame] | 256 | // Feature to configure on-focus suggestions provided by ZeroSuggestProvider. |
Tommy C. Li | 414f2202 | 2019-06-07 23:46:22 | [diff] [blame] | 257 | // This feature's main job is to contain some field trial parameters such as: |
| 258 | // - "ZeroSuggestVariant" configures the per-page-classification mode of |
| 259 | // ZeroSuggestProvider. |
Tommy C. Li | 09010551 | 2019-05-16 22:00:56 | [diff] [blame] | 260 | const base::Feature kOnFocusSuggestions{"OmniboxOnFocusSuggestions", |
| 261 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 262 | |
Tomasz Wiszkowski | 947f6d0d | 2019-03-15 22:27:25 | [diff] [blame] | 263 | // Allow suggestions to be shown to the user on the New Tab Page upon focusing |
| 264 | // URL bar (the omnibox). |
| 265 | const base::Feature kZeroSuggestionsOnNTP{"OmniboxZeroSuggestionsOnNTP", |
| 266 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 267 | |
Moe Ahmadi | 4005ec9 | 2019-09-09 16:55:53 | [diff] [blame] | 268 | // Allow suggestions to be shown to the user on the New Tab Page upon focusing |
| 269 | // the real search box. |
| 270 | const base::Feature kZeroSuggestionsOnNTPRealbox{ |
| 271 | "OmniboxZeroSuggestionsOnNTPRealbox", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 272 | |
Tommy Li | 1d03b9bf | 2019-09-23 23:46:34 | [diff] [blame] | 273 | // Allow on-focus query refinements to be shown on the default SERP. |
| 274 | const base::Feature kZeroSuggestionsOnSERP{"OmniboxZeroSuggestionsOnSERP", |
| 275 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 276 | |
Justin Donnelly | f270348 | 2019-10-24 21:42:15 | [diff] [blame] | 277 | // If enabled, changes the way Google-provided search suggestions are scored by |
| 278 | // the backend. Note that this Feature is only used for triggering a server- |
| 279 | // side experiment config that will send experiment IDs to the backend. It is |
| 280 | // not referred to in any of the Chromium code. |
| 281 | const base::Feature kOmniboxExperimentalSuggestScoring{ |
| 282 | "OmniboxExperimentalSuggestScoring", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 283 | |
manukh | 3bb80c9 | 2020-01-22 00:19:46 | [diff] [blame] | 284 | // If disabled, terms with no wordstart matches disqualify the suggestion unless |
| 285 | // they occur in the URL host. If enabled, terms with no wordstart matches are |
| 286 | // allowed but not scored. E.g., both inputs 'java script' and 'java cript' will |
| 287 | // match a suggestion titled 'javascript' and score equivalently. |
manukh | 5ff0f58 | 2020-01-14 03:54:13 | [diff] [blame] | 288 | const base::Feature kHistoryQuickProviderAllowButDoNotScoreMidwordTerms{ |
| 289 | "OmniboxHistoryQuickProviderAllowButDoNotScoreMidwordTerms", |
| 290 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 291 | |
manukh | 3bb80c9 | 2020-01-22 00:19:46 | [diff] [blame] | 292 | // If disabled, midword matches are ignored except in the URL host, and input |
| 293 | // terms with no wordstart matches are scored 0, resulting in an overall score |
| 294 | // of 0. If enabled, midword matches are allowed and scored when they begin |
| 295 | // immediately after the previous match ends. E.g. 'java script' will match a |
| 296 | // suggestion titled 'javascript' but the input 'java cript' won't. |
manukh | 5ff0f58 | 2020-01-14 03:54:13 | [diff] [blame] | 297 | const base::Feature kHistoryQuickProviderAllowMidwordContinuations{ |
| 298 | "OmniboxHistoryQuickProviderAllowMidwordContinuations", |
| 299 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 300 | |
Tomasz Wiszkowski | 70fb35f | 2020-02-27 00:39:19 | [diff] [blame] | 301 | // If enabled, shows slightly more compact suggestions, allowing the |
| 302 | // kAdaptiveSuggestionsCount feature to fit more suggestions on screen. |
| 303 | const base::Feature kCompactSuggestions{"OmniboxCompactSuggestions", |
| 304 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 305 | |
Tommy Li | 7c2bf49 | 2019-10-22 19:34:23 | [diff] [blame] | 306 | // If enabled, shows a confirm dialog before removing search suggestions from |
| 307 | // the omnibox. See ConfirmNtpSuggestionRemovals for the NTP equivalent. |
| 308 | const base::Feature kConfirmOmniboxSuggestionRemovals{ |
| 309 | "ConfirmOmniboxSuggestionRemovals", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 310 | |
Tomasz Wiszkowski | 70fb35f | 2020-02-27 00:39:19 | [diff] [blame] | 311 | // If enabled, defers keyboard popup when user highlights the omnibox until |
| 312 | // the user taps the Omnibox again. |
| 313 | extern const base::Feature kDeferredKeyboardPopup{ |
| 314 | "OmniboxDeferredKeyboardPopup", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 315 | |
Kevin Bailey | 104e4449 | 2019-10-31 16:42:32 | [diff] [blame] | 316 | // Feature that enables not counting submatches towards the maximum |
| 317 | // suggestion limit. |
| 318 | const base::Feature kOmniboxLooseMaxLimitOnDedicatedRows{ |
| 319 | "OmniboxLooseMaxLimitOnDedicatedRows", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 320 | |
Orin Jaworski | fc17472 | 2020-01-29 00:32:22 | [diff] [blame] | 321 | // Feature that puts a single row of buttons on suggestions with actionable |
| 322 | // elements like keywords, tab-switch buttons, and Pedals. |
| 323 | const base::Feature kOmniboxSuggestionButtonRow{ |
| 324 | "OmniboxSuggestionButtonRow", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 325 | |
| 326 | // If enabled, allows Tab and Shift+Tab to escape the focus out of the omnibox |
| 327 | // popup. Otherwise, Tab infinitely loops between suggestions in the popup. |
| 328 | const base::Feature kTabKeyCanEscapeOmniboxPopup{ |
| 329 | "TabKeyCanEscapeOmniboxPopup", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 330 | |
Tommy Li | 1f1fc4a | 2020-01-31 21:02:07 | [diff] [blame] | 331 | // If enabled, uses WebUI to render the omnibox suggestions popup, similar to |
| 332 | // how the NTP "fakebox" is implemented. |
| 333 | const base::Feature kWebUIOmniboxPopup{"WebUIOmniboxPopup", |
| 334 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 335 | |
Brandon Wylie | 1299ff8 | 2020-01-23 02:13:37 | [diff] [blame] | 336 | // When enabled, use Assistant for omnibox voice query recognition instead of |
| 337 | // Android's built-in voice recognition service. Only works on Android. |
| 338 | const base::Feature kOmniboxAssistantVoiceSearch{ |
| 339 | "OmniboxAssistantVoiceSearch", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 340 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 341 | } // namespace omnibox |