This source file includes following definitions.
- PlatformImplAvailable
- LoadBuiltInTtsExtension
- Speak
- StopSpeaking
- Pause
- Resume
- IsSpeaking
- GetVoices
- GetInstance
- GetInstance
#include "chrome/browser/speech/tts_extension_loader_chromeos.h"
#include "chrome/browser/speech/tts_platform.h"
class TtsPlatformImplChromeOs
: public TtsPlatformImpl {
public:
virtual bool PlatformImplAvailable() OVERRIDE {
return false;
}
virtual bool LoadBuiltInTtsExtension(Profile* profile) OVERRIDE {
return TtsExtensionLoaderChromeOs::GetInstance(profile)->LoadTtsExtension();
}
virtual bool Speak(
int utterance_id,
const std::string& utterance,
const std::string& lang,
const VoiceData& voice,
const UtteranceContinuousParameters& params) OVERRIDE {
return false;
}
virtual bool StopSpeaking() OVERRIDE {
return false;
}
virtual void Pause() OVERRIDE {}
virtual void Resume() OVERRIDE {}
virtual bool IsSpeaking() OVERRIDE {
return false;
}
virtual void GetVoices(std::vector<VoiceData>* out_voices) OVERRIDE {
}
static TtsPlatformImplChromeOs* GetInstance();
private:
TtsPlatformImplChromeOs() {}
virtual ~TtsPlatformImplChromeOs() {}
friend struct DefaultSingletonTraits<TtsPlatformImplChromeOs>;
DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplChromeOs);
};
TtsPlatformImpl* TtsPlatformImpl::GetInstance() {
return TtsPlatformImplChromeOs::GetInstance();
}
TtsPlatformImplChromeOs*
TtsPlatformImplChromeOs::GetInstance() {
return Singleton<TtsPlatformImplChromeOs>::get();
}