#include "chrome/browser/ui/views/bubble/webui_bubble_manager.h"
#include "base/notimplemented.h"
#include "base/timer/timer.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/webui/top_chrome/webui_contents_warmup_level_recorder.h"
#include "chrome/browser/ui/webui/top_chrome/webui_url_utils.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/views/controls/webview/webview.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/widget/widget.h"
namespace {
constexpr base::TimeDelta kWebViewRetentionTime = …;
}
WebUIBubbleManager::WebUIBubbleManager()
: … { … }
WebUIBubbleManager::~WebUIBubbleManager() { … }
bool WebUIBubbleManager::ShowBubble(const std::optional<gfx::Rect>& anchor,
views::BubbleBorder::Arrow arrow,
ui::ElementIdentifier identifier) { … }
void WebUIBubbleManager::CloseBubble() { … }
views::Widget* WebUIBubbleManager::GetBubbleWidget() const { … }
void WebUIBubbleManager::AddObserver(WebUIBubbleManagerObserver* observer) { … }
void WebUIBubbleManager::RemoveObserver(WebUIBubbleManagerObserver* observer) { … }
void WebUIBubbleManager::OnWidgetDestroying(views::Widget* widget) { … }
void WebUIBubbleManager::ResetContentsWrapperForTesting() { … }
void WebUIBubbleManager::ResetContentsWrapper() { … }
void WebUIBubbleManager::DisableCloseBubbleHelperForTesting() { … }