summaryrefslogtreecommitdiff
path: root/chromium/ui/events/ozone/features.cc
blob: 0297d76a0184f4b7cac9c4d3e37007b836036a99 (plain)
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
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/events/ozone/features.h"

namespace ui {

const base::Feature kEnableHeuristicPalmDetectionFilter{
    "EnableHeuristicPalmDetectionFilter", base::FEATURE_DISABLED_BY_DEFAULT};

const base::Feature kEnableNeuralPalmDetectionFilter{
    "EnableNeuralPalmDetectionFilter", base::FEATURE_DISABLED_BY_DEFAULT};

const base::Feature kEnableNeuralPalmAdaptiveHold{
    "EnableNeuralPalmAdaptiveHold", base::FEATURE_DISABLED_BY_DEFAULT};

const base::Feature kEnableNeuralPalmRejectionModelV2{
    "EnableNeuralPalmRejectionModelV2", base::FEATURE_DISABLED_BY_DEFAULT};

const base::Feature kEnableNeuralStylusReportFilter{
    "EnableNeuralStylusReportFilter", base::FEATURE_DISABLED_BY_DEFAULT};

// TODO(b/171249701): Remove this flag when we can support this in all cases.
const base::Feature kEnableOrdinalMotion{"EnableOrdinalMotion",
                                         base::FEATURE_DISABLED_BY_DEFAULT};

const base::Feature kEnablePalmOnMaxTouchMajor{
    "EnablePalmOnMaxTouchMajor", base::FEATURE_ENABLED_BY_DEFAULT};

const base::Feature kEnablePalmOnToolTypePalm{"EnablePalmOnToolTypePalm",
                                              base::FEATURE_ENABLED_BY_DEFAULT};

const base::Feature kEnablePalmSuppression{"EnablePalmSuppression",
                                           base::FEATURE_ENABLED_BY_DEFAULT};

// Controls whether libinput is used to handle touchpad.
const base::Feature kLibinputHandleTouchpad{"LibinputHandleTouchpad",
                                            base::FEATURE_DISABLED_BY_DEFAULT};

extern const base::FeatureParam<std::string> kNeuralPalmRadiusPolynomial{
    &kEnableNeuralPalmDetectionFilter, "neural_palm_radius_polynomial", ""};

const base::FeatureParam<double> kHeuristicCancelThresholdSeconds{
    &kEnableHeuristicPalmDetectionFilter,
    "heuristic_palm_cancel_threshold_seconds", 0.4};

const base::FeatureParam<double> kHeuristicHoldThresholdSeconds{
    &kEnableHeuristicPalmDetectionFilter,
    "heuristic_palm_hold_threshold_seconds", 1.0};

const base::FeatureParam<int> kHeuristicStrokeCount{
    &kEnableHeuristicPalmDetectionFilter, "heuristic_palm_stroke_count", 0};

const base::Feature kEnableInputEventLogging{"EnableInputEventLogging",
                                             base::FEATURE_DISABLED_BY_DEFAULT};

constexpr char kOzoneNNPalmSwitchName[] = "ozone-nnpalm-properties";

constexpr char kOzoneNNPalmTouchCompatibleProperty[] = "touch-compatible";
constexpr char kOzoneNNPalmRadiusPolynomialProperty[] = "radius-polynomial";

}  // namespace ui