#include "chrome/browser/ui/views/autofill/payments/card_unmask_otp_input_dialog_views.h"
#include <string>
#include "base/memory/weak_ptr.h"
#include "base/strings/strcat.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/ui/autofill/payments/payments_ui_constants.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_otp_input_dialog_controller.h"
#include "components/constrained_window/constrained_window_views.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/color/color_id.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/link.h"
#include "ui/views/controls/styled_label.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/style/typography.h"
#include "ui/views/window/dialog_delegate.h"
namespace autofill {
CardUnmaskOtpInputDialogViews::CardUnmaskOtpInputDialogViews(
base::WeakPtr<CardUnmaskOtpInputDialogController> controller)
: … { … }
CardUnmaskOtpInputDialogViews::~CardUnmaskOtpInputDialogViews() { … }
void CardUnmaskOtpInputDialogViews::ShowPendingState() { … }
void CardUnmaskOtpInputDialogViews::ShowInvalidState(
const std::u16string& invalid_label_text) { … }
void CardUnmaskOtpInputDialogViews::Dismiss(
bool show_confirmation_before_closing,
bool user_closed_dialog) { … }
base::WeakPtr<CardUnmaskOtpInputDialogView>
CardUnmaskOtpInputDialogViews::GetWeakPtr() { … }
std::u16string CardUnmaskOtpInputDialogViews::GetWindowTitle() const { … }
void CardUnmaskOtpInputDialogViews::AddedToWidget() { … }
bool CardUnmaskOtpInputDialogViews::Accept() { … }
views::View* CardUnmaskOtpInputDialogViews::GetInitiallyFocusedView() { … }
void CardUnmaskOtpInputDialogViews::ContentsChanged(
views::Textfield* sender,
const std::u16string& new_contents) { … }
void CardUnmaskOtpInputDialogViews::InitViews() { … }
void CardUnmaskOtpInputDialogViews::CreateOtpInputView() { … }
void CardUnmaskOtpInputDialogViews::OnNewCodeLinkClicked() { … }
void CardUnmaskOtpInputDialogViews::EnableNewCodeLink() { … }
void CardUnmaskOtpInputDialogViews::CreateHiddenProgressView() { … }
void CardUnmaskOtpInputDialogViews::HideInvalidState() { … }
void CardUnmaskOtpInputDialogViews::CloseWidget(bool user_closed_dialog,
bool server_request_succeeded) { … }
void CardUnmaskOtpInputDialogViews::SetDialogFooter(bool enabled) { … }
base::WeakPtr<CardUnmaskOtpInputDialogView> CreateAndShowOtpInputDialog(
base::WeakPtr<CardUnmaskOtpInputDialogController> controller,
content::WebContents* web_contents) { … }
}