To comply a rule of webkit EFL port, ewk_init()/ewk_shutdown() api call were added.
authorTaejeong Lee <taejeong.lee@samsung.com>
Wed, 5 Dec 2012 02:33:19 +0000 (11:33 +0900)
committerTaejeong Lee <taejeong.lee@samsung.com>
Mon, 10 Dec 2012 01:27:36 +0000 (10:27 +0900)
 * Also this commit includes some change about print debug info.

[Issue#] N/A
[Problem] Add ewk_init()/ewk_shutdown()
[Cause] To comply a rule of webkit EFL port.
[Solution] N/A
[SCMRequest] N/A

Change-Id: Iefa17b76f2eb67350d8a7a03d308a39dd528de4a

src/view/webkit/view_logic_scheme_support.cpp
src/wrt-client/wrt-client.cpp [changed mode: 0755->0644]
src/wrt-client/wrt-client.h

index a2d2462..cca7fd5 100644 (file)
@@ -43,6 +43,7 @@ const int ORIENTATION_PORTAIT_ANGLE = 0;
 static Eina_Bool exitAppIdlerCallback(void* /*data*/)
 {
     // webapp termination
+    ewk_shutdown();
     elm_exit();
     return ECORE_CALLBACK_CANCEL;}
 
old mode 100755 (executable)
new mode 100644 (file)
index 94359ff..24bd22d
@@ -72,6 +72,7 @@ void WrtClient::OnCreate()
 {
     LogInfo("On Create");
     ADD_PROFILING_POINT("OnCreate callback", "point");
+    ewk_init();
 }
 
 
@@ -708,6 +709,12 @@ int WrtClient::languageChangedCallback(void *data)
     return 0;
 }
 
+void WrtClient::Quit()
+{
+    ewk_shutdown();
+    DPL::Application::Quit();
+}
+
 int main(int argc,
          char *argv[])
 {
@@ -723,10 +730,14 @@ int main(int argc,
 
     // set evas backend type
     if (!getenv("ELM_ENGINE")) {
-        if (setenv("ELM_ENGINE", "gl", 1)) {
+        if (!setenv("ELM_ENGINE", "gl", 1)) {
                 LogDebug("Enable backend");
         }
     }
+    else {
+        LogDebug("ELM_ENGINE : " << getenv("ELM_ENGINE"));
+    }
+
 #ifndef TIZEN_PUBLIC
     setenv("COREGL_FASTPATH", "1", 1);
 #endif
index c3e0d65..921aebc 100644 (file)
@@ -53,6 +53,7 @@ class WrtClient :
     };
 
     ReturnStatus::Type   getReturnStatus() const;
+    virtual void Quit();
 
   protected:
     virtual void OnStop();