| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Computer, 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 | 27 |
| 28 #include "modules/speech/testing/PlatformSpeechSynthesizerMock.h" | 28 #include "modules/speech/testing/PlatformSpeechSynthesizerMock.h" |
| 29 | 29 |
| 30 #include "platform/speech/PlatformSpeechSynthesisUtterance.h" | 30 #include "platform/speech/PlatformSpeechSynthesisUtterance.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace blink { |
| 33 | 33 |
| 34 PlatformSpeechSynthesizerMock* PlatformSpeechSynthesizerMock::create(PlatformSpe
echSynthesizerClient* client) | 34 PlatformSpeechSynthesizerMock* PlatformSpeechSynthesizerMock::create(PlatformSpe
echSynthesizerClient* client) |
| 35 { | 35 { |
| 36 PlatformSpeechSynthesizerMock* synthesizer = new PlatformSpeechSynthesizerMo
ck(client); | 36 PlatformSpeechSynthesizerMock* synthesizer = new PlatformSpeechSynthesizerMo
ck(client); |
| 37 synthesizer->initializeVoiceList(); | 37 synthesizer->initializeVoiceList(); |
| 38 client->voicesDidChange(); | 38 client->voicesDidChange(); |
| 39 return synthesizer; | 39 return synthesizer; |
| 40 } | 40 } |
| 41 | 41 |
| 42 PlatformSpeechSynthesizerMock::PlatformSpeechSynthesizerMock(PlatformSpeechSynth
esizerClient* client) | 42 PlatformSpeechSynthesizerMock::PlatformSpeechSynthesizerMock(PlatformSpeechSynth
esizerClient* client) |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 { | 106 { |
| 107 client()->didResumeSpeaking(m_utterance); | 107 client()->didResumeSpeaking(m_utterance); |
| 108 } | 108 } |
| 109 | 109 |
| 110 void PlatformSpeechSynthesizerMock::trace(Visitor* visitor) | 110 void PlatformSpeechSynthesizerMock::trace(Visitor* visitor) |
| 111 { | 111 { |
| 112 visitor->trace(m_utterance); | 112 visitor->trace(m_utterance); |
| 113 PlatformSpeechSynthesizer::trace(visitor); | 113 PlatformSpeechSynthesizer::trace(visitor); |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace WebCore | 116 } // namespace blink |
| OLD | NEW |