| // Copyright 2020 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef COMPONENTS_MESSAGES_ANDROID_MESSAGES_FEATURE_H_ |
| #define COMPONENTS_MESSAGES_ANDROID_MESSAGES_FEATURE_H_ |
| |
| #include "base/feature_list.h" |
| |
| namespace messages { |
| |
| // Feature that controls whether "ads blocked" messages use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidAdsBlocked; |
| |
| // Feature that controls whether "survey" prompts use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidChromeSurvey; |
| |
| // Feature that controls whether Messages for Android infrastucture components |
| // are initialized. When this feature is disabled all individual message |
| // implementations also fallback to Infobar implementations. |
| extern const base::Feature kMessagesForAndroidInfrastructure; |
| |
| // Feature that controls whether "instant apps" messages use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidInstantApps; |
| |
| // Feature that controls whether "near OOM reduction" messages use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidNearOomReduction; |
| |
| // Feature that controls whether notifiation blocked prompts use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidNotificationBlocked; |
| |
| // Feature that controls whether offer notifications use Messages or Infobars |
| // infrastructure. |
| extern const base::Feature kMessagesForAndroidOfferNotification; |
| |
| // Feature that controls whether "save password" and "saved password |
| // confirmation" prompts use Messages or Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidPasswords; |
| |
| // Feature that controls whether permission update prompts use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidPermissionUpdate; |
| |
| // Feature that controls whether "popup blocked" prompts use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidPopupBlocked; |
| |
| // Feature that controls whether "reader mode" prompts use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidReaderMode; |
| |
| // Feature that controls whether "safety tip" prompts use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidSafetyTip; |
| |
| // Feature that controls whether "save card" prompts use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidSaveCard; |
| |
| // Feature that controls whether Messages for Android should use |
| // new Stacking Animation. |
| extern const base::Feature kMessagesForAndroidStackingAnimation; |
| |
| // Feature that controls whether "sync error" prompts use Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidSyncError; |
| |
| // Feature that controls whether "update password" prompt uses Messages or |
| // Infobars infrastructure. |
| extern const base::Feature kMessagesForAndroidUpdatePassword; |
| |
| // Feature that controls whether we always update layout parameters or only |
| // while the message container is visible. |
| extern const base::Feature kMessagesForAndroidReduceLayoutChanges; |
| |
| bool IsAdsBlockedMessagesUiEnabled(); |
| |
| bool IsInstantAppsMessagesUiEnabled(); |
| |
| bool IsNearOomReductionMessagesUiEnabled(); |
| |
| bool IsNotificationBlockedMessagesUiEnabled(); |
| |
| bool IsOfferNotificationMessagesUiEnabled(); |
| |
| bool IsPasswordMessagesUiEnabled(); |
| |
| bool IsPermissionUpdateMessagesUiEnabled(); |
| |
| bool IsPopupBlockedMessagesUiEnabled(); |
| |
| bool IsSafetyTipMessagesUiEnabled(); |
| |
| bool IsSaveCardMessagesUiEnabled(); |
| |
| bool IsUpdatePasswordMessagesUiEnabled(); |
| |
| int GetSavePasswordMessageDismissDurationMs(); |
| |
| bool UseFollowupButtonTextForUpdatePasswordButton(); |
| |
| bool UseFollowupButtonTextForSaveCardMessage(); |
| |
| bool UseGPayIconForSaveCardMessage(); |
| |
| bool UseDialogV2ForSaveCardMessage(); |
| |
| } // namespace messages |
| |
| #endif // COMPONENTS_MESSAGES_ANDROID_MESSAGES_FEATURE_H_ |