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 106 matching lines...) Loading... |
117 results.append(currentInterimResults[i]); | 117 results.append(currentInterimResults[i]); |
118 | 118 |
119 dispatchEvent(SpeechRecognitionEvent::createResult(resultIndex, results)); | 119 dispatchEvent(SpeechRecognitionEvent::createResult(resultIndex, results)); |
120 } | 120 } |
121 | 121 |
122 void SpeechRecognition::didReceiveNoMatch(PassRefPtrWillBeRawPtr<SpeechRecogniti
onResult> result) | 122 void SpeechRecognition::didReceiveNoMatch(PassRefPtrWillBeRawPtr<SpeechRecogniti
onResult> result) |
123 { | 123 { |
124 dispatchEvent(SpeechRecognitionEvent::createNoMatch(result)); | 124 dispatchEvent(SpeechRecognitionEvent::createNoMatch(result)); |
125 } | 125 } |
126 | 126 |
127 void SpeechRecognition::didReceiveError(PassRefPtr<SpeechRecognitionError> error
) | 127 void SpeechRecognition::didReceiveError(PassRefPtrWillBeRawPtr<SpeechRecognition
Error> error) |
128 { | 128 { |
129 dispatchEvent(error); | 129 dispatchEvent(error); |
130 m_started = false; | 130 m_started = false; |
131 } | 131 } |
132 | 132 |
133 void SpeechRecognition::didStart() | 133 void SpeechRecognition::didStart() |
134 { | 134 { |
135 dispatchEvent(Event::create(EventTypeNames::start)); | 135 dispatchEvent(Event::create(EventTypeNames::start)); |
136 } | 136 } |
137 | 137 |
(...skipping 54 matching lines...) Loading... |
192 { | 192 { |
193 } | 193 } |
194 | 194 |
195 void SpeechRecognition::trace(Visitor* visitor) | 195 void SpeechRecognition::trace(Visitor* visitor) |
196 { | 196 { |
197 visitor->trace(m_grammars); | 197 visitor->trace(m_grammars); |
198 visitor->trace(m_finalResults); | 198 visitor->trace(m_finalResults); |
199 } | 199 } |
200 | 200 |
201 } // namespace WebCore | 201 } // namespace WebCore |
OLD | NEW |