| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 results.append(currentInterimResults[i]); | 125 results.append(currentInterimResults[i]); |
| 126 | 126 |
| 127 dispatchEvent(SpeechRecognitionEvent::createResult(resultIndex, results)); | 127 dispatchEvent(SpeechRecognitionEvent::createResult(resultIndex, results)); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void SpeechRecognition::didReceiveNoMatch(SpeechRecognitionResult* result) | 130 void SpeechRecognition::didReceiveNoMatch(SpeechRecognitionResult* result) |
| 131 { | 131 { |
| 132 dispatchEvent(SpeechRecognitionEvent::createNoMatch(result)); | 132 dispatchEvent(SpeechRecognitionEvent::createNoMatch(result)); |
| 133 } | 133 } |
| 134 | 134 |
| 135 void SpeechRecognition::didReceiveError(RawPtr<SpeechRecognitionError> error) | 135 void SpeechRecognition::didReceiveError(SpeechRecognitionError* error) |
| 136 { | 136 { |
| 137 dispatchEvent(error); | 137 dispatchEvent(error); |
| 138 m_started = false; | 138 m_started = false; |
| 139 } | 139 } |
| 140 | 140 |
| 141 void SpeechRecognition::didStart() | 141 void SpeechRecognition::didStart() |
| 142 { | 142 { |
| 143 dispatchEvent(Event::create(EventTypeNames::start)); | 143 dispatchEvent(Event::create(EventTypeNames::start)); |
| 144 } | 144 } |
| 145 | 145 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 visitor->trace(m_grammars); | 205 visitor->trace(m_grammars); |
| 206 visitor->trace(m_audioTrack); | 206 visitor->trace(m_audioTrack); |
| 207 visitor->trace(m_controller); | 207 visitor->trace(m_controller); |
| 208 visitor->trace(m_finalResults); | 208 visitor->trace(m_finalResults); |
| 209 RefCountedGarbageCollectedEventTargetWithInlineData<SpeechRecognition>::trac
e(visitor); | 209 RefCountedGarbageCollectedEventTargetWithInlineData<SpeechRecognition>::trac
e(visitor); |
| 210 PageLifecycleObserver::trace(visitor); | 210 PageLifecycleObserver::trace(visitor); |
| 211 ActiveDOMObject::trace(visitor); | 211 ActiveDOMObject::trace(visitor); |
| 212 } | 212 } |
| 213 | 213 |
| 214 } // namespace blink | 214 } // namespace blink |
| OLD | NEW |