#include "chrome/browser/ui/views/autofill/autofill_field_promo_view_impl.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/views/autofill/popup/popup_view_utils.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/views/view_class_properties.h"
namespace {
views::View* GetContentsWebView(content::WebContents* web_contents) { … }
}
namespace autofill {
base::WeakPtr<AutofillFieldPromoView> AutofillFieldPromoView::CreateAndShow(
content::WebContents* web_contents,
const gfx::RectF& element_bounds,
const ui::ElementIdentifier& promo_element_identifier) { … }
AutofillFieldPromoViewImpl::AutofillFieldPromoViewImpl(
content::WebContents* web_contents,
const gfx::RectF& element_bounds,
const ui::ElementIdentifier& promo_element_identifier)
: … { … }
AutofillFieldPromoViewImpl::~AutofillFieldPromoViewImpl() = default;
bool AutofillFieldPromoViewImpl::OverlapsWithPictureInPictureWindow() const { … }
void AutofillFieldPromoViewImpl::Close() { … }
base::WeakPtr<AutofillFieldPromoView> AutofillFieldPromoViewImpl::GetWeakPtr() { … }
void AutofillFieldPromoViewImpl::SetViewBounds(
const gfx::RectF& element_bounds) { … }
BEGIN_METADATA(…)
}