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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 if (m_webSpeechSynthesizer.get()) | 71 if (m_webSpeechSynthesizer.get()) |
72 m_webSpeechSynthesizer->resume(); | 72 m_webSpeechSynthesizer->resume(); |
73 } | 73 } |
74 | 74 |
75 void PlatformSpeechSynthesizer::cancel() | 75 void PlatformSpeechSynthesizer::cancel() |
76 { | 76 { |
77 if (m_webSpeechSynthesizer.get()) | 77 if (m_webSpeechSynthesizer.get()) |
78 m_webSpeechSynthesizer->cancel(); | 78 m_webSpeechSynthesizer->cancel(); |
79 } | 79 } |
80 | 80 |
81 void PlatformSpeechSynthesizer::setVoiceList(HeapVector<Member<PlatformSpeechSyn
thesisVoice> >& voices) | 81 void PlatformSpeechSynthesizer::setVoiceList(HeapVector<Member<PlatformSpeechSyn
thesisVoice>>& voices) |
82 { | 82 { |
83 m_voiceList = voices; | 83 m_voiceList = voices; |
84 } | 84 } |
85 | 85 |
86 void PlatformSpeechSynthesizer::initializeVoiceList() | 86 void PlatformSpeechSynthesizer::initializeVoiceList() |
87 { | 87 { |
88 if (m_webSpeechSynthesizer.get()) | 88 if (m_webSpeechSynthesizer.get()) |
89 m_webSpeechSynthesizer->updateVoiceList(); | 89 m_webSpeechSynthesizer->updateVoiceList(); |
90 } | 90 } |
91 | 91 |
92 void PlatformSpeechSynthesizer::trace(Visitor* visitor) | 92 void PlatformSpeechSynthesizer::trace(Visitor* visitor) |
93 { | 93 { |
94 visitor->trace(m_speechSynthesizerClient); | 94 visitor->trace(m_speechSynthesizerClient); |
95 visitor->trace(m_voiceList); | 95 visitor->trace(m_voiceList); |
96 visitor->trace(m_webSpeechSynthesizerClient); | 96 visitor->trace(m_webSpeechSynthesizerClient); |
97 } | 97 } |
98 | 98 |
99 } // namespace blink | 99 } // namespace blink |
OLD | NEW |