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 12 matching lines...) Expand all Loading... |
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 #ifndef PlatformSpeechSynthesizer_h | 26 #ifndef PlatformSpeechSynthesizer_h |
27 #define PlatformSpeechSynthesizer_h | 27 #define PlatformSpeechSynthesizer_h |
28 | 28 |
29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
31 #include "platform/speech/PlatformSpeechSynthesisVoice.h" | 31 #include "platform/speech/PlatformSpeechSynthesisVoice.h" |
32 #include "wtf/Vector.h" | 32 #include "wtf/Vector.h" |
33 #include <memory> | |
34 | 33 |
35 namespace blink { | 34 namespace blink { |
36 | 35 |
37 enum SpeechBoundary { | 36 enum SpeechBoundary { |
38 SpeechWordBoundary, | 37 SpeechWordBoundary, |
39 SpeechSentenceBoundary | 38 SpeechSentenceBoundary |
40 }; | 39 }; |
41 | 40 |
42 class PlatformSpeechSynthesisUtterance; | 41 class PlatformSpeechSynthesisUtterance; |
43 class WebSpeechSynthesizer; | 42 class WebSpeechSynthesizer; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 protected: | 87 protected: |
89 explicit PlatformSpeechSynthesizer(PlatformSpeechSynthesizerClient*); | 88 explicit PlatformSpeechSynthesizer(PlatformSpeechSynthesizerClient*); |
90 | 89 |
91 virtual void initializeVoiceList(); | 90 virtual void initializeVoiceList(); |
92 | 91 |
93 Vector<RefPtr<PlatformSpeechSynthesisVoice>> m_voiceList; | 92 Vector<RefPtr<PlatformSpeechSynthesisVoice>> m_voiceList; |
94 | 93 |
95 private: | 94 private: |
96 Member<PlatformSpeechSynthesizerClient> m_speechSynthesizerClient; | 95 Member<PlatformSpeechSynthesizerClient> m_speechSynthesizerClient; |
97 | 96 |
98 std::unique_ptr<WebSpeechSynthesizer> m_webSpeechSynthesizer; | 97 OwnPtr<WebSpeechSynthesizer> m_webSpeechSynthesizer; |
99 Member<WebSpeechSynthesizerClientImpl> m_webSpeechSynthesizerClient; | 98 Member<WebSpeechSynthesizerClientImpl> m_webSpeechSynthesizerClient; |
100 }; | 99 }; |
101 | 100 |
102 } // namespace blink | 101 } // namespace blink |
103 | 102 |
104 #endif // PlatformSpeechSynthesizer_h | 103 #endif // PlatformSpeechSynthesizer_h |
OLD | NEW |