chromium/components/lens/lens_features.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/lens/lens_features.h"

#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "build/build_config.h"

namespace lens::features {

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

const base::FeatureParam<int> kLensOverlayMinRamMb{};
const base::FeatureParam<std::string> kActivityUrl{};
const base::FeatureParam<std::string> kHelpCenterUrl{};
const base::FeatureParam<std::string> kResultsSearchUrl{};
const base::FeatureParam<int> kLensOverlayScreenshotRenderQuality{};
const base::FeatureParam<int> kLensOverlayImageCompressionQuality{};
const base::FeatureParam<bool> kLensOverlayUseTieredDownscaling{};
const base::FeatureParam<bool> kLensOverlaySendLatencyGen204{};
const base::FeatureParam<bool> kLensOverlaySendTaskCompletion204{};
const base::FeatureParam<int> kLensOverlayImageMaxArea{};
const base::FeatureParam<int> kLensOverlayImageMaxHeight{};
const base::FeatureParam<int> kLensOverlayImageMaxWidth{};
const base::FeatureParam<int> kLensOverlayImageMaxAreaTier1{};
const base::FeatureParam<int> kLensOverlayImageMaxHeightTier1{};
const base::FeatureParam<int> kLensOverlayImageMaxWidthTier1{};
const base::FeatureParam<int> kLensOverlayImageMaxAreaTier2{};
const base::FeatureParam<int> kLensOverlayImageMaxHeightTier2{};
const base::FeatureParam<int> kLensOverlayImageMaxWidthTier2{};
const base::FeatureParam<int> kLensOverlayImageMaxAreaTier3{};
const base::FeatureParam<int> kLensOverlayImageMaxHeightTier3{};
const base::FeatureParam<int> kLensOverlayImageMaxWidthTier3{};
const base::FeatureParam<int> kLensOverlayImageDownscaleUiScalingFactor{};
const base::FeatureParam<bool> kLensOverlayDebuggingMode{};
const base::FeatureParam<int> kLensOverlayVerticalTextMargin{};
const base::FeatureParam<int> kLensOverlayHorizontalTextMargin{};
const base::FeatureParam<bool> kLensOverlaySearchBubble{};
const base::FeatureParam<bool> kLensOverlayEnableShimmer{};
const base::FeatureParam<bool> kLensOverlayEnableShimmerSparkles{};
const base::FeatureParam<std::string> kResultsSearchLoadingUrl{};
const base::FeatureParam<std::string> kResultsSearchLoadingDarkModeUrl{};
const base::FeatureParam<bool> kLensOverlayUseShimmerCanvas{};

const base::FeatureParam<bool> kLensOverlayGoogleDseRequired{};

const base::FeatureParam<bool> kUseLensOverlayForImageSearch{};

const base::FeatureParam<bool> kUseLensOverlayForVideoFrameSearch{};

const base::FeatureParam<bool> kIsFindInPageEntryPointEnabled{};

const base::FeatureParam<bool> kIsOmniboxEntryPointEnabled{};

constexpr base::FeatureParam<bool> kIsOmniboxEntrypointAlwaysVisible{};

const base::FeatureParam<bool> kUseBrowserDarkModeSettingForLensOverlay{};

const base::FeatureParam<bool> kDynamicThemeForLensOverlay{};

const base::FeatureParam<double> kDynamicThemeMinPopulationPct{};

const base::FeatureParam<double> kDynamicThemeMinChroma{};

const base::FeatureParam<bool>
    kSendVisualSearchInteractionParamForLensTextQueries{};

constexpr base::FeatureParam<std::string> kLensOverlayEndpointUrl{};

constexpr base::FeatureParam<bool> kUseOauthForLensOverlayRequests{};

constexpr base::FeatureParam<int> kLensOverlayClusterInfoLifetimeSeconds{};

constexpr base::FeatureParam<bool>
    kUseSearchContextForTextOnlyLensOverlayRequests{};

constexpr base::FeatureParam<bool>
    kUseSearchContextForMultimodalLensOverlayRequests{};

constexpr base::FeatureParam<int> kLensOverlayTapRegionHeight{};
constexpr base::FeatureParam<int> kLensOverlayTapRegionWidth{};

constexpr base::FeatureParam<double>
    kLensOverlaySelectTextOverRegionTriggerThreshold{};

constexpr base::FeatureParam<int> kLensOverlaySignificantRegionMinArea{};

constexpr base::FeatureParam<int> kLensOverlayMaxSignificantRegions{};

constexpr base::FeatureParam<int> kLensOverlayLivePageBlurRadiusPixels{};

constexpr base::FeatureParam<double>
    kLensOverlayPostSelectionComparisonThreshold{};

constexpr base::FeatureParam<int> kLensOverlayServerRequestTimeout{};

constexpr base::FeatureParam<bool> kLensOverlayEnableErrorPage{};

constexpr base::FeatureParam<std::string> kLensOverlayGscQueryParamValue{};

const base::FeatureParam<bool> kLensOverlayEnableInFullscreen{};

constexpr base::FeatureParam<int> kLensOverlaySegmentationMaskCornerRadius{};

constexpr base::FeatureParam<int> kLensOverlayFindBarStringsVariant{};

constexpr base::FeatureParam<std::string> kHomepageURLForLens{};

constexpr base::FeatureParam<bool> kEnableLensHtmlRedirectFix{};

constexpr base::FeatureParam<bool>
    kDismissLoadingStateOnDocumentOnLoadCompletedInPrimaryMainFrame{};

constexpr base::FeatureParam<bool> kDismissLoadingStateOnDomContentLoaded{};

constexpr base::FeatureParam<bool> kDismissLoadingStateOnDidFinishNavigation{};

constexpr base::FeatureParam<bool>
    kDismissLoadingStateOnNavigationEntryCommitted{};

constexpr base::FeatureParam<bool> kShouldIssuePreconnectForLens{};

constexpr base::FeatureParam<std::string> kPreconnectKeyForLens{};

constexpr base::FeatureParam<bool> kShouldIssueProcessPrewarmingForLens{};

constexpr base::FeatureParam<bool> kDismissLoadingStateOnDidFinishLoad{};

constexpr base::FeatureParam<bool> kDismissLoadingStateOnPrimaryPageChanged{};

const base::FeatureParam<bool> kEnableLensFullscreenSearch{};

bool GetEnableLatencyLogging() {}

std::string GetHomepageURLForLens() {}

bool GetEnableLensHtmlRedirectFix() {}

bool GetDismissLoadingStateOnDocumentOnLoadCompletedInPrimaryMainFrame() {}

bool GetDismissLoadingStateOnDomContentLoaded() {}

bool GetDismissLoadingStateOnDidFinishNavigation() {}

bool GetDismissLoadingStateOnNavigationEntryCommitted() {}

bool GetDismissLoadingStateOnDidFinishLoad() {}

bool GetDismissLoadingStateOnPrimaryPageChanged() {}

bool GetEnableImageSearchUnifiedSidePanelFor3PDse() {}

bool IsLensFullscreenSearchEnabled() {}

bool IsLensSidePanelEnabled() {}

bool IsLensRegionSearchStaticPageEnabled() {}

bool GetEnableContextMenuInLensSidePanel() {}

bool GetShouldIssuePreconnectForLens() {}

std::string GetPreconnectKeyForLens() {}

bool GetShouldIssueProcessPrewarmingForLens() {}

bool IsLensOverlayEnabled() {}

std::string GetLensOverlayActivityURL() {}

std::string GetLensOverlayHelpCenterURL() {}

int GetLensOverlayMinRamMb() {}

std::string GetLensOverlayResultsSearchURL() {}

int GetLensOverlayImageCompressionQuality() {}

int GetLensOverlayScreenshotRenderQuality() {}

int GetLensOverlayImageMaxAreaTier1() {}

int GetLensOverlayImageMaxHeightTier1() {}

bool LensOverlayUseTieredDownscaling() {}

bool GetLensOverlaySendLatencyGen204() {}

bool GetLensOverlaySendTaskCompletionGen204() {}

int GetLensOverlayImageMaxArea() {}

int GetLensOverlayImageMaxHeight() {}

int GetLensOverlayImageMaxWidth() {}

int GetLensOverlayImageMaxWidthTier1() {}

int GetLensOverlayImageMaxAreaTier2() {}

int GetLensOverlayImageMaxHeightTier2() {}

int GetLensOverlayImageMaxWidthTier2() {}

int GetLensOverlayImageMaxAreaTier3() {}

int GetLensOverlayImageMaxHeightTier3() {}

int GetLensOverlayImageMaxWidthTier3() {}

int GetLensOverlayImageDownscaleUiScalingFactorThreshold() {}

std::string GetLensOverlayEndpointURL() {}

bool IsLensOverlayDebuggingEnabled() {}

bool UseOauthForLensOverlayRequests() {}

int GetLensOverlayClusterInfoLifetimeSeconds() {}

bool UseSearchContextForTextOnlyLensOverlayRequests() {}

bool UseSearchContextForMultimodalLensOverlayRequests() {}

int GetLensOverlayVerticalTextMargin() {}

int GetLensOverlayHorizontalTextMargin() {}

bool IsLensOverlaySearchBubbleEnabled() {}

bool IsLensOverlayShimmerEnabled() {}

bool IsLensOverlayShimmerSparklesEnabled() {}

bool IsLensOverlayGoogleDseRequired() {}

std::string GetLensOverlayResultsSearchLoadingURL(bool dark_mode) {}

int GetLensOverlayTapRegionHeight() {}

int GetLensOverlayTapRegionWidth() {}

bool UseLensOverlayForImageSearch() {}

bool UseLensOverlayForVideoFrameSearch() {}

bool IsFindInPageEntryPointEnabled() {}

bool IsOmniboxEntryPointEnabled() {}

bool IsOmniboxEntrypointAlwaysVisible() {}

bool UseBrowserDarkModeSettingForLensOverlay() {}

bool IsDynamicThemeDetectionEnabled() {}

double DynamicThemeMinPopulationPct() {}

double DynamicThemeMinChroma() {}

bool SendVisualSearchInteractionParamForLensTextQueries() {}

double GetLensOverlaySelectTextOverRegionTriggerThreshold() {}

bool GetLensOverlayUseShimmerCanvas() {}

int GetLensOverlaySignificantRegionMinArea() {}

int GetLensOverlayMaxSignificantRegions() {}

double GetLensOverlayPostSelectionComparisonThreshold() {}

int GetLensOverlayLivePageBlurRadiusPixels() {}

int GetLensOverlayServerRequestTimeout() {}

bool GetLensOverlayEnableErrorPage() {}

std::string GetLensOverlayGscQueryParamValue() {}

bool GetLensOverlayEnableInFullscreen() {}

int GetLensOverlaySegmentationMaskCornerRadius() {}

int GetLensOverlayFindBarStringsVariant() {}

bool IsLensOverlayTranslateButtonEnabled() {}

}  // namespace lens::features