#include "chrome/browser/ui/views/passwords/account_chooser_dialog_view.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/ui/passwords/credential_manager_dialog_controller.h"
#include "chrome/browser/ui/passwords/ui_utils.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "chrome/browser/ui/views/passwords/credentials_item_view.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/password_manager/core/browser/password_form.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/strings/grit/ui_strings.h"
#include "ui/views/border.h"
#include "ui/views/bubble/bubble_border.h"
#include "ui/views/bubble/bubble_frame_view.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/style/typography.h"
#include "ui/views/widget/widget.h"
AccountChooserDialogView::AccountChooserDialogView(
CredentialManagerDialogController* controller,
content::WebContents* web_contents)
: … { … }
AccountChooserDialogView::~AccountChooserDialogView() = default;
void AccountChooserDialogView::ShowAccountChooser() { … }
void AccountChooserDialogView::ControllerGone() { … }
std::u16string AccountChooserDialogView::GetWindowTitle() const { … }
bool AccountChooserDialogView::ShouldShowCloseButton() const { … }
void AccountChooserDialogView::WindowClosing() { … }
bool AccountChooserDialogView::Accept() { … }
void AccountChooserDialogView::InitWindow() { … }
void AccountChooserDialogView::CredentialsItemPressed(
const password_manager::PasswordForm* form) { … }
BEGIN_METADATA(…)
AccountChooserPrompt* CreateAccountChooserPromptView(
CredentialManagerDialogController* controller,
content::WebContents* web_contents) { … }