#include "ui/native_theme/native_theme_features.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
namespace features {
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_CHROMEOS_ASH) || \
BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_CHROMEOS_LACROS) || \
BUILDFLAG(IS_OHOS)
constexpr base::FeatureState kOverlayScrollbarFeatureState =
base::FEATURE_ENABLED_BY_DEFAULT;
#else
constexpr base::FeatureState kOverlayScrollbarFeatureState =
base::FEATURE_DISABLED_BY_DEFAULT;
#endif
BASE_FEATURE(kOverlayScrollbar,
"OverlayScrollbar",
kOverlayScrollbarFeatureState);
BASE_FEATURE(kFluentScrollbar,
"FluentScrollbar",
base::FEATURE_DISABLED_BY_DEFAULT);
}
namespace ui {
bool IsOverlayScrollbarEnabled() {
return base::FeatureList::IsEnabled(features::kOverlayScrollbar);
}
bool IsFluentScrollbarEnabled() {
#if BUILDFLAG(IS_WIN)
return base::FeatureList::IsEnabled(features::kFluentScrollbar);
#else
return false;
#endif
}
}