#include "chrome/browser/ui/views/autofill/payments/save_card_bubble_views.h"
#include <memory>
#include "build/build_config.h"
#include "chrome/browser/ui/autofill/payments/save_card_ui.h"
#include "chrome/browser/ui/views/autofill/payments/dialog_view_ids.h"
#include "chrome/browser/ui/views/autofill/payments/payments_view_util.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "components/autofill/core/browser/data_model/credit_card.h"
#include "components/autofill/core/browser/metrics/autofill_metrics.h"
#include "components/autofill/core/browser/payments/legal_message_line.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/grit/components_scaled_resources.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/views/border.h"
#include "ui/views/bubble/bubble_border.h"
#include "ui/views/bubble/bubble_frame_view.h"
#include "ui/views/bubble/tooltip_icon.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/layout/flex_layout.h"
#include "ui/views/style/typography.h"
namespace autofill {
SaveCardBubbleViews::SaveCardBubbleViews(views::View* anchor_view,
content::WebContents* web_contents,
SaveCardBubbleController* controller)
: … { … }
void SaveCardBubbleViews::Show(DisplayReason reason) { … }
void SaveCardBubbleViews::Hide() { … }
void SaveCardBubbleViews::OnDialogAccepted() { … }
void SaveCardBubbleViews::OnBeforeBubbleWidgetInit(
views::Widget::InitParams* params,
views::Widget* widget) const { … }
void SaveCardBubbleViews::AddedToWidget() { … }
std::u16string SaveCardBubbleViews::GetWindowTitle() const { … }
void SaveCardBubbleViews::WindowClosing() { … }
views::View* SaveCardBubbleViews::GetFootnoteViewForTesting() { … }
const std::u16string SaveCardBubbleViews::GetCardIdentifierString() const { … }
SaveCardBubbleViews::~SaveCardBubbleViews() = default;
std::unique_ptr<views::View> SaveCardBubbleViews::CreateMainContentView() { … }
void SaveCardBubbleViews::InitFootnoteView(views::View* footnote_view) { … }
std::unique_ptr<views::View> SaveCardBubbleViews::GetCardIdentifierView() { … }
void SaveCardBubbleViews::AssignIdsToDialogButtons() { … }
void SaveCardBubbleViews::Init() { … }
}