blob: e412544ef6bedb7f894cf411436b389956f0fd3a [file] [log] [blame]
Alison Galec9c39dc2024-08-21 16:51:241// Copyright 2024 The Chromium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_UI_TOASTS_TOAST_FEATURES_H_
6#define CHROME_BROWSER_UI_TOASTS_TOAST_FEATURES_H_
7
8#include "base/feature_list.h"
Alison Gale8b71af62024-08-28 14:39:159#include "base/metrics/field_trial_params.h"
stluongfa68e862024-08-28 19:37:5210#include "base/time/time.h"
Alison Galec9c39dc2024-08-21 16:51:2411
Alison Gale8b71af62024-08-28 14:39:1512namespace toast_features {
Alison Galec9c39dc2024-08-21 16:51:2413
Alison Galec9c39dc2024-08-21 16:51:2414// Individual toasts
15BASE_DECLARE_FEATURE(kLinkCopiedToast);
16BASE_DECLARE_FEATURE(kImageCopiedToast);
Yohann Connell90f32052025-05-06 15:56:5217BASE_DECLARE_FEATURE(kVideoFrameCopiedToast);
Alison Galec9c39dc2024-08-21 16:51:2418BASE_DECLARE_FEATURE(kLinkToHighlightCopiedToast);
19BASE_DECLARE_FEATURE(kReadingListToast);
20BASE_DECLARE_FEATURE(kLensOverlayToast);
Alison Galee1cd4602024-10-03 18:23:0221BASE_DECLARE_FEATURE(kClearBrowsingDataToast);
dljames402dc5e2025-05-07 23:17:0922BASE_DECLARE_FEATURE(kPinnedTabToastOnClose);
Alison Galec9c39dc2024-08-21 16:51:2423
Alison Gale8b71af62024-08-28 14:39:1524// Wrapper function used to check if a specific toast feature is enabled. Must
25// be used for toasts that are part of demo mode.
26bool IsEnabled(const base::Feature& feature);
27
28} // namespace toast_features
Alison Galec9c39dc2024-08-21 16:51:2429
30#endif // CHROME_BROWSER_UI_TOASTS_TOAST_FEATURES_H_