#include "chrome/browser/ui/views/accessibility/caption_bubble_context_views.h"
#include <memory>
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/views/accessibility/caption_bubble_session_observer_views.h"
#include "components/live_caption/caption_util.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/referrer.h"
#include "ui/base/window_open_disposition.h"
#include "ui/views/widget/widget.h"
namespace captions {
std::unique_ptr<CaptionBubbleContextBrowser>
CaptionBubbleContextBrowser::Create(content::WebContents* web_contents) { … }
CaptionBubbleContextViews::CaptionBubbleContextViews(
content::WebContents* web_contents)
: … { … }
CaptionBubbleContextViews::~CaptionBubbleContextViews() = default;
void CaptionBubbleContextViews::GetBounds(GetBoundsCallback callback) const { … }
const std::string CaptionBubbleContextViews::GetSessionId() const { … }
void CaptionBubbleContextViews::Activate() { … }
bool CaptionBubbleContextViews::IsActivatable() const { … }
std::unique_ptr<CaptionBubbleSessionObserver>
CaptionBubbleContextViews::GetCaptionBubbleSessionObserver() { … }
OpenCaptionSettingsCallback
CaptionBubbleContextViews::GetOpenCaptionSettingsCallback() { … }
void CaptionBubbleContextViews::OpenCaptionSettings() { … }
}