| // Copyright 2021 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_SHARE_SHARE_FEATURES_H_ |
| #define CHROME_BROWSER_SHARE_SHARE_FEATURES_H_ |
| |
| #include "base/feature_list.h" |
| #include "base/metrics/field_trial_params.h" |
| #include "build/build_config.h" |
| #include "build/buildflag.h" |
| |
| namespace share { |
| |
| BASE_DECLARE_FEATURE(kPersistShareHubOnAppSwitch); |
| BASE_DECLARE_FEATURE(kScreenshotsForAndroidV2); |
| BASE_DECLARE_FEATURE(kSharingDesktopScreenshotsEdit); |
| BASE_DECLARE_FEATURE(kUpcomingSharingFeatures); |
| BASE_DECLARE_FEATURE(kShareToGoogleCollections); |
| BASE_DECLARE_FEATURE(kCormorant); |
| |
| #if BUILDFLAG(IS_ANDROID) |
| BASE_DECLARE_FEATURE(kCrowLaunchTab); |
| #endif // BUILDFLAG(IS_ANDROID) |
| |
| #if !BUILDFLAG(IS_ANDROID) |
| BASE_DECLARE_FEATURE(kDesktopSharePreview); |
| |
| extern const char kDesktopSharePreviewVariant16[]; |
| extern const char kDesktopSharePreviewVariant40[]; |
| extern const char kDesktopSharePreviewVariant72[]; |
| |
| extern const base::FeatureParam<std::string> kDesktopSharePreviewVariant; |
| |
| enum class DesktopSharePreviewVariant { |
| kDisabled, |
| kEnabled16, |
| kEnabled40, |
| kEnabled72, |
| }; |
| |
| DesktopSharePreviewVariant GetDesktopSharePreviewVariant(); |
| #endif // !BUILDFLAG(IS_ANDROID) |
| |
| bool AreUpcomingSharingFeaturesEnabled(); |
| |
| } // namespace share |
| |
| #endif // CHROME_BROWSER_SHARE_SHARE_FEATURES_H_ |