Move to using std::unique_ptr for EFL objects.
authorryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Mar 2014 04:13:37 +0000 (04:13 +0000)
committerryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Mar 2014 04:13:37 +0000 (04:13 +0000)
commit65c7d7969fa3fc73c61ec4806cab7c2e375445d5
treea66b94f1671b3ea3bfe2e7c0ed09177f26ffa72b
parent41adde73038f7edc811aa0ba5e0036231bb96e9c
Move to using std::unique_ptr for EFL objects.
https://bugs.webkit.org/show_bug.cgi?id=129853

Patch by Hyowon Kim <hw1008.kim@samsung.com> on 2014-03-20
Reviewed by Gyuyoung Kim.

EflUniquePtr is a template alias of std::unique_ptr
with a custom deleter for each Efl Objects, which is motivated by GUniquePtr.
This patch replaces uses of OwnPtr and PassOwnPtr for Efl objects with EflUniquePtr.

Source/WebCore:

No new tests. No new functionality.

* platform/efl/EflScreenUtilities.h:
* platform/efl/RenderThemeEfl.cpp:
(WebCore::RenderThemeEfl::ThemePartCacheEntry::create):
(WebCore::RenderThemeEfl::loadTheme):
* platform/efl/RenderThemeEfl.h:
* platform/graphics/Icon.h:
* platform/graphics/efl/EvasGLContext.h:
(WebCore::EvasGLContext::create):
* platform/graphics/efl/EvasGLSurface.h:
(WebCore::EvasGLSurface::create):

Source/WebKit/efl:

* WebCoreSupport/AcceleratedCompositingContextEfl.cpp:
(WebCore::AcceleratedCompositingContext::initialize):
* WebCoreSupport/AcceleratedCompositingContextEfl.h:
* WebCoreSupport/BatteryClientEfl.h:
* WebCoreSupport/DumpRenderTreeSupportEfl.h:
* WebCoreSupport/EditorClientEfl.h:
* WebCoreSupport/FrameNetworkingContextEfl.h:
* WebCoreSupport/NavigatorContentUtilsClientEfl.h:
* ewk/ewk_view.cpp:
(_ewk_view_editor_command_string_get):
* tests/UnitTestUtils/EWKTestView.cpp:
(EWKUnitTests::EWKTestView::init):
* tests/UnitTestUtils/EWKTestView.h:

Source/WebKit2:

* Platform/Module.h:
* Platform/efl/ModuleEfl.cpp:
(WebKit::Module::load):
* UIProcess/API/efl/EwkView.cpp:
(EwkView::EwkView):
* UIProcess/API/efl/EwkView.h:
* UIProcess/efl/InputMethodContextEfl.cpp:
(WebKit::InputMethodContextEfl::InputMethodContextEfl):
(WebKit::InputMethodContextEfl::createIMFContext):
* UIProcess/efl/InputMethodContextEfl.h:
(WebKit::InputMethodContextEfl::create):

Source/WTF:

* wtf/OwnPtrCommon.h:
* wtf/PlatformEfl.cmake:
* wtf/RunLoop.h:
* wtf/efl/MainThreadEfl.cpp:
(WTF::pipeObject):
(WTF::initializeMainThreadPlatform):
* wtf/efl/OwnPtrEfl.cpp: Removed.
* wtf/efl/RunLoopEfl.cpp:
(WTF::RunLoop::RunLoop):
* wtf/efl/UniquePtrEfl.h: Added.
(WTF::EflPtrDeleter::operator()):

Tools:

* DumpRenderTree/efl/DumpRenderTree.cpp:
(main):
* ImageDiff/efl/ImageDiff.cpp:
(initEfl):
(main):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@166039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
36 files changed:
Source/WTF/ChangeLog
Source/WTF/wtf/OwnPtrCommon.h
Source/WTF/wtf/PlatformEfl.cmake
Source/WTF/wtf/RunLoop.h
Source/WTF/wtf/efl/MainThreadEfl.cpp
Source/WTF/wtf/efl/OwnPtrEfl.cpp [deleted file]
Source/WTF/wtf/efl/RunLoopEfl.cpp
Source/WTF/wtf/efl/UniquePtrEfl.h [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/efl/EflScreenUtilities.h
Source/WebCore/platform/efl/RenderThemeEfl.cpp
Source/WebCore/platform/efl/RenderThemeEfl.h
Source/WebCore/platform/graphics/Icon.h
Source/WebCore/platform/graphics/efl/EvasGLContext.h
Source/WebCore/platform/graphics/efl/EvasGLSurface.h
Source/WebKit/efl/ChangeLog
Source/WebKit/efl/WebCoreSupport/AcceleratedCompositingContextEfl.cpp
Source/WebKit/efl/WebCoreSupport/AcceleratedCompositingContextEfl.h
Source/WebKit/efl/WebCoreSupport/BatteryClientEfl.h
Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h
Source/WebKit/efl/WebCoreSupport/EditorClientEfl.h
Source/WebKit/efl/WebCoreSupport/FrameNetworkingContextEfl.h
Source/WebKit/efl/WebCoreSupport/NavigatorContentUtilsClientEfl.h
Source/WebKit/efl/ewk/ewk_view.cpp
Source/WebKit/efl/tests/UnitTestUtils/EWKTestView.cpp
Source/WebKit/efl/tests/UnitTestUtils/EWKTestView.h
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/Module.h
Source/WebKit2/Platform/efl/ModuleEfl.cpp
Source/WebKit2/UIProcess/API/efl/EwkView.cpp
Source/WebKit2/UIProcess/API/efl/EwkView.h
Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp
Source/WebKit2/UIProcess/efl/InputMethodContextEfl.h
Tools/ChangeLog
Tools/DumpRenderTree/efl/DumpRenderTree.cpp
Tools/ImageDiff/efl/ImageDiff.cpp