#include "chrome/browser/ui/views/permissions/permission_prompt_bubble.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/browser/ui/views/permissions/permission_prompt_bubble_base_view.h"
#include "chrome/browser/ui/views/permissions/permission_prompt_bubble_view_factory.h"
#include "chrome/browser/ui/views/permissions/permission_prompt_style.h"
#include "components/permissions/features.h"
#include "content/public/browser/web_contents.h"
PermissionPromptBubble::PermissionPromptBubble(
Browser* browser,
content::WebContents* web_contents,
Delegate* delegate)
: … { … }
PermissionPromptBubble::~PermissionPromptBubble() { … }
void PermissionPromptBubble::ShowBubble() { … }
void PermissionPromptBubble::CleanUpPromptBubble() { … }
void PermissionPromptBubble::OnWidgetDestroying(views::Widget* widget) { … }
void PermissionPromptBubble::OnWidgetActivationChanged(views::Widget* widget,
bool active) { … }
std::optional<gfx::Rect> PermissionPromptBubble::GetViewBoundsInScreen() const { … }
bool PermissionPromptBubble::UpdateAnchor() { … }
permissions::PermissionPromptDisposition
PermissionPromptBubble::GetPromptDisposition() const { … }
views::Widget* PermissionPromptBubble::GetPromptBubbleWidgetForTesting() { … }
PermissionPromptBubbleBaseView* PermissionPromptBubble::GetPromptBubble() { … }
const PermissionPromptBubbleBaseView* PermissionPromptBubble::GetPromptBubble()
const { … }