#include "chrome/browser/ui/views/autofill/payments/local_card_migration_bubble_views.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/color/chrome_color_id.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/ui/payments/local_card_migration_bubble_controller.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.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/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/image/image_skia_operations.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/border.h"
#include "ui/views/bubble/bubble_frame_view.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/style/typography.h"
namespace autofill {
namespace {
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
const int kMigrationBubbleGooglePayLogoWidth = 40;
#endif
const int kMigrationBubbleGooglePayLogoHeight = …;
}
LocalCardMigrationBubbleViews::LocalCardMigrationBubbleViews(
views::View* anchor_view,
content::WebContents* web_contents,
LocalCardMigrationBubbleController* controller)
: … { … }
void LocalCardMigrationBubbleViews::Show(DisplayReason reason) { … }
void LocalCardMigrationBubbleViews::Hide() { … }
void LocalCardMigrationBubbleViews::OnDialogAccepted() { … }
void LocalCardMigrationBubbleViews::OnDialogCancelled() { … }
void LocalCardMigrationBubbleViews::AddedToWidget() { … }
std::u16string LocalCardMigrationBubbleViews::GetWindowTitle() const { … }
void LocalCardMigrationBubbleViews::WindowClosing() { … }
void LocalCardMigrationBubbleViews::OnWidgetDestroying(views::Widget* widget) { … }
LocalCardMigrationBubbleViews::~LocalCardMigrationBubbleViews() = default;
void LocalCardMigrationBubbleViews::Init() { … }
}