#include "chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h"
#include "build/build_config.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/grit/generated_resources.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_view_host.h"
#include "ui/accessibility/ax_role_properties.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/bubble/bubble_frame_view.h"
#include "url/origin.h"
namespace {
ax::mojom::Role GetAccessibleRoleForReason(
LocationBarBubbleDelegateView::DisplayReason reason) { … }
}
LocationBarBubbleDelegateView::WebContentMouseHandler::WebContentMouseHandler(
LocationBarBubbleDelegateView* bubble,
content::WebContents* web_contents)
: … { … }
LocationBarBubbleDelegateView::WebContentMouseHandler::
~WebContentMouseHandler() = default;
void LocationBarBubbleDelegateView::WebContentMouseHandler::OnEvent(
const ui::Event& event) { … }
LocationBarBubbleDelegateView::LocationBarBubbleDelegateView(
views::View* anchor_view,
content::WebContents* web_contents,
bool autosize)
: … { … }
LocationBarBubbleDelegateView::~LocationBarBubbleDelegateView() { … }
void LocationBarBubbleDelegateView::ShowForReason(DisplayReason reason,
bool allow_refocus_alert) { … }
void LocationBarBubbleDelegateView::OnFullscreenStateChanged() { … }
void LocationBarBubbleDelegateView::OnVisibilityChanged(
content::Visibility visibility) { … }
void LocationBarBubbleDelegateView::WebContentsDestroyed() { … }
void LocationBarBubbleDelegateView::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
gfx::Rect LocationBarBubbleDelegateView::GetAnchorBoundsInScreen() const { … }
void LocationBarBubbleDelegateView::AdjustForFullscreen(
const gfx::Rect& screen_bounds) { … }
void LocationBarBubbleDelegateView::CloseBubble() { … }
void LocationBarBubbleDelegateView::SetCloseOnMainFrameOriginNavigation(
bool close) { … }
bool LocationBarBubbleDelegateView::GetCloseOnMainFrameOriginNavigation()
const { … }
BEGIN_METADATA(…)