// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_LIVE_CAPTION_CAPTION_BUBBLE_CONTROLLER_H_ #define COMPONENTS_LIVE_CAPTION_CAPTION_BUBBLE_CONTROLLER_H_ #include <memory> #include <optional> #include <string> #include "components/live_caption/views/caption_bubble.h" #include "media/mojo/mojom/speech_recognition.mojom.h" #include "ui/native_theme/caption_style.h" class PrefService; namespace content { class BrowserContext; } namespace captions { class CaptionBubbleContext; /////////////////////////////////////////////////////////////////////////////// // Caption Bubble Controller // // The interface for the caption bubble controller. It controls the caption // bubble. It is responsible for tasks such as post-processing of the text that // might need to occur before it is displayed in the bubble, and hiding or // showing the caption bubble when captions are received. There exists one // caption bubble controller per profile. // class CaptionBubbleController { … }; } // namespace captions #endif // COMPONENTS_LIVE_CAPTION_CAPTION_BUBBLE_CONTROLLER_H_