| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 * * Redistributions of source code must retain the above copyright | 7 * * 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 * * Redistributions in binary form must reproduce the above copyright | 9 * * 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void stopFunction(); | 70 void stopFunction(); |
| 71 void abort(); | 71 void abort(); |
| 72 | 72 |
| 73 // Called by the SpeechRecognitionClient. | 73 // Called by the SpeechRecognitionClient. |
| 74 void didStartAudio(); | 74 void didStartAudio(); |
| 75 void didStartSound(); | 75 void didStartSound(); |
| 76 void didStartSpeech(); | 76 void didStartSpeech(); |
| 77 void didEndSpeech(); | 77 void didEndSpeech(); |
| 78 void didEndSound(); | 78 void didEndSound(); |
| 79 void didEndAudio(); | 79 void didEndAudio(); |
| 80 void didReceiveResults(const HeapVector<Member<SpeechRecognitionResult> >& n
ewFinalResults, const HeapVector<Member<SpeechRecognitionResult> >& currentInter
imResults); | 80 void didReceiveResults(const HeapVector<Member<SpeechRecognitionResult>>& ne
wFinalResults, const HeapVector<Member<SpeechRecognitionResult>>& currentInterim
Results); |
| 81 void didReceiveNoMatch(SpeechRecognitionResult*); | 81 void didReceiveNoMatch(SpeechRecognitionResult*); |
| 82 void didReceiveError(PassRefPtrWillBeRawPtr<SpeechRecognitionError>); | 82 void didReceiveError(PassRefPtrWillBeRawPtr<SpeechRecognitionError>); |
| 83 void didStart(); | 83 void didStart(); |
| 84 void didEnd(); | 84 void didEnd(); |
| 85 | 85 |
| 86 // EventTarget. | 86 // EventTarget. |
| 87 virtual const AtomicString& interfaceName() const override; | 87 virtual const AtomicString& interfaceName() const override; |
| 88 virtual ExecutionContext* executionContext() const override; | 88 virtual ExecutionContext* executionContext() const override; |
| 89 | 89 |
| 90 // ActiveDOMObject. | 90 // ActiveDOMObject. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 112 Member<MediaStreamTrack> m_audioTrack; | 112 Member<MediaStreamTrack> m_audioTrack; |
| 113 String m_lang; | 113 String m_lang; |
| 114 bool m_continuous; | 114 bool m_continuous; |
| 115 bool m_interimResults; | 115 bool m_interimResults; |
| 116 unsigned long m_maxAlternatives; | 116 unsigned long m_maxAlternatives; |
| 117 | 117 |
| 118 RawPtrWillBeMember<SpeechRecognitionController> m_controller; | 118 RawPtrWillBeMember<SpeechRecognitionController> m_controller; |
| 119 bool m_stoppedByActiveDOMObject; | 119 bool m_stoppedByActiveDOMObject; |
| 120 bool m_started; | 120 bool m_started; |
| 121 bool m_stopping; | 121 bool m_stopping; |
| 122 HeapVector<Member<SpeechRecognitionResult> > m_finalResults; | 122 HeapVector<Member<SpeechRecognitionResult>> m_finalResults; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace blink | 125 } // namespace blink |
| 126 | 126 |
| 127 #endif // SpeechRecognition_h | 127 #endif // SpeechRecognition_h |
| OLD | NEW |