| Index: Source/modules/speech/SpeechSynthesisEvent.h
|
| diff --git a/Source/modules/speech/SpeechSynthesisEvent.h b/Source/modules/speech/SpeechSynthesisEvent.h
|
| index a71abe82ec05cb92b71cfa5f0ef2661a3155c93c..8db2085c88bfcbea331726846de2a50bc93e97b4 100644
|
| --- a/Source/modules/speech/SpeechSynthesisEvent.h
|
| +++ b/Source/modules/speech/SpeechSynthesisEvent.h
|
| @@ -27,6 +27,7 @@
|
| #define SpeechSynthesisEvent_h
|
|
|
| #include "modules/EventModules.h"
|
| +#include "modules/speech/SpeechSynthesisUtterance.h"
|
|
|
| namespace blink {
|
|
|
| @@ -34,23 +35,22 @@ class SpeechSynthesisEvent final : public Event {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| static PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> create();
|
| - static PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> create(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name);
|
| + static PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> create(const AtomicString& type, SpeechSynthesisUtterance*, unsigned charIndex, float elapsedTime, const String& name);
|
|
|
| + SpeechSynthesisUtterance* utterance() const { return m_utterance; }
|
| unsigned charIndex() const { return m_charIndex; }
|
| float elapsedTime() const { return m_elapsedTime; }
|
| const String& name() const { return m_name; }
|
|
|
| virtual const AtomicString& interfaceName() const override { return EventNames::SpeechSynthesisEvent; }
|
|
|
| - DEFINE_INLINE_VIRTUAL_TRACE()
|
| - {
|
| - Event::trace(visitor);
|
| - }
|
| + DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| SpeechSynthesisEvent();
|
| - SpeechSynthesisEvent(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name);
|
| + SpeechSynthesisEvent(const AtomicString& type, SpeechSynthesisUtterance*, unsigned charIndex, float elapsedTime, const String& name);
|
|
|
| + PersistentWillBeMember<SpeechSynthesisUtterance> m_utterance;
|
| unsigned m_charIndex;
|
| float m_elapsedTime;
|
| String m_name;
|
|
|