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 16 matching lines...) Expand all Loading... |
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" | 35 #include "wtf/RetainPtr.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace blink { |
38 | 38 |
39 PlatformSpeechSynthesizer* PlatformSpeechSynthesizer::create(PlatformSpeechSynth
esizerClient* client) | 39 PlatformSpeechSynthesizer* PlatformSpeechSynthesizer::create(PlatformSpeechSynth
esizerClient* client) |
40 { | 40 { |
41 PlatformSpeechSynthesizer* synthesizer = new PlatformSpeechSynthesizer(clien
t); | 41 PlatformSpeechSynthesizer* synthesizer = new PlatformSpeechSynthesizer(clien
t); |
42 synthesizer->initializeVoiceList(); | 42 synthesizer->initializeVoiceList(); |
43 return synthesizer; | 43 return synthesizer; |
44 } | 44 } |
45 | 45 |
46 PlatformSpeechSynthesizer::PlatformSpeechSynthesizer(PlatformSpeechSynthesizerCl
ient* client) | 46 PlatformSpeechSynthesizer::PlatformSpeechSynthesizer(PlatformSpeechSynthesizerCl
ient* client) |
47 : m_speechSynthesizerClient(client) | 47 : m_speechSynthesizerClient(client) |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 m_webSpeechSynthesizer->updateVoiceList(); | 91 m_webSpeechSynthesizer->updateVoiceList(); |
92 } | 92 } |
93 | 93 |
94 void PlatformSpeechSynthesizer::trace(Visitor* visitor) | 94 void PlatformSpeechSynthesizer::trace(Visitor* visitor) |
95 { | 95 { |
96 visitor->trace(m_speechSynthesizerClient); | 96 visitor->trace(m_speechSynthesizerClient); |
97 visitor->trace(m_voiceList); | 97 visitor->trace(m_voiceList); |
98 visitor->trace(m_webSpeechSynthesizerClient); | 98 visitor->trace(m_webSpeechSynthesizerClient); |
99 } | 99 } |
100 | 100 |
101 } // namespace WebCore | 101 } // namespace blink |
OLD | NEW |