// 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 "chrome/browser/ui/toasts/toast_features.h" #include "base/feature_list.h" #include "base/metrics/field_trial_params.h" #include "base/time/time.h" namespace toast_features { // Enables the new toast framework that allows features to trigger toasts. When // this feature is disabled, no toasts will show. BASE_FEATURE(…); const base::FeatureParam<bool> kToastDemoMode{ … }; const base::FeatureParam<base::TimeDelta> kToastTimeout{ … }; // Enables the link copied confirmation toast. BASE_FEATURE(…); // Enables the image copied confirmation toast. BASE_FEATURE(…); // Enables the link to highlight copied confirmation toast. BASE_FEATURE(…); // Enabled the page added to reading list confirmation toast. BASE_FEATURE(…); // Migrates the lens overlay toast to the toast framework. BASE_FEATURE(…); // static bool IsEnabled(const base::Feature& feature) { … } } // namespace toast_features