| Index: Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
|
| diff --git a/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h b/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
|
| index 8c36f9b53bb0fa85b529611ea017c83497c65fdf..e79549e387019b0fc82134287b9d6e4ebad956b4 100644
|
| --- a/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
|
| +++ b/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
|
| @@ -36,23 +36,32 @@ class PlatformSpeechSynthesizerMock final : public PlatformSpeechSynthesizer {
|
| public:
|
| static PlatformSpeechSynthesizerMock* create(PlatformSpeechSynthesizerClient*);
|
|
|
| - virtual ~PlatformSpeechSynthesizerMock();
|
| - virtual void speak(PlatformSpeechSynthesisUtterance*) override;
|
| - virtual void pause() override;
|
| - virtual void resume() override;
|
| - virtual void cancel() override;
|
| + ~PlatformSpeechSynthesizerMock() override;
|
| + void speak(PlatformSpeechSynthesisUtterance*) override;
|
| + void pause() override;
|
| + void resume() override;
|
| + void cancel() override;
|
|
|
| - virtual void trace(Visitor*) override;
|
| + void trace(Visitor*) override;
|
|
|
| private:
|
| explicit PlatformSpeechSynthesizerMock(PlatformSpeechSynthesizerClient*);
|
| - virtual void initializeVoiceList() override;
|
| - void speakingFinished(Timer<PlatformSpeechSynthesizerMock>*);
|
| +
|
| + void initializeVoiceList() override;
|
| +
|
| + void speakNext();
|
| + void speakNow();
|
| +
|
| void speakingErrorOccurred(Timer<PlatformSpeechSynthesizerMock>*);
|
| + void speakingFinished(Timer<PlatformSpeechSynthesizerMock>*);
|
| + void speakingNext(Timer<PlatformSpeechSynthesizerMock>*);
|
|
|
| - Timer<PlatformSpeechSynthesizerMock> m_speakingFinishedTimer;
|
| Timer<PlatformSpeechSynthesizerMock> m_speakingErrorOccurredTimer;
|
| - Member<PlatformSpeechSynthesisUtterance> m_utterance;
|
| + Timer<PlatformSpeechSynthesizerMock> m_speakingFinishedTimer;
|
| + Timer<PlatformSpeechSynthesizerMock> m_speakingNextTimer;
|
| +
|
| + Member<PlatformSpeechSynthesisUtterance> m_currentUtterance;
|
| + HeapDeque<Member<PlatformSpeechSynthesisUtterance>> m_queuedUtterances;
|
| };
|
|
|
| } // namespace blink
|
|
|