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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "platform/speech/PlatformSpeechSynthesizer.h" | 27 #include "platform/speech/PlatformSpeechSynthesizer.h" |
28 | 28 |
29 #include "platform/exported/WebSpeechSynthesizerClientImpl.h" | 29 #include "platform/exported/WebSpeechSynthesizerClientImpl.h" |
30 #include "platform/speech/PlatformSpeechSynthesisUtterance.h" | 30 #include "platform/speech/PlatformSpeechSynthesisUtterance.h" |
31 #include "public/platform/Platform.h" | 31 #include "public/platform/Platform.h" |
32 #include "public/platform/WebSpeechSynthesisUtterance.h" | 32 #include "public/platform/WebSpeechSynthesisUtterance.h" |
33 #include "public/platform/WebSpeechSynthesizer.h" | 33 #include "public/platform/WebSpeechSynthesizer.h" |
34 #include "public/platform/WebSpeechSynthesizerClient.h" | 34 #include "public/platform/WebSpeechSynthesizerClient.h" |
35 #include "wtf/RetainPtr.h" | |
36 | 35 |
37 namespace blink { | 36 namespace blink { |
38 | 37 |
39 PlatformSpeechSynthesizer* PlatformSpeechSynthesizer::create(PlatformSpeechSynth
esizerClient* client) | 38 PlatformSpeechSynthesizer* PlatformSpeechSynthesizer::create(PlatformSpeechSynth
esizerClient* client) |
40 { | 39 { |
41 PlatformSpeechSynthesizer* synthesizer = new PlatformSpeechSynthesizer(clien
t); | 40 PlatformSpeechSynthesizer* synthesizer = new PlatformSpeechSynthesizer(clien
t); |
42 synthesizer->initializeVoiceList(); | 41 synthesizer->initializeVoiceList(); |
43 return synthesizer; | 42 return synthesizer; |
44 } | 43 } |
45 | 44 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 89 } |
91 | 90 |
92 DEFINE_TRACE(PlatformSpeechSynthesizer) | 91 DEFINE_TRACE(PlatformSpeechSynthesizer) |
93 { | 92 { |
94 visitor->trace(m_speechSynthesizerClient); | 93 visitor->trace(m_speechSynthesizerClient); |
95 visitor->trace(m_voiceList); | 94 visitor->trace(m_voiceList); |
96 visitor->trace(m_webSpeechSynthesizerClient); | 95 visitor->trace(m_webSpeechSynthesizerClient); |
97 } | 96 } |
98 | 97 |
99 } // namespace blink | 98 } // namespace blink |
OLD | NEW |