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

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

Issue 139803012: Move speech module over to Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch SpeechRecognitionResult over to WillBeHeapVector also Created 6 years, 10 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
Index: Source/modules/speech/SpeechSynthesisUtterance.cpp
diff --git a/Source/modules/speech/SpeechSynthesisUtterance.cpp b/Source/modules/speech/SpeechSynthesisUtterance.cpp
index 7031c0d90ce68e3ec1220111ff060a0fa6ae8ff8..8089a8d1248a6b2ab922423c1d9f9cb437f28e0b 100644
--- a/Source/modules/speech/SpeechSynthesisUtterance.cpp
+++ b/Source/modules/speech/SpeechSynthesisUtterance.cpp
@@ -28,9 +28,11 @@
namespace WebCore {
-PassRefPtr<SpeechSynthesisUtterance> SpeechSynthesisUtterance::create(ExecutionContext* context, const String& text)
+DEFINE_GC_INFO(SpeechSynthesisUtterance);
+
+PassRefPtrWillBeRawPtr<SpeechSynthesisUtterance> SpeechSynthesisUtterance::create(ExecutionContext* context, const String& text)
{
- return adoptRef(new SpeechSynthesisUtterance(context, text));
+ return adoptRefWillBeNoop(new SpeechSynthesisUtterance(context, text));
zerny-chromium 2014/02/12 11:45:19 adoptRefCountedWillBeGarbageCollected
}
SpeechSynthesisUtterance::SpeechSynthesisUtterance(ExecutionContext* context, const String& text)
@@ -71,4 +73,9 @@ void SpeechSynthesisUtterance::setVoice(SpeechSynthesisVoice* voice)
m_platformUtterance->setVoice(voice->platformVoice());
}
+void SpeechSynthesisUtterance::trace(Visitor* visitor)
+{
+ visitor->trace(m_voice);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698