Ewk_Context *ewk_context_new_with_injected_bundle_path(const char *path)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(path, NULL);
+ LOG(INFO) << "path: " << path;
// To create new Ewk_Context with default incognito = false.
return Ewk_Context::Create(false,std::string(path));
}
Eina_Bool ewk_context_local_file_system_all_delete(Ewk_Context *context)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
+ LOG(INFO) << "context: " << context;
context->FileSystemDelete(GURL(""));
return true;
}
{
EINA_SAFETY_ON_NULL_RETURN_VAL(origin, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
+ LOG(INFO) << "context: " << context;
std::ostringstream ss;
ss << ewk_security_origin_protocol_get(origin) << "://"
<< ewk_security_origin_host_get(origin);
Eina_Bool ewk_context_web_database_delete_all(Ewk_Context* context)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
+ LOG(INFO) << "context: " << context;
context->WebDBDelete(GURL());
return true;
}
{
EINA_SAFETY_ON_NULL_RETURN_VAL(origin, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
+ LOG(INFO) << "context: " << context;
std::ostringstream ss;
ss << ewk_security_origin_protocol_get(origin) << "://"
<< ewk_security_origin_host_get(origin);
Eina_Bool ewk_context_web_indexed_database_delete_all(Ewk_Context* context)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
+ LOG(INFO) << "context: " << context;
context->IndexedDBDelete();
return true;
}
Eina_Bool ewk_context_web_storage_delete_all(Ewk_Context* context)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
+ LOG(INFO) << "context: " << context;
context->WebStorageDelete();
return true;
}
{
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(origin, EINA_FALSE);
-
+ LOG(INFO) << "context: " << context;
context->WebStorageDelete(origin->GetURL());
return EINA_TRUE;
}
Eina_Bool ewk_context_cache_disabled_set(Ewk_Context* context, Eina_Bool cacheDisabled)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
+ LOG(INFO) << "context: " << context << ", cacheDisabled:" << (bool)cacheDisabled;
context->SetNetworkCacheEnable(!cacheDisabled);
return true;
}
const char* certificate_path) {
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(certificate_path, EINA_FALSE);
+ LOG(INFO) << "context: " << context << ", certificate_path:" << certificate_path;
context->SetCertificatePath(certificate_path);
return true;
}
Eina_Bool ewk_context_cache_clear(Ewk_Context* context)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(context, EINA_FALSE);
+ LOG(INFO) << "context: " << context;
context->ClearNetworkCache();
context->ClearWebkitCache();
return EINA_TRUE;
unsigned int ewk_context_inspector_server_start(Ewk_Context* ewkContext, unsigned int port)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(ewkContext, 0);
+ LOG(INFO) << "context: " << ewkContext;
return ewkContext->InspectorServerStart(port);
}
const char* tizen_app_id) {
EINA_SAFETY_ON_NULL_RETURN(context);
EINA_SAFETY_ON_NULL_RETURN(tizen_app_id);
- LOG(INFO) << "tizen_app_id:" << tizen_app_id;
+ LOG(INFO) << "context: " << context << ", tizen_app_id:" << tizen_app_id;
context->SetTizenAppId(tizen_app_id);
}
void ewk_context_resource_cache_clear(Ewk_Context* ewkContext)
{
EINA_SAFETY_ON_NULL_RETURN(ewkContext);
+ LOG(INFO) << "context: " << ewkContext;
ewkContext->ClearNetworkCache();
ewkContext->ClearWebkitCache();
}
Ewk_Context_Intercept_Request_Callback callback,
void* user_data) {
EINA_SAFETY_ON_NULL_RETURN(context);
+ LOG(INFO) << "context: " << context;
context->SetContextInterceptRequestCallback(callback, user_data);
}
void ewk_context_default_zoom_factor_set(Ewk_Context* context,
double zoom_factor) {
EINA_SAFETY_ON_NULL_RETURN(context);
+ LOG(INFO) << "context: " << context << ", zoom_factor:" << zoom_factor;
context->SetDefaultZoomFactor(zoom_factor);
}
{
EINA_SAFETY_ON_NULL_RETURN_VAL(context, 0);
Evas_Object* ewk_view = CreateWebViewAsEvasObject(context, e);
-
+ LOG(INFO) << "evas: " << e << ", context: " << context << ", ewk_view:" << ewk_view;
if (ewk_view) {
#if !BUILDFLAG(IS_TIZEN_TV)
ewk_view_user_media_permission_callback_set(ewk_view,
// default web context. It won't be released by destroyed eweb_view because
// ewk_context_default_get does AddRef
Ewk_Context* context = ewk_context_default_get();
+ LOG(INFO) << "evas: " << e << ", context: " << context;
return ewk_view_add_with_context(e, context);
}
{
EINA_SAFETY_ON_NULL_RETURN_VAL(e, nullptr);
Ewk_Context* context = Ewk_Context::IncognitoContext();
+ LOG(INFO) << "evas: " << e << ", context: " << context;
EINA_SAFETY_ON_NULL_RETURN_VAL(context, nullptr);
return ewk_view_add_with_context(e, context);
}
Eina_Bool ewk_view_url_set(Evas_Object* view, const char* url_string)
{
TTRACE_WEB("ewk_view_url_set url: %s", url_string);
+ LOG(INFO) << "view: " << view << ", url: " << url_string;
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, false);
EINA_SAFETY_ON_NULL_RETURN_VAL(url_string, false);
GURL url(url_string);
Eina_Bool ewk_view_reload(Evas_Object *view)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, false);
+ LOG(INFO) << "view: " << view;
impl->Reload();
return true;
}
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
impl->SetScale(scale_factor);
impl->SetScroll(x, y);
+ LOG(INFO) << "view: " << view << ", scale_factor: " << scale_factor << ", x:" << x << ", y:" << y;
return EINA_TRUE;
}
Eina_Bool ewk_view_back(Evas_Object *view)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, false);
+ LOG(INFO) << "view: " << view;
return impl->GoBack();
}
Eina_Bool ewk_view_forward(Evas_Object *view)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, false);
+ LOG(INFO) << "view: " << view;
return impl->GoForward();
}
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(html, EINA_FALSE);
+ LOG(INFO) << "view: " << view;
impl->LoadHTMLString(html, base_uri, unreachable_uri);
return EINA_TRUE;
}
void ewk_view_suspend(Evas_Object* ewkView)
{
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl);
+ LOG(INFO) << "view: " << ewkView;
impl->Suspend();
}
Eina_Bool ewk_view_user_agent_set(Evas_Object* ewkView, const char* user_agent)
{
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, false);
-
+ LOG(INFO) << "view: " << ewkView << ", user_agent: " << user_agent;
return impl->SetUserAgent(user_agent);
}
Eina_Bool ewk_view_visibility_set(Evas_Object* view, Eina_Bool enable)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
+ LOG(INFO) << "view: " << view << ", enable:" << (bool)enable;
return impl->SetVisibility(enable);
}
{
EINA_SAFETY_ON_NULL_RETURN_VAL(canvas, NULL);
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, NULL);
+ LOG(INFO) << "view: " << view;
return impl->GetSnapshot(view_area, scale_factor);
}
{
EINA_SAFETY_ON_NULL_RETURN_VAL(callback, EINA_FALSE);
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
+ LOG(INFO) << "view: " << view;
return impl->GetSnapshotAsync(view_area, callback, user_data, scale_factor)
? EINA_TRUE
: EINA_FALSE;
unsigned int ewk_view_inspector_server_start(Evas_Object* ewkView, unsigned int port)
{
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, false);
+ LOG(INFO) << "view: " << ewkView << ", port:" << port;
return impl->StartInspectorServer(port);
}
Eina_Bool ewk_view_inspector_server_stop(Evas_Object* ewkView)
{
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, false);
+ LOG(INFO) << "view: " << ewkView;
return impl->StopInspectorServer();
}
void ewk_view_scroll_by(Evas_Object* ewkView, int deltaX, int deltaY)
{
int x, y;
-
+ LOG(INFO) << "view: " << ewkView << ", deltaX:" << deltaX << ", deltaY:" << deltaY;
if (EINA_TRUE == ewk_view_scroll_pos_get(ewkView, &x, &y)) {
ewk_view_scroll_set(ewkView, x + deltaX, y + deltaY);
}
Eina_Bool ewk_view_scroll_set(Evas_Object* view, int x, int y)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
+ LOG(INFO) << "view: " << view << ", x:" << x << ", y:" << y;
impl->SetScroll(x, y);
return EINA_TRUE;
void ewk_view_javascript_alert_callback_set(Evas_Object* view, Ewk_View_JavaScript_Alert_Callback callback, void* user_data)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+ LOG(INFO) << "view: " << view;
if (callback)
impl->SetJavaScriptAlertCallback(callback, user_data);
}
void ewk_view_javascript_alert_reply(Evas_Object* view)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+ LOG(INFO) << "view: " << view;
impl->JavaScriptAlertReply();
}
void ewk_view_javascript_confirm_callback_set(Evas_Object* view, Ewk_View_JavaScript_Confirm_Callback callback, void* user_data)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+ LOG(INFO) << "view: " << view;
if (callback)
impl->SetJavaScriptConfirmCallback(callback, user_data);
}
void ewk_view_javascript_confirm_reply(Evas_Object* view, Eina_Bool result)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+ LOG(INFO) << "view: " << view;
impl->JavaScriptConfirmReply(result);
}
void ewk_view_javascript_prompt_callback_set(Evas_Object* view, Ewk_View_JavaScript_Prompt_Callback callback, void* user_data)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+ LOG(INFO) << "view: " << view;
if (callback)
impl->SetJavaScriptPromptCallback(callback, user_data);
}
void ewk_view_javascript_prompt_reply(Evas_Object* view, const char* result)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+ LOG(INFO) << "view: " << view;
impl->JavaScriptPromptReply(result);
}
{
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, false);
EINA_SAFETY_ON_NULL_RETURN_VAL(script, false);
+ LOG(INFO) << "view: " << ewkView;
// callback can be null, so do not test it for null
if (0 != strcmp(script, "")) //check for empty string
return impl->ExecuteJavaScript(script, callback, user_data);
void ewk_view_orientation_send(Evas_Object* ewkView, int orientation)
{
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl);
+ LOG(INFO) << "view: " << ewkView << ", orientation:" << orientation;
impl->SetOrientation(orientation);
}
Eina_Bool ewk_view_fullscreen_exit(Evas_Object* view)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
+ LOG(INFO) << "view: " << view;
impl->ExitFullscreen();
return EINA_TRUE;
}
Evas_Object* ewk_view_smart_add(Evas* canvas, Evas_Smart* smart, Ewk_Context* context, Ewk_Page_Group* pageGroup)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(context, 0);
+ LOG(INFO) << "evas: " << canvas << ", context:" << context;
return CreateWebViewAsEvasObject(context, canvas, smart);
}
Eina_Bool ewk_view_focus_set(const Evas_Object* view, Eina_Bool focused)
{
EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
+ LOG(INFO) << "view: " << view << ", focused:" << (bool)focused;
impl->SetFocus(focused);
return EINA_TRUE;
}
}
void ewk_view_clear_all_tiles_resources(Evas_Object* ewkView) {
+#if BUILDFLAG(IS_TIZEN_TV)
+ LOG(INFO) << "view: " << ewkView;
+#else
LOG_EWK_API_MOCKUP();
+#endif
}
Eina_Bool ewk_view_edge_scroll_by(Evas_Object *ewkView, int dx, int dy)
LOG_EWK_API_MOCKUP();
#if defined(TIZEN_VIDEO_HOLE)
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, EINA_FALSE);
+ LOG(INFO) << "view: " << ewkView << ", enable:" << (bool)enable;
impl->SetVideoHoleSupport(enable);
media::VideoPlaneController::SetSharedVideoWindowHandle(
window,
Eina_Bool ewk_view_script_execute_all_frames(Evas_Object *o, const char *script, Ewk_View_Script_Execute_Cb callback, void *user_data)
{
+#if BUILDFLAG(IS_TIZEN_TV)
+ LOG(INFO) << ", view: " << o;
+#else
LOG_EWK_API_MOCKUP();
+#endif
return EINA_FALSE;
}
void ewk_view_floating_window_state_changed(const Evas_Object *o, Eina_Bool status)
{
+#if BUILDFLAG(IS_TIZEN_TV)
+ EWK_VIEW_IMPL_GET_OR_RETURN(o, impl);
+#else
LOG_EWK_API_MOCKUP();
+#endif
}
void ewk_view_feed_mouse_down(Evas_Object* view,