blob: 02d0fc7ba5b0a193ade0255cf380f72b76d34c42 [file]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_COMPOSE_CORE_BROWSER_COMPOSE_FEATURES_H_
#define COMPONENTS_COMPOSE_CORE_BROWSER_COMPOSE_FEATURES_H_
#include "base/feature_list.h"
namespace compose::features {
// Has flags for tweaking the valid sizes of input.
BASE_DECLARE_FEATURE(kComposeInputParams);
// Enables/disables inner text context gathering.
BASE_DECLARE_FEATURE(kComposeInnerText);
// Enables/disables inner text context gathering.
BASE_DECLARE_FEATURE(kComposeAXSnapshot);
// Enables Auto-submit of compose with a valid selection.
BASE_DECLARE_FEATURE(kComposeAutoSubmit);
// Force compose off even if enabled by other switches..
BASE_DECLARE_FEATURE(kComposeEligible);
// Controls whether or not the saved state nudge is enabled.
BASE_DECLARE_FEATURE(kEnableComposeSavedStateNudge);
// Controls whether or not the proactive nudge is enabled.
BASE_DECLARE_FEATURE(kEnableComposeProactiveNudge);
// Controls whether or not the Compose WebUI dialog has animations.
BASE_DECLARE_FEATURE(kEnableComposeWebUIAnimations);
// Controls whether to enable the dogfood footer when on device evaluation is
// used.
BASE_DECLARE_FEATURE(kEnableComposeOnDeviceDogfoodFooter);
// Controls parameters around UI rendering.
BASE_DECLARE_FEATURE(kComposeUiParams);
// Enables client-side timeout of a Compose request.
BASE_DECLARE_FEATURE(kComposeRequestLatencyTimeout);
// Default nudge allow/deny decision for unspecified hint.
BASE_DECLARE_FEATURE(kEnableNudgeForUnspecifiedHint);
// Enables or disables the Happiness Tracking System for Compose acceptance.
BASE_DECLARE_FEATURE(kHappinessTrackingSurveysForComposeAcceptance);
// Enables or disables the Happiness Tracking System for Compose on close.
BASE_DECLARE_FEATURE(kHappinessTrackingSurveysForComposeClose);
// Enables or disables the Happiness Tracking System for nudge dismissal.
BASE_DECLARE_FEATURE(kHappinessTrackingSurveysForComposeNudgeClose);
// If enabled, Compose nudges are hidden asynchronously to avoid reentrant
// AutofillManager::Observer calls. See crbug.com/501120730 for details.
BASE_DECLARE_FEATURE(kComposeHideComposeNudgesAsynchronously);
} // namespace compose::features
#endif // COMPONENTS_COMPOSE_CORE_BROWSER_COMPOSE_FEATURES_H_