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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // Called by the SpeechRecognitionClient. | 70 // Called by the SpeechRecognitionClient. |
71 void didStartAudio(); | 71 void didStartAudio(); |
72 void didStartSound(); | 72 void didStartSound(); |
73 void didStartSpeech(); | 73 void didStartSpeech(); |
74 void didEndSpeech(); | 74 void didEndSpeech(); |
75 void didEndSound(); | 75 void didEndSound(); |
76 void didEndAudio(); | 76 void didEndAudio(); |
77 void didReceiveResults(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecog
nitionResult> >& newFinalResults, const WillBeHeapVector<RefPtrWillBeMember<Spee
chRecognitionResult> >& currentInterimResults); | 77 void didReceiveResults(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecog
nitionResult> >& newFinalResults, const WillBeHeapVector<RefPtrWillBeMember<Spee
chRecognitionResult> >& currentInterimResults); |
78 void didReceiveNoMatch(PassRefPtrWillBeRawPtr<SpeechRecognitionResult>); | 78 void didReceiveNoMatch(PassRefPtrWillBeRawPtr<SpeechRecognitionResult>); |
79 void didReceiveError(PassRefPtr<SpeechRecognitionError>); | 79 void didReceiveError(PassRefPtrWillBeRawPtr<SpeechRecognitionError>); |
80 void didStart(); | 80 void didStart(); |
81 void didEnd(); | 81 void didEnd(); |
82 | 82 |
83 // EventTarget. | 83 // EventTarget. |
84 virtual const AtomicString& interfaceName() const OVERRIDE; | 84 virtual const AtomicString& interfaceName() const OVERRIDE; |
85 virtual ExecutionContext* executionContext() const OVERRIDE; | 85 virtual ExecutionContext* executionContext() const OVERRIDE; |
86 | 86 |
87 // ActiveDOMObject. | 87 // ActiveDOMObject. |
88 virtual bool hasPendingActivity() const OVERRIDE; | 88 virtual bool hasPendingActivity() const OVERRIDE; |
89 virtual void stop() OVERRIDE; | 89 virtual void stop() OVERRIDE; |
(...skipping 26 matching lines...) Expand all Loading... |
116 SpeechRecognitionController* m_controller; | 116 SpeechRecognitionController* m_controller; |
117 bool m_stoppedByActiveDOMObject; | 117 bool m_stoppedByActiveDOMObject; |
118 bool m_started; | 118 bool m_started; |
119 bool m_stopping; | 119 bool m_stopping; |
120 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult
s; | 120 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult
s; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace WebCore | 123 } // namespace WebCore |
124 | 124 |
125 #endif // SpeechRecognition_h | 125 #endif // SpeechRecognition_h |
OLD | NEW |