omnibox_features.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. #ifndef COMPONENTS_OMNIBOX_COMMON_OMNIBOX_FEATURES_H_
  5. #define COMPONENTS_OMNIBOX_COMMON_OMNIBOX_FEATURES_H_
  6. #include "base/feature_list.h"
  7. #include "base/metrics/field_trial_params.h"
  8. namespace omnibox {
  9. // Please do not add more features to this "big blob" list.
  10. // Instead, use the categorized and alphabetized lists below this "big blob".
  11. // You can create a new category if none of the existing ones fit.
  12. extern const base::Feature kExperimentalKeywordMode;
  13. extern const base::Feature kImageSearchSuggestionThumbnail;
  14. extern const base::Feature kOmniboxRemoveSuggestionsFromClipboard;
  15. extern const base::Feature kAndroidAuxiliarySearch;
  16. // Flags that affect the "twiddle" step of AutocompleteResult, i.e. SortAndCull.
  17. extern const base::Feature kAutocompleteStability;
  18. extern const base::Feature kOmniboxDemoteByType;
  19. // Features below this line should be sorted alphabetically by their comments.
  20. // Num suggestions - these affect how many suggestions are shown based on e.g.
  21. // focus, page context, provider, or URL v non-URL.
  22. extern const base::Feature kMaxZeroSuggestMatches;
  23. extern const base::Feature kUIExperimentMaxAutocompleteMatches;
  24. // The default value is established here as a bool so it can be referred to in
  25. // OmniboxFieldTrial.
  26. extern const bool kOmniboxMaxURLMatchesEnabledByDefault;
  27. extern const base::Feature kOmniboxMaxURLMatches;
  28. extern const base::Feature kDynamicMaxAutocomplete;
  29. extern const base::Feature kRetainSuggestionsWithHeaders;
  30. // Local history zero-prefix (aka zero-suggest) and prefix suggestions.
  31. extern const base::Feature kAdjustLocalHistoryZeroSuggestRelevanceScore;
  32. extern const base::Feature kClobberTriggersContextualWebZeroSuggest;
  33. extern const base::Feature kClobberTriggersSRPZeroSuggest;
  34. extern const base::Feature kFocusTriggersContextualWebZeroSuggest;
  35. extern const base::Feature kFocusTriggersSRPZeroSuggest;
  36. extern const base::Feature kLocalHistorySuggestRevamp;
  37. extern const base::Feature kLocalHistoryZeroSuggestBeyondNTP;
  38. extern const base::Feature kOmniboxLocalZeroSuggestAgeThreshold;
  39. extern const base::Feature kZeroSuggestOnNTPForSignedOutUsers;
  40. extern const base::Feature kZeroSuggestPrefetching;
  41. extern const base::Feature kZeroSuggestPrefetchingOnSRP;
  42. extern const base::Feature kZeroSuggestPrefetchingOnWeb;
  43. // Related, kMaxZeroSuggestMatches.
  44. // On Device Head Suggest.
  45. extern const base::Feature kOnDeviceHeadProviderIncognito;
  46. extern const base::Feature kOnDeviceHeadProviderNonIncognito;
  47. // Provider-specific - These features change the behavior of specific providers.
  48. extern const base::Feature kOmniboxExperimentalSuggestScoring;
  49. extern const base::Feature kHistoryQuickProviderAblateInMemoryURLIndexCacheFile;
  50. extern const base::Feature kDisableCGIParamMatching;
  51. extern const base::Feature kShortBookmarkSuggestions;
  52. extern const base::Feature kShortBookmarkSuggestionsByTotalInputLength;
  53. extern const base::Feature kBookmarkPaths;
  54. extern const base::Feature kAggregateShortcuts;
  55. extern const base::Feature kShortcutExpanding;
  56. // TODO(crbug.com/1202964): Clean up feature flag used in staged roll-out of
  57. // various CLs related to the contents/description clean-up work.
  58. extern const base::Feature kStoreTitleInContentsAndUrlInDescription;
  59. // Document provider
  60. extern const base::Feature kDocumentProvider;
  61. extern const base::Feature kDocumentProviderAso;
  62. // Suggestions UI - these affect the UI or function of the suggestions popup.
  63. extern const base::Feature kAdaptiveSuggestionsCount;
  64. extern const base::Feature kClipboardSuggestionContentHidden;
  65. extern const base::Feature kDocumentProviderDedupingOptimization;
  66. extern const base::Feature kSuggestionAnswersColorReverse;
  67. extern const base::Feature kMostVisitedTiles;
  68. extern const base::Feature kMostVisitedTilesDynamicSpacing;
  69. extern const base::Feature kMostVisitedTilesTitleWrapAround;
  70. extern const base::Feature kRichAutocompletion;
  71. extern const base::Feature kNtpRealboxPedals;
  72. extern const base::Feature kNtpRealboxSuggestionAnswers;
  73. extern const base::Feature kNtpRealboxTailSuggest;
  74. extern const base::Feature kOmniboxFuzzyUrlSuggestions;
  75. extern const base::Feature kOmniboxHeaderPaddingUpdate;
  76. extern const base::Feature kOmniboxRemoveSuggestionHeaderCapitalization;
  77. extern const base::Feature kOmniboxRemoveSuggestionHeaderChevron;
  78. extern const base::Feature kOmniboxMostVisitedTilesFadingOnTablet;
  79. extern const base::Feature kOmniboxMostVisitedTilesOnSrp;
  80. extern const base::Feature kStrippedGurlOptimization;
  81. // Omnibox UI - these affect the UI or function of the location bar (not the
  82. // popup).
  83. extern const base::Feature kOmniboxAssistantVoiceSearch;
  84. // Omnibox & Suggestions UI - these affect both the omnibox and the suggestions
  85. // popup.
  86. extern const base::Feature kClosePopupWithEscape;
  87. extern const base::Feature kBlurWithEscape;
  88. // Settings Page - these affect the appearance of the Search Engines settings
  89. // page
  90. extern const base::Feature kSiteSearchStarterPack;
  91. // Experiment to introduce new security indicators for HTTPS.
  92. extern const base::Feature kUpdatedConnectionSecurityIndicators;
  93. // Navigation experiments.
  94. extern const base::Feature kDefaultTypedNavigationsToHttps;
  95. extern const char kDefaultTypedNavigationsToHttpsTimeoutParam[];
  96. // Omnibox Logging.
  97. extern const base::Feature kReportAssistedQueryStats;
  98. extern const base::Feature kReportSearchboxStats;
  99. } // namespace omnibox
  100. #endif // COMPONENTS_OMNIBOX_COMMON_OMNIBOX_FEATURES_H_