Chromium Code Reviews| Index: Source/modules/speech/SpeechRecognition.h |
| diff --git a/Source/modules/speech/SpeechRecognition.h b/Source/modules/speech/SpeechRecognition.h |
| index d6ee6121756a997ba38dfe968e78bd29bf02d341..7efa4f1677175c2cc6943728902e9402fd773b7f 100644 |
| --- a/Source/modules/speech/SpeechRecognition.h |
| +++ b/Source/modules/speech/SpeechRecognition.h |
| @@ -28,6 +28,7 @@ |
| #include "core/dom/ActiveDOMObject.h" |
| #include "modules/EventTargetModules.h" |
| +#include "modules/mediastream/MediaStreamTrack.h" |
|
Mike West
2014/09/17 10:20:27
I think you can forward-declare this here, and onl
burnik
2014/09/17 11:17:20
Yes, actually in SpeechRecognitionClientProxy.cpp
|
| #include "modules/speech/SpeechGrammarList.h" |
| #include "modules/speech/SpeechRecognitionResult.h" |
| #include "platform/heap/Handle.h" |
| @@ -60,6 +61,8 @@ public: |
| void setInterimResults(bool interimResults) { m_interimResults = interimResults; } |
| unsigned long maxAlternatives() { return m_maxAlternatives; } |
| void setMaxAlternatives(unsigned long maxAlternatives) { m_maxAlternatives = maxAlternatives; } |
| + MediaStreamTrack* audioTrack() { return m_audioTrack; } |
| + void setAudioTrack(MediaStreamTrack* audioTrack) { m_audioTrack = audioTrack; } |
| // Callable by the user. |
| void start(ExceptionState&); |
| @@ -105,6 +108,7 @@ private: |
| explicit SpeechRecognition(ExecutionContext*); |
| Member<SpeechGrammarList> m_grammars; |
| + Member<MediaStreamTrack> m_audioTrack; |
| String m_lang; |
| bool m_continuous; |
| bool m_interimResults; |