#include "components/infobars/core/confirm_infobar_delegate.h"
#include "build/build_config.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/image_model.h"
#include "ui/strings/grit/ui_strings.h"
ConfirmInfoBarDelegate::~ConfirmInfoBarDelegate() = default;
bool ConfirmInfoBarDelegate::EqualsDelegate(
infobars::InfoBarDelegate* delegate) const { … }
void ConfirmInfoBarDelegate::InfoBarDismissed() { … }
ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() { … }
std::u16string ConfirmInfoBarDelegate::GetTitleText() const { … }
gfx::ElideBehavior ConfirmInfoBarDelegate::GetMessageElideBehavior() const { … }
int ConfirmInfoBarDelegate::GetButtons() const { … }
std::u16string ConfirmInfoBarDelegate::GetButtonLabel(
InfoBarButton button) const { … }
ui::ImageModel ConfirmInfoBarDelegate::GetButtonImage(
InfoBarButton button) const { … }
bool ConfirmInfoBarDelegate::GetButtonEnabled(InfoBarButton button) const { … }
std::u16string ConfirmInfoBarDelegate::GetButtonTooltip(
InfoBarButton button) const { … }
#if BUILDFLAG(IS_IOS)
bool ConfirmInfoBarDelegate::UseIconBackgroundTint() const {
return true;
}
#endif
bool ConfirmInfoBarDelegate::Accept() { … }
bool ConfirmInfoBarDelegate::Cancel() { … }
void ConfirmInfoBarDelegate::AddObserver(Observer* observer) { … }
void ConfirmInfoBarDelegate::RemoveObserver(const Observer* observer) { … }
ConfirmInfoBarDelegate::ConfirmInfoBarDelegate() = default;