Enable Web APIs regarding message even on non fast-open mode
authorYunchan Cho <yunchan.cho@samsung.com>
Fri, 3 May 2013 08:08:51 +0000 (17:08 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 3 May 2013 11:19:01 +0000 (20:19 +0900)
[Issue#] N/A
[Problem] On non fast-open mode of PD, Box and PD couldn't use special AppWidget Web APIs regarding message.
[Cause] AppWidget Web APIs for message was considered on only fast-open mode of PD.
[Solution] web provider enables Box and PD to use AppWidget API regarding message even on non fast-open mode.

Change-Id: Ied0e724d938b3a842ad6bd98e0900f0666ed46e7

src/Plugin/AppBoxPlugin/AppBoxRenderView.cpp

index 523820c..f0bec40 100644 (file)
@@ -255,7 +255,13 @@ void AppBoxRenderView::hidePd()
 
 Evas_Object* AppBoxRenderView::getBoxWebView()
 {
-    return m_boxWrt->GetCurrentWebview();
+    if (!m_pdHelper) {
+        return m_boxWrt->GetCurrentWebview();
+    } else {
+        // Here, we can't use GetCurrentWebView() of wrt-core to get Box' webview,
+        // because in the non fast-open, GetCurrentWebview() returns PD's webview.
+        return m_pdHelper->getBoxWebView();
+    }
 }
 
 Evas_Object* AppBoxRenderView::getPdWebView()