| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 PlatformSpeechSynthesisUtterance* utterance) { | 220 PlatformSpeechSynthesisUtterance* utterance) { |
| 221 if (utterance->client()) | 221 if (utterance->client()) |
| 222 handleSpeakingCompleted( | 222 handleSpeakingCompleted( |
| 223 static_cast<SpeechSynthesisUtterance*>(utterance->client()), true); | 223 static_cast<SpeechSynthesisUtterance*>(utterance->client()), true); |
| 224 } | 224 } |
| 225 | 225 |
| 226 SpeechSynthesisUtterance* SpeechSynthesis::currentSpeechUtterance() const { | 226 SpeechSynthesisUtterance* SpeechSynthesis::currentSpeechUtterance() const { |
| 227 if (m_utteranceQueue.isEmpty()) | 227 if (m_utteranceQueue.isEmpty()) |
| 228 return nullptr; | 228 return nullptr; |
| 229 | 229 |
| 230 return m_utteranceQueue.first(); | 230 return m_utteranceQueue.front(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 const AtomicString& SpeechSynthesis::interfaceName() const { | 233 const AtomicString& SpeechSynthesis::interfaceName() const { |
| 234 return EventTargetNames::SpeechSynthesis; | 234 return EventTargetNames::SpeechSynthesis; |
| 235 } | 235 } |
| 236 | 236 |
| 237 DEFINE_TRACE(SpeechSynthesis) { | 237 DEFINE_TRACE(SpeechSynthesis) { |
| 238 visitor->trace(m_platformSpeechSynthesizer); | 238 visitor->trace(m_platformSpeechSynthesizer); |
| 239 visitor->trace(m_voiceList); | 239 visitor->trace(m_voiceList); |
| 240 visitor->trace(m_utteranceQueue); | 240 visitor->trace(m_utteranceQueue); |
| 241 PlatformSpeechSynthesizerClient::trace(visitor); | 241 PlatformSpeechSynthesizerClient::trace(visitor); |
| 242 ContextClient::trace(visitor); | 242 ContextClient::trace(visitor); |
| 243 EventTargetWithInlineData::trace(visitor); | 243 EventTargetWithInlineData::trace(visitor); |
| 244 } | 244 } |
| 245 | 245 |
| 246 } // namespace blink | 246 } // namespace blink |
| OLD | NEW |