#include "content/web_test/browser/web_test_tts_platform.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/task/sequenced_task_runner.h"
#include "content/public/browser/tts_controller.h"
WebTestTtsPlatform* WebTestTtsPlatform::GetInstance() { … }
bool WebTestTtsPlatform::PlatformImplSupported() { … }
bool WebTestTtsPlatform::PlatformImplInitialized() { … }
void WebTestTtsPlatform::LoadBuiltInTtsEngine(
content::BrowserContext* browser_context) { … }
void WebTestTtsPlatform::Speak(
int utterance_id,
const std::string& utterance,
const std::string& lang,
const content::VoiceData& voice,
const content::UtteranceContinuousParameters& params,
OnSpeakFinishedCallback on_speak_finished) { … }
void WebTestTtsPlatform::SimulateEndEvent(
int utterance_id,
int len,
OnSpeakFinishedCallback on_speak_finished) { … }
bool WebTestTtsPlatform::StopSpeaking() { … }
bool WebTestTtsPlatform::IsSpeaking() { … }
void WebTestTtsPlatform::GetVoices(
std::vector<content::VoiceData>* out_voices) { … }
void WebTestTtsPlatform::Pause() { … }
void WebTestTtsPlatform::Resume() { … }
void WebTestTtsPlatform::WillSpeakUtteranceWithVoice(
content::TtsUtterance* utterance,
const content::VoiceData& voice_data) { … }
std::string WebTestTtsPlatform::GetError() { … }
void WebTestTtsPlatform::ClearError() { … }
void WebTestTtsPlatform::SetError(const std::string& error) { … }
void WebTestTtsPlatform::Shutdown() { … }
void WebTestTtsPlatform::FinalizeVoiceOrdering(
std::vector<content::VoiceData>& voices) { … }
void WebTestTtsPlatform::RefreshVoices() { … }
content::ExternalPlatformDelegate*
WebTestTtsPlatform::GetExternalPlatformDelegate() { … }
WebTestTtsPlatform::WebTestTtsPlatform() = default;
WebTestTtsPlatform::~WebTestTtsPlatform() = default;