#include <Eina.h>
#include <Evas.h>
#include <Ecore.h>
+#include <EWebKit2.h>
#include <ewk_view.h>
#include <ewk_context.h>
#include <ewk_settings.h>
}
m_boxRenderBuffer = AppBoxObserver::Instance()->getRenderBuffer(m_instanceId);
- m_pdFastOpen = web_provider_livebox_get_pd_fast_open(m_boxId.c_str()) ? true : false;
+
+ // use fastopen to default
+ // m_pdFastOpen = web_provider_livebox_get_pd_fast_open(m_boxId.c_str()) ? true : false;
+ m_pdFastOpen = false;
AppBoxObserver::Instance()->registerRenderView(m_instanceId, this);
}
Evas_Object* webview, const char* result, void* data)
{
LogD("enter");
+
std::string resultStr(result ? result : "null");
LogD("result: %s", resultStr.c_str());
}
void AppBoxRenderView::startLoadCallback(Evas_Object* webview)
{
LogD("enter");
+ if(!webview) {
+ return;
+ }
// execute injection for creating js objects
std::ifstream jsFile(injectionFile);
std::string script((std::istreambuf_iterator<char>(jsFile)),
void AppBoxRenderView::finishLoadCallback(Evas_Object* webview)
{
LogD("enter");
+ if (!webview) {
+ return;
+ }
+
ewk_view_visibility_set(webview, EINA_TRUE);
if (!m_pdHelper) {
void AppBoxRenderView::createWindowAfterCallback(Evas_Object* parent, Evas_Object* child)
{
LogD("enter");
+ if (!parent) {
+ return;
+ }
if (m_pdHelper) {
Evas* parentCanvas = evas_object_evas_get(parent);