#include "content/browser/speech/speech_synthesis_impl.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/speech/tts_utterance_impl.h"
#include "content/public/browser/web_contents.h"
namespace content {
namespace {
class EventThunk : public UtteranceEventDelegate { … };
void SendVoiceListToObserver(
blink::mojom::SpeechSynthesisVoiceListObserver* observer,
const std::vector<VoiceData>& voices) { … }
}
SpeechSynthesisImpl::SpeechSynthesisImpl(BrowserContext* browser_context,
RenderFrameHostImpl* rfh)
: … { … }
SpeechSynthesisImpl::~SpeechSynthesisImpl() { … }
void SpeechSynthesisImpl::AddReceiver(
mojo::PendingReceiver<blink::mojom::SpeechSynthesis> receiver) { … }
void SpeechSynthesisImpl::AddVoiceListObserver(
mojo::PendingRemote<blink::mojom::SpeechSynthesisVoiceListObserver>
pending_observer) { … }
void SpeechSynthesisImpl::Speak(
blink::mojom::SpeechSynthesisUtterancePtr utterance,
mojo::PendingRemote<blink::mojom::SpeechSynthesisClient> client) { … }
void SpeechSynthesisImpl::Pause() { … }
void SpeechSynthesisImpl::Resume() { … }
void SpeechSynthesisImpl::Cancel() { … }
void SpeechSynthesisImpl::OnVoicesChanged() { … }
}