| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void pause(); | 55 void pause(); |
| 56 void resume(); | 56 void resume(); |
| 57 | 57 |
| 58 const HeapVector<Member<SpeechSynthesisVoice>>& getVoices(); | 58 const HeapVector<Member<SpeechSynthesisVoice>>& getVoices(); |
| 59 | 59 |
| 60 // Used in testing to use a mock platform synthesizer | 60 // Used in testing to use a mock platform synthesizer |
| 61 void setPlatformSynthesizer(PlatformSpeechSynthesizer*); | 61 void setPlatformSynthesizer(PlatformSpeechSynthesizer*); |
| 62 | 62 |
| 63 DEFINE_ATTRIBUTE_EVENT_LISTENER(voiceschanged); | 63 DEFINE_ATTRIBUTE_EVENT_LISTENER(voiceschanged); |
| 64 | 64 |
| 65 ExecutionContext* executionContext() const override; | 65 ExecutionContext* getExecutionContext() const override; |
| 66 | 66 |
| 67 DECLARE_VIRTUAL_TRACE(); | 67 DECLARE_VIRTUAL_TRACE(); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 explicit SpeechSynthesis(ExecutionContext*); | 70 explicit SpeechSynthesis(ExecutionContext*); |
| 71 | 71 |
| 72 // PlatformSpeechSynthesizerClient override methods. | 72 // PlatformSpeechSynthesizerClient override methods. |
| 73 void voicesDidChange() override; | 73 void voicesDidChange() override; |
| 74 void didStartSpeaking(PlatformSpeechSynthesisUtterance*) override; | 74 void didStartSpeaking(PlatformSpeechSynthesisUtterance*) override; |
| 75 void didPauseSpeaking(PlatformSpeechSynthesisUtterance*) override; | 75 void didPauseSpeaking(PlatformSpeechSynthesisUtterance*) override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 90 HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue; | 90 HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue; |
| 91 bool m_isPaused; | 91 bool m_isPaused; |
| 92 | 92 |
| 93 // EventTarget | 93 // EventTarget |
| 94 const AtomicString& interfaceName() const override; | 94 const AtomicString& interfaceName() const override; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif // SpeechSynthesisEvent_h | 99 #endif // SpeechSynthesisEvent_h |
| OLD | NEW |