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

Unified Diff: Source/modules/speech/SpeechRecognitionEvent.cpp

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/speech/SpeechRecognitionEvent.h ('k') | Source/modules/speech/SpeechSynthesisEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechRecognitionEvent.cpp
diff --git a/Source/modules/speech/SpeechRecognitionEvent.cpp b/Source/modules/speech/SpeechRecognitionEvent.cpp
index b40fe9bd0f4d3eda55adc786803db9a75c0b4660..029b5042e2f3a11d4b99c99f6ba7eaa1a4b1801f 100644
--- a/Source/modules/speech/SpeechRecognitionEvent.cpp
+++ b/Source/modules/speech/SpeechRecognitionEvent.cpp
@@ -34,19 +34,19 @@ SpeechRecognitionEventInit::SpeechRecognitionEventInit()
{
}
-PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create()
+PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create()
{
- return adoptRef(new SpeechRecognitionEvent());
+ return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionEvent());
}
-PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create(const AtomicString& eventName, const SpeechRecognitionEventInit& initializer)
+PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create(const AtomicString& eventName, const SpeechRecognitionEventInit& initializer)
{
- return adoptRef(new SpeechRecognitionEvent(eventName, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionEvent(eventName, initializer));
}
PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createResult(unsigned long resultIndex, const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& results)
{
- return adoptRef(new SpeechRecognitionEvent(EventTypeNames::result, resultIndex, SpeechRecognitionResultList::create(results)));
+ return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionEvent(EventTypeNames::result, resultIndex, SpeechRecognitionResultList::create(results)));
}
PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createNoMatch(PassRefPtrWillBeRawPtr<SpeechRecognitionResult> result)
@@ -57,7 +57,7 @@ PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createNoMatch(PassRef
return adoptRef(new SpeechRecognitionEvent(EventTypeNames::nomatch, 0, SpeechRecognitionResultList::create(results)));
}
- return adoptRef(new SpeechRecognitionEvent(EventTypeNames::nomatch, 0, nullptr));
+ return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionEvent(EventTypeNames::nomatch, 0, nullptr));
}
const AtomicString& SpeechRecognitionEvent::interfaceName() const
« no previous file with comments | « Source/modules/speech/SpeechRecognitionEvent.h ('k') | Source/modules/speech/SpeechSynthesisEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698