blob: 422e019b57b933f3bb2698c898e47a114ee57102 [file] [log] [blame]
// Copyright 2024 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/input/features.h"
#include "base/feature_list.h"
#include "components/input/input_constants.h"
namespace input::features {
#if BUILDFLAG(IS_ANDROID)
BASE_FEATURE(kInputOnViz, "InputOnViz", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kUseAndroidBufferedInputDispatch,
"UseAndroidBufferedInputDispatch",
base::FEATURE_DISABLED_BY_DEFAULT);
#endif
BASE_FEATURE(kLogBubblingTouchscreenGesturesForDebug,
"LogBubblingTouchscreenGesturesForDebug",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_DISABLED_BY_DEFAULT
#else
base::FEATURE_ENABLED_BY_DEFAULT
#endif
);
// Flag guard for fix for crbug.com/346629231.
BASE_FEATURE(kIgnoreBubblingCollisionIfSourceDevicesMismatch,
"IgnoreBubblingCollisionIfSourceDevicesMismatch",
base::FEATURE_ENABLED_BY_DEFAULT);
// Flag guard for fix for crbug.com/346629231.
BASE_FEATURE(kScrollBubblingFix,
"ScrollBubblingFix",
base::FEATURE_ENABLED_BY_DEFAULT);
// Flag guard for fix for crbug.com/404464598.
BASE_FEATURE(kUseFirstCoalescedFrameAsFlingGenerationTimestamp,
"UseFirstCoalescedFrameAsFlingGenerationTimestamp",
base::FEATURE_ENABLED_BY_DEFAULT);
// Flag guard for renderer hang watcher \ hang monitor.
BASE_FEATURE(kRendererHangWatcher,
"RendererHangWatcher",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE_PARAM(
base::TimeDelta,
kRendererHangWatcherDelay,
&kRendererHangWatcher,
"delay",
input::kHungRendererDelay // Default value in input_constants.h
);
// Flag guard for unresponsive renderer multiple stack collection attempts.
BASE_FEATURE(kUnresponsiveMultipleStackCollection,
"UnresponsiveMultipleStackCollection",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE_PARAM(base::TimeDelta,
kUnresponsiveMultipleStackCollectionDelay,
&kUnresponsiveMultipleStackCollection,
"delay",
base::Milliseconds(100));
BASE_FEATURE_PARAM(size_t,
kUnresponsiveMultipleStackCollectionCount,
&kUnresponsiveMultipleStackCollection,
"count",
5);
} // namespace input::features