// To fork a Webprocess as soon as possible,
// the following ewk_api is called explicitly.
- ewk_context_cookies_policy_set(m_ewkContext,
- EWK_COOKIE_JAR_ACCEPT_ALWAYS);
+ Ewk_Cookie_Manager *ewkCookieManager;
+ ewkCookieManager =
+ ewk_context_cookie_manager_get(m_ewkContext);
+ ewk_cookie_manager_accept_policy_set(ewkCookieManager,
+ EWK_COOKIE_ACCEPT_POLICY_ALWAYS);
ADD_PROFILING_POINT("WebProcess fork", "stop");
ADD_PROFILING_POINT("attach databases", "start");
DPL::FromUTF8String(requestedUri.c_str()),
m_model);
- const char* currentUri = ewk_view_uri_get(m_currentEwkView);
+ const char* currentUri = ewk_view_url_get(m_currentEwkView);
if (!currentUri && 0 == strlen(currentUri)) {
- LogError("Fail to get uri from ewk_view_uri_get");
+ LogError("Fail to get uri from ewk_view_url_get");
return;
}
this);
// EWK Orientation Callback
- ewk_view_orientation_lock_callback_set(
- wkView,
- orientationLockCallback,
- this);
+ //ewk_view_orientation_lock_callback_set(
+ // wkView,
+ // orientationLockCallback,
+ // this);
// Fullscreen API callbacks
evas_object_smart_callback_add(
fileSystemPermissionRequestCallback);
// EWK Orientation Callback
- ewk_view_orientation_lock_callback_set(
- wkView,
- NULL,
- NULL);
+ //ewk_view_orientation_lock_callback_set(
+ // wkView,
+ // NULL,
+ // NULL);
// ime change/show/hide callback
evas_object_smart_callback_del(
// set cookie policy
// even arguments pass the ewkContext, this API should be called
// after webkit Evas_Object is created
- ewk_context_cookies_policy_set(m_ewkContext, EWK_COOKIE_JAR_ACCEPT_ALWAYS);
+ Ewk_Cookie_Manager *ewkCookieManager;
+ ewkCookieManager =
+ ewk_context_cookie_manager_get(m_ewkContext);
+ ewk_cookie_manager_accept_policy_set(ewkCookieManager,
+ EWK_COOKIE_ACCEPT_POLICY_ALWAYS);
LogInfo("push webview: " << newEwkView);
m_ewkViewList.push_back(newEwkView);
ViewLogic* This = static_cast<ViewLogic*>(data);
// Fill id/password
- const char* url = ewk_view_uri_get(This->m_currentEwkView);
+ const char* url = ewk_view_url_get(This->m_currentEwkView);
if (NULL == url || strlen(url) == 0) {
LogError("url is empty");
} else {
ewk_policy_decision_use(policyDecision);
} else {
// check whether this is new empty window
- const char* activeUrl = ewk_view_uri_get(This->m_currentEwkView);
+ const char* activeUrl = ewk_view_url_get(This->m_currentEwkView);
if(!activeUrl || 0 == strlen(activeUrl)) {
/*
* The view is empty and scheme has been handled externally. When
// get latest ewkView
m_currentEwkView = m_ewkViewList.back();
- const char* uri = ewk_view_uri_get(m_currentEwkView);
+ const char* uri = ewk_view_url_get(m_currentEwkView);
if (NULL == uri || 0 == strlen(uri)) {
m_currentUri.clear();
} else {