File: compose_features.h

package info (click to toggle)
chromium 139.0.7258.138-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,120,676 kB
  • sloc: cpp: 35,100,869; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (88 lines) | stat: -rw-r--r-- 3,250 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// 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"
#include "base/metrics/field_trial_params.h"

namespace compose::features {

// Controls whether the Compose feature is available
BASE_DECLARE_FEATURE(kEnableCompose);

// 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 saved state notification is shown.
BASE_DECLARE_FEATURE(kEnableComposeSavedStateNotification);

// Controls whether or not the nudge displays at the cursor.
BASE_DECLARE_FEATURE(kEnableComposeNudgeAtCursor);

// Controls whether or not the nudge should be shown on text selection.
BASE_DECLARE_FEATURE(kEnableComposeSelectionNudge);

// Controls whether the language check is bypassed for the context menu option.
BASE_DECLARE_FEATURE(kEnableComposeLanguageBypassForContextMenu);

// 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 animation of text output. Applies only to on-device evaluation.
BASE_DECLARE_FEATURE(kComposeTextOutputAnimation);

// Enables client-side timeout of a Compose request.
BASE_DECLARE_FEATURE(kComposeRequestLatencyTimeout);

// Default nudge allow/deny decision for unspecified hint.
BASE_DECLARE_FEATURE(kEnableNudgeForUnspecifiedHint);

// A kill switch for additional metrics added to ComposeTextUsageLogger.
BASE_DECLARE_FEATURE(kEnableAdditionalTextMetrics);

// 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);

// Enables on-device execution, if available.
BASE_DECLARE_FEATURE(kComposeAllowOnDeviceExecution);

// Enables or disables upfront input modes in the dialog.
BASE_DECLARE_FEATURE(kComposeUpfrontInputModes);

}  // namespace compose::features

#endif  // COMPONENTS_COMPOSE_CORE_BROWSER_COMPOSE_FEATURES_H_