blob: 2bba9d96102dae22b3ad792fe71f9c8597ef6448 [file] [log] [blame]
// 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.
BASE_DECLARE_FEATURE(kMessagesForAndroidAdsBlocked);
// 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.
BASE_DECLARE_FEATURE(kMessagesForAndroidInfrastructure);
// Feature that controls whether offer notifications use Messages or Infobars
// infrastructure.
BASE_DECLARE_FEATURE(kMessagesForAndroidOfferNotification);
// Feature that controls whether permission update prompts use Messages or
// Infobars infrastructure.
BASE_DECLARE_FEATURE(kMessagesForAndroidPermissionUpdate);
// Feature that controls whether "popup blocked" prompts use Messages or
// Infobars infrastructure.
BASE_DECLARE_FEATURE(kMessagesForAndroidPopupBlocked);
// Feature that controls whether "save card" prompts use Messages or
// Infobars infrastructure.
BASE_DECLARE_FEATURE(kMessagesForAndroidSaveCard);
// Feature that controls whether Messages for Android should use
// new Stacking Animation.
BASE_DECLARE_FEATURE(kMessagesForAndroidStackingAnimation);
bool IsAdsBlockedMessagesUiEnabled();
bool IsOfferNotificationMessagesUiEnabled();
bool IsPermissionUpdateMessagesUiEnabled();
bool IsPopupBlockedMessagesUiEnabled();
bool IsSafetyTipMessagesUiEnabled();
bool IsSaveCardMessagesUiEnabled();
bool UseFollowupButtonTextForSaveCardMessage();
bool UseGPayIconForSaveCardMessage();
bool UseDialogV2ForSaveCardMessage();
bool IsStackingAnimationEnabled();
} // namespace messages
#endif // COMPONENTS_MESSAGES_ANDROID_MESSAGES_FEATURE_H_