#include "chrome/browser/ui/views/digital_credentials/digital_identity_multi_step_dialog.h"
#include <memory>
#include "base/functional/callback_helpers.h"
#include "components/constrained_window/constrained_window_views.h"
#include "content/public/browser/web_contents.h"
#include "third_party/blink/public/mojom/webid/federated_auth_request.mojom-shared.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/views/bubble/bubble_border.h"
#include "ui/views/bubble/bubble_dialog_utils.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/layout/layout_provider.h"
namespace {
ButtonModel;
std::unique_ptr<views::View> CreateContentsScrollView(
std::unique_ptr<views::View> contents_view) { … }
ButtonModel CreateButtonModel(const ButtonModel::Params& params) { … }
}
DigitalIdentityMultiStepDialog::TestApi::TestApi(
DigitalIdentityMultiStepDialog* dialog)
: … { … }
DigitalIdentityMultiStepDialog::TestApi::~TestApi() = default;
DigitalIdentityMultiStepDialog::Delegate::Delegate()
: … { … }
DigitalIdentityMultiStepDialog::Delegate::~Delegate() = default;
void DigitalIdentityMultiStepDialog::Delegate::Update(
const std::optional<ButtonModel::Params>& accept_button,
base::OnceClosure accept_callback,
const ButtonModel::Params& cancel_button,
base::OnceClosure cancel_callback,
const std::u16string& dialog_title,
const std::u16string& body_text,
std::unique_ptr<views::View> custom_body_field) { … }
bool DigitalIdentityMultiStepDialog::Delegate::OnDialogAccepted() { … }
bool DigitalIdentityMultiStepDialog::Delegate::OnDialogCanceled() { … }
void DigitalIdentityMultiStepDialog::Delegate::OnDialogClosed() { … }
void DigitalIdentityMultiStepDialog::Delegate::ResetCallbacks() { … }
DigitalIdentityMultiStepDialog::DigitalIdentityMultiStepDialog(
base::WeakPtr<content::WebContents> web_contents)
: … { … }
DigitalIdentityMultiStepDialog::~DigitalIdentityMultiStepDialog() { … }
void DigitalIdentityMultiStepDialog::TryShow(
const std::optional<ui::DialogModel::Button::Params>& accept_button,
base::OnceClosure accept_callback,
const ui::DialogModel::Button::Params& cancel_button,
base::OnceClosure cancel_callback,
const std::u16string& dialog_title,
const std::u16string& body_text,
std::unique_ptr<views::View> custom_body_field) { … }
DigitalIdentityMultiStepDialog::Delegate*
DigitalIdentityMultiStepDialog::GetWidgetDelegate() { … }