Skip to content
  • commit-queue@webkit.org's avatar
    [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries. · 190e98b2
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=97173
    
    Patch by Eunmi Lee <eunmi15.lee@samsung.com> on 2012-09-28
    Reviewed by Gyuyoung Kim.
    
    Source/WebCore:
    
    Remove codes to initialize and shutdown the EFL libraries from
    RunLoopEfl.cpp. Initialization and shutdown will be done in the
    ewk_main.cpp for ui process and WebProcessMainEfl.cpp for web
    process.
    
    No new tests. This patch doesn't change behavior.
    
    * platform/efl/RunLoopEfl.cpp:
    (WebCore::RunLoop::RunLoop):
    (WebCore::RunLoop::~RunLoop):
    
    Source/WebKit2:
    
    Initialize and shutdown the EFL libraries in the ewk_main.cpp for ui
    process and WebProcessMainEfl.cpp for web process.
    Additionally, initialization and shutdown are done when ewk_context is
    created and deleted, so ewk_{init,shutdown} APIs are changed to
    internal function and applications don't have to call them.
    
    * PlatformEfl.cmake:
    * UIProcess/API/efl/EWebKit2.h:
    * UIProcess/API/efl/ewk_context.cpp:
    (_Ewk_Context::_Ewk_Context):
    (_Ewk_Context::~_Ewk_Context):
    * UIProcess/API/efl/ewk_main.cpp:
    (ewk_init):
    (ewk_shutdown):
    * UIProcess/API/efl/ewk_main.h: Removed.
    * UIProcess/API/efl/ewk_main_private.h: Added.
    * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
    (EWK2UnitTest::EWK2UnitTestBase::SetUp):
    (EWK2UnitTest::EWK2UnitTestBase::TearDown):
    * WebProcess/efl/WebProcessMainEfl.cpp:
    (WebKit::WebProcessMainEfl):
    
    Tools:
    
    The initialization and shutdown are done inside the webkit, so we don't
    have to call them out of the webkit.
    
    * MiniBrowser/efl/main.c:
    (quit):
    (main):
    * WebKitTestRunner/efl/PlatformWebViewEfl.cpp:
    (WTR::initEcoreEvas):
    (WTR::PlatformWebView::~PlatformWebView):
    * WebKitTestRunner/efl/main.cpp:
    (main):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129863 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    190e98b2