#include "chrome/browser/ui/views/passwords/password_cross_domain_confirmation_popup_view_views.h"
#include <memory>
#include <string>
#include "base/memory/weak_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/passwords/ui_utils.h"
#include "chrome/browser/ui/views/autofill/popup/popup_base_view.h"
#include "chrome/browser/ui/views/autofill/popup/popup_view_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 "components/strings/grit/components_strings.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/text_constants.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/metadata/view_factory_internal.h"
#include "ui/views/style/typography.h"
#include "ui/views/view.h"
#include "url/gurl.h"
PasswordCrossDomainConfirmationPopupViewViews::
PasswordCrossDomainConfirmationPopupViewViews(
base::WeakPtr<autofill::AutofillPopupViewDelegate> delegate,
views::Widget* parent_widget,
const GURL& domain,
const std::u16string& password_origin,
base::OnceClosure confirmation_callback,
base::OnceClosure cancel_callback)
: … { … }
PasswordCrossDomainConfirmationPopupViewViews::
~PasswordCrossDomainConfirmationPopupViewViews() = default;
void PasswordCrossDomainConfirmationPopupViewViews::Hide() { … }
bool PasswordCrossDomainConfirmationPopupViewViews::
OverlapsWithPictureInPictureWindow() const { … }
void PasswordCrossDomainConfirmationPopupViewViews::Show() { … }
base::WeakPtr<PasswordCrossDomainConfirmationPopupView>
PasswordCrossDomainConfirmationPopupView::Show(
base::WeakPtr<autofill::AutofillPopupViewDelegate> delegate,
const GURL& domain,
const std::u16string& password_origin,
base::OnceClosure confirmation_callback,
base::OnceClosure cancel_callback) { … }