#ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_SECURE_PAYMENT_CONFIRMATION_VIEWS_UTIL_H_
#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SECURE_PAYMENT_CONFIRMATION_VIEWS_UTIL_H_
#include <memory>
#include <optional>
#include <string>
#include "base/functional/callback_forward.h"
namespace views {
class Label;
class View;
class ImageView;
class StyledLabel;
}
namespace gfx {
class ImageSkia;
}
class SkBitmap;
namespace payments {
inline constexpr int kHeaderIconHeight = …;
inline constexpr int kShoppingCartHeaderIconHeight = …;
inline constexpr int kHeaderIconTopPadding = …;
inline constexpr int kTitleLineHeight = …;
inline constexpr int kInlineTitleRowHorizontalSpacing = …;
inline constexpr int kInlineTitleIconHeight = …;
inline constexpr int kInlineTitleMaxIconWidth = …;
inline constexpr int kInlineTitleIconSeparatorHeight = …;
inline constexpr int kDescriptionLineHeight = …;
inline constexpr int kSecondarySmallTextInsets = …;
inline constexpr int kBodyExtraInset = …;
inline constexpr int kPaymentInfoRowHeight = …;
std::unique_ptr<views::View> CreateSecurePaymentConfirmationHeaderIcon(
int header_icon_id,
bool use_cart_image = false);
std::unique_ptr<views::View>
CreateSecurePaymentConfirmationInlineImageTitleView(
std::unique_ptr<views::Label> title_text,
const SkBitmap& network_icon,
int network_icon_id,
const SkBitmap& issuer_icon,
int issuer_icon_id);
std::unique_ptr<views::Label> CreateSecurePaymentConfirmationTitleLabel(
const std::u16string& title);
std::unique_ptr<views::ImageView> CreateSecurePaymentConfirmationIconView(
const gfx::ImageSkia& bitmap);
std::u16string FormatMerchantLabel(
const std::optional<std::u16string>& merchant_name,
const std::optional<std::u16string>& merchant_origin);
std::unique_ptr<views::StyledLabel> CreateSecurePaymentConfirmationOptOutView(
const std::u16string& relying_party_id,
const std::u16string& opt_out_label,
const std::u16string& opt_out_link_label,
base::RepeatingClosure on_click);
}
#endif