__pEflWebkit = std::move(pEflWebkit);
- evas_object_smart_callback_add(__pEflWebkit->GetWebEvasObject(), "edge,left", OnEdgeLeft, this);
- evas_object_smart_callback_add(__pEflWebkit->GetWebEvasObject(), "edge,right", OnEdgeRight, this);
- evas_object_smart_callback_add(__pEflWebkit->GetWebEvasObject(), "edge,top", OnEdgeTop, this);
- evas_object_smart_callback_add(__pEflWebkit->GetWebEvasObject(), "edge,bottom", OnEdgeBottom, this);
+ Evas_Object* pView = GetWebNativeNode();
+ evas_object_smart_callback_add(pView, "edge,left", OnEdgeLeft, this);
+ evas_object_smart_callback_add(pView, "edge,right", OnEdgeRight, this);
+ evas_object_smart_callback_add(pView, "edge,top", OnEdgeTop, this);
+ evas_object_smart_callback_add(pView, "edge,bottom", OnEdgeBottom, this);
return E_SUCCESS;
}
RemoveGestureDetector(*__pGesturePinch);
}
- if (__pEflWebkit->GetWebEvasObject())
+ Evas_Object* pView = GetWebNativeNode();
+ if (pView)
{
- evas_object_smart_callback_del(__pEflWebkit->GetWebEvasObject(), "edge,left", OnEdgeLeft);
- evas_object_smart_callback_del(__pEflWebkit->GetWebEvasObject(), "edge,right", OnEdgeRight);
- evas_object_smart_callback_del(__pEflWebkit->GetWebEvasObject(), "edge,top", OnEdgeTop);
- evas_object_smart_callback_del(__pEflWebkit->GetWebEvasObject(), "edge,bottom", OnEdgeBottom);
+ evas_object_smart_callback_del(pView, "edge,left", OnEdgeLeft);
+ evas_object_smart_callback_del(pView, "edge,right", OnEdgeRight);
+ evas_object_smart_callback_del(pView, "edge,top", OnEdgeTop);
+ evas_object_smart_callback_del(pView, "edge,bottom", OnEdgeBottom);
}
}
{
result r = E_SUCCESS;
- r = SetSetting(*__pWebCore->GetSetting());
- SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
-
- _WebSettingImpl* pWebSettingImpl = _WebSettingImpl::GetInstance(__pWebCore->GetSetting());
+ WebSetting* pWebSetting = __pWebCore->GetSetting();
+ _WebSettingImpl* pWebSettingImpl = _WebSettingImpl::GetInstance(pWebSetting);
SetCookieEnabled(pWebSettingImpl->IsCookieEnabled());
SetPrivateBrowsingEnabled(pWebSettingImpl->IsPrivateBrowsingEnabled());
SetZoomLevel(pWebSettingImpl->GetZoomLevel());
+ pWebSettingImpl->SetUserAgent(ewk_view_user_agent_get(__pWebCore->GetWebNativeNode()));
+
+ r = SetSetting(*pWebSetting);
+ SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+
SetEventListenerCallback();
return E_SUCCESS;
static const wchar_t* DEFAULT_ENCODING_MODE = L"UTF-8";
static const int DEFAULT_FONT_SIZE = 17;
static const float DEFAULT_ZOOM_LEVEL = 2.0f;
-static const wchar_t* DEFAULT_USER_AGENT = L"Mozilla/5.0 (Linux; U; Tizen 2.0; en-us) AppleWebKit/537.1 (KHTML, like Gecko) Version/2.0 Mobile";
_WebSettingImpl::_WebSettingImpl(void)
, __zoomLevel(DEFAULT_ZOOM_LEVEL)
, __inputStyle(INPUT_STYLE_FULLSCREEN)
, __certificateErrorHandlingMode(WEB_CERTIFICATE_ERROR_HANDLING_MODE_USER_CONFIRM)
+ , __userAgent(L"")
, __autoFittingEnabled(true)
, __javaScriptPopupEnabled(true)
, __geolocationEnabled(true)
, __autoFormDataEnabled(true)
, __autoLoginFormEnabled(true)
{
- char* pUserAgent = vconf_get_str(VCONFKEY_BROWSER_USER_AGENT);
-
- if(pUserAgent)
- {
- __userAgent = pUserAgent;
- free(pUserAgent);
- }
- else
- {
- __userAgent = DEFAULT_USER_AGENT;
- }
}