Move WebSpeech code to use std::unique_ptr
authork.czech@samsung.com <k.czech@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 16:25:13 +0000 (16:25 +0000)
committerk.czech@samsung.com <k.czech@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 16:25:13 +0000 (16:25 +0000)
commit5105f9b9efc86aaa63f2db052e9c928f531caca6
treefe1cb13946af1e5f45269091d4a0b9fdc97cedc3
parent37b388ed293070faa2295da5cbfb309ff92ea8f2
Move WebSpeech code to use std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=130231

Reviewed by Anders Carlsson.

Replace uses of OwnPtr and PassOwnPtr in WebSpeech code with std::unique_ptr.

No new tests. Covered by existing ones.

* Modules/speech/SpeechRecognitionController.cpp:
* Modules/speech/SpeechRecognitionController.h:
* Modules/speech/SpeechSynthesis.cpp:
(WebCore::SpeechSynthesis::setPlatformSynthesizer):
(WebCore::SpeechSynthesis::getVoices):
(WebCore::SpeechSynthesis::startSpeakingImmediately):
* Modules/speech/SpeechSynthesis.h:
* WebCore.exp.in:
* platform/PlatformSpeechSynthesizer.cpp:
* platform/PlatformSpeechSynthesizer.h:
* platform/mock/PlatformSpeechSynthesizerMock.cpp:
* platform/mock/PlatformSpeechSynthesizerMock.h:
* testing/Internals.cpp:
(WebCore::Internals::enableMockSpeechSynthesizer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/speech/SpeechRecognitionController.cpp
Source/WebCore/Modules/speech/SpeechRecognitionController.h
Source/WebCore/Modules/speech/SpeechSynthesis.cpp
Source/WebCore/Modules/speech/SpeechSynthesis.h
Source/WebCore/WebCore.exp.in
Source/WebCore/platform/PlatformSpeechSynthesizer.cpp
Source/WebCore/platform/PlatformSpeechSynthesizer.h
Source/WebCore/platform/mock/PlatformSpeechSynthesizerMock.cpp
Source/WebCore/platform/mock/PlatformSpeechSynthesizerMock.h
Source/WebCore/testing/Internals.cpp