Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: third_party/WebKit/Source/modules/speech/SpeechRecognition.cpp

Issue 1864243004: Remove RawPtr from Source/modules Part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698