#include "chrome/browser/ui/views/autofill/payments/card_unmask_prompt_views.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/ui/autofill/payments/create_card_unmask_prompt_view.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_prompt_controller.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "components/web_modal/web_contents_modal_dialog_host.h"
#include "components/web_modal/web_contents_modal_dialog_manager.h"
#include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/image_model.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/color/color_id.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/gfx/vector_icon_utils.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/background.h"
#include "ui/views/border.h"
#include "ui/views/bubble/bubble_frame_view.h"
#include "ui/views/controls/combobox/combobox.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/link.h"
#include "ui/views/controls/textfield/textfield.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/layout/fill_layout.h"
#include "ui/views/style/typography.h"
#include "ui/views/widget/widget.h"
namespace autofill {
CardUnmaskPromptViews::CardUnmaskPromptViews(
CardUnmaskPromptController* controller,
content::WebContents* web_contents)
: … { … }
CardUnmaskPromptViews::~CardUnmaskPromptViews() { … }
void CardUnmaskPromptViews::Show() { … }
void CardUnmaskPromptViews::ControllerGone() { … }
void CardUnmaskPromptViews::DisableAndWaitForVerification() { … }
void CardUnmaskPromptViews::GotVerificationResult(
const std::u16string& error_message,
bool allow_retry) { … }
void CardUnmaskPromptViews::SetRetriableErrorMessage(
const std::u16string& message) { … }
void CardUnmaskPromptViews::SetInputsEnabled(bool enabled) { … }
void CardUnmaskPromptViews::ShowNewCardLink() { … }
views::View* CardUnmaskPromptViews::GetContentsView() { … }
void CardUnmaskPromptViews::AddedToWidget() { … }
std::u16string CardUnmaskPromptViews::GetWindowTitle() const { … }
bool CardUnmaskPromptViews::IsDialogButtonEnabled(
ui::mojom::DialogButton button) const { … }
views::View* CardUnmaskPromptViews::GetInitiallyFocusedView() { … }
bool CardUnmaskPromptViews::ShouldShowCloseButton() const { … }
bool CardUnmaskPromptViews::Cancel() { … }
bool CardUnmaskPromptViews::Accept() { … }
void CardUnmaskPromptViews::ContentsChanged(
views::Textfield* sender,
const std::u16string& new_contents) { … }
void CardUnmaskPromptViews::DateChanged() { … }
void CardUnmaskPromptViews::InitIfNecessary() { … }
bool CardUnmaskPromptViews::ExpirationDateIsValid() const { … }
void CardUnmaskPromptViews::ClosePrompt() { … }
void CardUnmaskPromptViews::UpdateButtons() { … }
void CardUnmaskPromptViews::LinkClicked() { … }
CardUnmaskPromptView* CreateCardUnmaskPromptView(
CardUnmaskPromptController* controller,
content::WebContents* web_contents) { … }
BEGIN_METADATA(…)
}