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

Unified Diff: Source/web/WebSpeechRecognitionResult.cpp

Issue 139803012: Move speech module over to Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More namespace tweaks for clang 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/web/WebSpeechRecognitionResult.cpp
diff --git a/Source/web/WebSpeechRecognitionResult.cpp b/Source/web/WebSpeechRecognitionResult.cpp
index 165cfe02afda7d96eca4e7fc973ed62f4e62d9ba..5e1e268d9e66bbfbe408b69b30fb5505665951d4 100644
--- a/Source/web/WebSpeechRecognitionResult.cpp
+++ b/Source/web/WebSpeechRecognitionResult.cpp
@@ -26,11 +26,20 @@
#include "config.h"
#include "WebSpeechRecognitionResult.h"
+#include "heap/Handle.h"
#include "modules/speech/SpeechRecognitionAlternative.h"
#include "modules/speech/SpeechRecognitionResult.h"
#include "wtf/PassRefPtr.h"
+#include "wtf/RawPtr.h"
+#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
+// Move them into WebCore for the benefit of template aliases.
haraken 2014/02/12 05:18:45 Agreed.
+namespace WebCore {
+using WTF::RawPtr;
+using WTF::RefPtr;
+};
+
namespace blink {
void WebSpeechRecognitionResult::assign(const WebSpeechRecognitionResult& other)
@@ -42,7 +51,7 @@ void WebSpeechRecognitionResult::assign(const WebVector<WebString>& transcripts,
{
ASSERT(transcripts.size() == confidences.size());
- Vector<RefPtr<WebCore::SpeechRecognitionAlternative> > alternatives(transcripts.size());
+ Vector<WebCore::RefPtrWillBeRawPtr<WebCore::SpeechRecognitionAlternative> > alternatives(transcripts.size());
for (size_t i = 0; i < transcripts.size(); ++i)
alternatives[i] = WebCore::SpeechRecognitionAlternative::create(transcripts[i], confidences[i]);
« Source/modules/speech/SpeechSynthesis.cpp ('K') | « Source/modules/speech/SpeechSynthesisVoice.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698