| Index: Source/modules/speech/SpeechRecognition.cpp
|
| diff --git a/Source/modules/speech/SpeechRecognition.cpp b/Source/modules/speech/SpeechRecognition.cpp
|
| index dfc7248b8200de148c4f02aeca0b4c894278657d..2c163fad84ace6ebf24eff06b53cc99bdc8e4079 100644
|
| --- a/Source/modules/speech/SpeechRecognition.cpp
|
| +++ b/Source/modules/speech/SpeechRecognition.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/page/Page.h"
|
| +#include "modules/mediastream/MediaStreamTrack.h"
|
| #include "modules/speech/SpeechRecognitionController.h"
|
| #include "modules/speech/SpeechRecognitionError.h"
|
| #include "modules/speech/SpeechRecognitionEvent.h"
|
| @@ -53,7 +54,7 @@ void SpeechRecognition::start(ExceptionState& exceptionState)
|
| }
|
|
|
| m_finalResults.clear();
|
| - m_controller->start(this, m_grammars.get(), m_lang, m_continuous, m_interimResults, m_maxAlternatives);
|
| + m_controller->start(this, m_grammars.get(), m_lang, m_continuous, m_interimResults, m_maxAlternatives, m_audioTrack);
|
| m_started = true;
|
| }
|
|
|
| @@ -168,6 +169,7 @@ bool SpeechRecognition::hasPendingActivity() const
|
| SpeechRecognition::SpeechRecognition(ExecutionContext* context)
|
| : ActiveDOMObject(context)
|
| , m_grammars(SpeechGrammarList::create()) // FIXME: The spec is not clear on the default value for the grammars attribute.
|
| + , m_audioTrack(nullptr)
|
| , m_continuous(false)
|
| , m_interimResults(false)
|
| , m_maxAlternatives(1)
|
| @@ -194,6 +196,7 @@ SpeechRecognition::~SpeechRecognition()
|
| void SpeechRecognition::trace(Visitor* visitor)
|
| {
|
| visitor->trace(m_grammars);
|
| + visitor->trace(m_audioTrack);
|
| #if ENABLE(OILPAN)
|
| visitor->trace(m_controller);
|
| #endif
|
|
|