#include "chrome/browser/ui/views/autofill/payments/virtual_card_enroll_bubble_views.h"
#include <memory>
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/views/accessibility/theme_tracking_non_accessible_image_view.h"
#include "chrome/browser/ui/views/autofill/payments/dialog_view_ids.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/payments/virtual_card_enrollment_metrics.h"
#include "components/autofill/core/browser/payments/legal_message_line.h"
#include "components/autofill/core/browser/payments/payments_service_url.h"
#include "components/autofill/core/browser/payments/virtual_card_enrollment_manager.h"
#include "components/autofill/core/browser/ui/payments/virtual_card_enroll_bubble_controller.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/views/accessibility/view_accessibility.h"
#include "ui/views/bubble/bubble_frame_view.h"
#include "ui/views/bubble/tooltip_icon.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/controls/throbber.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/style/typography.h"
#include "url/gurl.h"
namespace autofill {
VirtualCardEnrollBubbleViews::VirtualCardEnrollBubbleViews(
views::View* anchor_view,
content::WebContents* web_contents,
VirtualCardEnrollBubbleController* controller)
: … { … }
VirtualCardEnrollBubbleViews::~VirtualCardEnrollBubbleViews() = default;
void VirtualCardEnrollBubbleViews::Show(DisplayReason reason) { … }
void VirtualCardEnrollBubbleViews::Hide() { … }
bool VirtualCardEnrollBubbleViews::OnDialogAccepted() { … }
void VirtualCardEnrollBubbleViews::OnDialogDeclined() { … }
void VirtualCardEnrollBubbleViews::AddedToWidget() { … }
std::u16string VirtualCardEnrollBubbleViews::GetWindowTitle() const { … }
void VirtualCardEnrollBubbleViews::WindowClosing() { … }
void VirtualCardEnrollBubbleViews::Init() { … }
std::unique_ptr<views::View>
VirtualCardEnrollBubbleViews::CreateLegalMessageView() { … }
std::unique_ptr<views::View>
VirtualCardEnrollBubbleViews::CreateLoadingProgressRow() { … }
views::View* VirtualCardEnrollBubbleViews::GetLoadingProgressRowForTesting() { … }
void VirtualCardEnrollBubbleViews::SwitchToLoadingState() { … }
void VirtualCardEnrollBubbleViews::LearnMoreLinkClicked() { … }
void VirtualCardEnrollBubbleViews::IssuerLegalMessageClicked(const GURL& url) { … }
void VirtualCardEnrollBubbleViews::GoogleLegalMessageClicked(const GURL& url) { … }
}