suspendWebkit(m_currentEwkView);
}
+ evas_object_focus_set(m_currentEwkView, EINA_FALSE);
+
// call user callback
if (!m_cbs->suspend.empty()) {
m_cbs->suspend(true);
}
if (m_window) {
- elm_win_activate(m_window);
+ elm_win_raise(m_window);
}
evas_object_focus_set(m_currentEwkView, EINA_TRUE);
LogError("Fail to get uri from ewk_view_uri_get");
return;
}
+
+ // webview activated
+ PluginModuleSupport::resume(m_ewkContext);
+ resumeWebkit(m_currentEwkView);
if (DPL::ToUTF8String(*servicedUri) == currentUri) {
- LogInfo("current page is reloaded");
- ewk_view_reload(m_currentEwkView);
+ LogInfo("current page is raised");
+ // set only encoded bundle
+ double scale = elm_config_scale_get();
+ PluginModuleSupport::setCustomProperties(
+ m_ewkContext,
+ &scale,
+ ApplicationDataSingleton::Instance().getEncodedBundle());
+ PluginModuleSupport::dispatchJavaScriptEvent(
+ m_ewkContext,
+ WrtPlugins::W3C::ServiceCustomEvent,
+ NULL);
} else {
LogInfo("service page is loaded");
m_currentUri = DPL::ToUTF8String(*servicedUri);
- ewk_view_uri_set(m_currentEwkView, m_currentUri.c_str());
+ ewk_view_url_set(m_currentEwkView, m_currentUri.c_str());
}
+ elm_win_raise(m_window);
+ evas_object_focus_set(m_currentEwkView, EINA_TRUE);
}
// call user callback
return;
}
m_widget->Resume();
- evas_object_focus_set(m_widget->GetCurrentWebview(), EINA_TRUE);
m_widgetState = WidgetState_Running;
}
return;
}
m_widget->Suspend();
- evas_object_focus_set(m_widget->GetCurrentWebview(), EINA_FALSE);
m_widgetState = WidgetState_Suspended;
}
return;
}
m_widget->Reset();
- elm_win_raise(m_windowData->m_win);
- evas_object_focus_set(m_widget->GetCurrentWebview(), EINA_TRUE);
m_widgetState = WidgetState_Running;
} else {
if (true == checkArgument())