#include "chrome/browser/ui/views/autofill/payments/card_unmask_authentication_selection_dialog_view.h"
#include "chrome/browser/ui/autofill/payments/view_factory.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/card_unmask_authentication_selection_dialog_controller.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/gfx/image/image_skia_operations.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/radio_button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/style/typography.h"
namespace autofill {
namespace {
ui::ImageModel GetAuthenticationModeIcon(
const CardUnmaskChallengeOption& challenge_option) { … }
}
CardUnmaskAuthenticationSelectionDialogView::
CardUnmaskAuthenticationSelectionDialogView(
CardUnmaskAuthenticationSelectionDialogController* controller)
: … { … }
CardUnmaskAuthenticationSelectionDialogView::
~CardUnmaskAuthenticationSelectionDialogView() { … }
void CardUnmaskAuthenticationSelectionDialogView::Dismiss(
bool user_closed_dialog,
bool server_success) { … }
void CardUnmaskAuthenticationSelectionDialogView::UpdateContent() { … }
bool CardUnmaskAuthenticationSelectionDialogView::Accept() { … }
std::u16string CardUnmaskAuthenticationSelectionDialogView::GetWindowTitle()
const { … }
void CardUnmaskAuthenticationSelectionDialogView::AddedToWidget() { … }
void CardUnmaskAuthenticationSelectionDialogView::InitViews() { … }
void CardUnmaskAuthenticationSelectionDialogView::AddHeaderText() { … }
void CardUnmaskAuthenticationSelectionDialogView::AddChallengeOptionsViews() { … }
void CardUnmaskAuthenticationSelectionDialogView::AddChallengeOptionDetails(
const CardUnmaskChallengeOption& challenge_option,
views::View* challenge_options_section) { … }
void CardUnmaskAuthenticationSelectionDialogView::AddFooterText() { … }
void CardUnmaskAuthenticationSelectionDialogView::
ReplaceContentWithProgressThrobber() { … }
void CardUnmaskAuthenticationSelectionDialogView::OnChallengeOptionSelected(
const CardUnmaskChallengeOption::ChallengeOptionId&
selected_challenge_option_id) { … }
std::unique_ptr<views::RadioButton>
CardUnmaskAuthenticationSelectionDialogView::CreateChallengeOptionRadioButton(
CardUnmaskChallengeOption challenge_option) { … }
CardUnmaskAuthenticationSelectionDialog*
CreateAndShowCardUnmaskAuthenticationSelectionDialog(
content::WebContents* web_contents,
CardUnmaskAuthenticationSelectionDialogController* controller) { … }
}