This source file includes following definitions.
- assign
- reset
- setVoiceURI
- setName
- setLanguage
- setIsLocalService
- setIsDefault
#include "config.h"
#include "public/platform/WebSpeechSynthesisVoice.h"
#include "platform/speech/PlatformSpeechSynthesisVoice.h"
#include "wtf/PassRefPtr.h"
#include "wtf/Vector.h"
namespace blink {
WebSpeechSynthesisVoice::WebSpeechSynthesisVoice()
: m_private(WebCore::PlatformSpeechSynthesisVoice::create())
{
}
void WebSpeechSynthesisVoice::assign(const WebSpeechSynthesisVoice& other)
{
m_private = other.m_private;
}
void WebSpeechSynthesisVoice::reset()
{
m_private.reset();
}
void WebSpeechSynthesisVoice::setVoiceURI(const WebString& voiceURI)
{
m_private->setVoiceURI(voiceURI);
}
void WebSpeechSynthesisVoice::setName(const WebString& name)
{
m_private->setName(name);
}
void WebSpeechSynthesisVoice::setLanguage(const WebString& language)
{
m_private->setLang(language);
}
void WebSpeechSynthesisVoice::setIsLocalService(bool isLocalService)
{
m_private->setLocalService(isLocalService);
}
void WebSpeechSynthesisVoice::setIsDefault(bool isDefault)
{
m_private->setIsDefault(isDefault);
}
WebSpeechSynthesisVoice::operator PassRefPtr<WebCore::PlatformSpeechSynthesisVoice>() const
{
return m_private.get();
}
}