#include "chrome/browser/ui/views/passwords/password_add_username_view.h"
#include "base/functional/callback.h"
#include "chrome/browser/ui/passwords/ui_utils.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/passwords/views_utils.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/button/image_button_factory.h"
#include "ui/views/controls/editable_combobox/editable_combobox.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/flex_layout.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/vector_icons.h"
#include "ui/views/view.h"
namespace {
std::unique_ptr<views::Label> CreateBodyText(int margin_size) { … }
std::unique_ptr<views::View> CreatePasswordLabelWithEyeIconView(
std::unique_ptr<views::Label> password_label) { … }
void AddEmptyBorder(views::View* password_field) { … }
}
PasswordAddUsernameView::PasswordAddUsernameView(
content::WebContents* web_contents,
views::View* anchor_view,
DisplayReason reason)
: … { … }
PasswordAddUsernameView::~PasswordAddUsernameView() = default;
PasswordBubbleControllerBase* PasswordAddUsernameView::GetController() { … }
const PasswordBubbleControllerBase* PasswordAddUsernameView::GetController()
const { … }
views::View* PasswordAddUsernameView::GetInitiallyFocusedView() { … }
ui::ImageModel PasswordAddUsernameView::GetWindowIcon() { … }
void PasswordAddUsernameView::AddedToWidget() { … }
void PasswordAddUsernameView::UpdateUsernameInModel() { … }
std::unique_ptr<views::View> PasswordAddUsernameView::CreateFooterView() { … }
void PasswordAddUsernameView::OnUsernameChanged() { … }