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

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

Issue 315133004: Enable Oilpan by default in modules/speech/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 6 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/SpeechRecognitionResult.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 d91ff32908001ff2186a3d06fc7a08271e45e256..e689887381044c27dc08933364ec726df24aa040 100644
--- a/Source/modules/speech/SpeechRecognitionEvent.cpp
+++ b/Source/modules/speech/SpeechRecognitionEvent.cpp
@@ -36,7 +36,7 @@ SpeechRecognitionEventInit::SpeechRecognitionEventInit()
PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create()
{
- return adoptRefWillBeNoop(new SpeechRecognitionEvent());
+ return adoptRefWillBeNoop(new SpeechRecognitionEvent);
}
PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create(const AtomicString& eventName, const SpeechRecognitionEventInit& initializer)
@@ -44,15 +44,15 @@ PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create(co
return adoptRefWillBeNoop(new SpeechRecognitionEvent(eventName, initializer));
}
-PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createResult(unsigned long resultIndex, const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& results)
+PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createResult(unsigned long resultIndex, const HeapVector<Member<SpeechRecognitionResult> >& results)
{
return adoptRefWillBeNoop(new SpeechRecognitionEvent(EventTypeNames::result, resultIndex, SpeechRecognitionResultList::create(results)));
}
-PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createNoMatch(PassRefPtrWillBeRawPtr<SpeechRecognitionResult> result)
+PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createNoMatch(SpeechRecognitionResult* result)
{
if (result) {
- WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > results;
+ HeapVector<Member<SpeechRecognitionResult> > results;
results.append(result);
return adoptRefWillBeNoop(new SpeechRecognitionEvent(EventTypeNames::nomatch, 0, SpeechRecognitionResultList::create(results)));
}
@@ -79,7 +79,7 @@ SpeechRecognitionEvent::SpeechRecognitionEvent(const AtomicString& eventName, co
ScriptWrappable::init(this);
}
-SpeechRecognitionEvent::SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIndex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results)
+SpeechRecognitionEvent::SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIndex, SpeechRecognitionResultList* results)
: Event(eventName, /*canBubble=*/false, /*cancelable=*/false)
, m_resultIndex(resultIndex)
, m_results(results)
@@ -89,7 +89,6 @@ SpeechRecognitionEvent::SpeechRecognitionEvent(const AtomicString& eventName, un
SpeechRecognitionEvent::~SpeechRecognitionEvent()
{
- ScriptWrappable::init(this);
}
void SpeechRecognitionEvent::trace(Visitor* visitor)
« no previous file with comments | « Source/modules/speech/SpeechRecognitionEvent.h ('k') | Source/modules/speech/SpeechRecognitionResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698