__pImpl->SendUserEvent(ID_USER_SCRIPT_CONFIRM_CLOSE, null);
break;
}
- case USER_CONFIRM_SAVE_PASSWORD:
- {
- __pImpl->SendUserEvent(ID_USER_CONFIRM_SAVE_PASSWORD_CLOSE, null);
- break;
- }
default:
SysAssert(false);
}
ewk_view_javascript_confirm_reply(pView, allow);
break;
}
- case USER_CONFIRM_SAVE_PASSWORD:
- {
- Evas_Object* pView = reinterpret_cast< Evas_Object* >(__pUserPolicyData);
- if (allow)
- {
- ewk_view_password_confirm_popup_reply(pView, EWK_PASSWORD_POPUP_OK);
- }
- else
- {
- ewk_view_password_confirm_popup_reply(pView, EWK_PASSWORD_POPUP_CANCEL);
- }
- break;
- }
case USER_CONFIRM_APP_CACHE:
{
Evas_Object *pObj = reinterpret_cast< Evas_Object* >(__pUserPolicyData);
__pImpl->SendUserEvent(ID_USER_SCRIPT_CONFIRM_CLOSE, null);
break;
}
- case USER_CONFIRM_SAVE_PASSWORD:
- {
- __pImpl->SendUserEvent(ID_USER_CONFIRM_SAVE_PASSWORD_CLOSE, null);
- break;
- }
case USER_PROTOCOL_HANDLER:
case USER_CONTENT_HANDLER:
case USER_CONFIRM_APP_CACHE:
}
-Eina_Bool
-OnSavePasswordConfirmRequested(Evas_Object* pWebview, const char* pMessage, void* pUserData)
-{
- SysLog(NID_WEB_CTRL, "The current value of message is %s", pMessage);
-
- result r = E_SUCCESS;
- _WebImpl* pImpl = reinterpret_cast< _WebImpl* >(pUserData);
-
- String msg(pMessage);
-
- r = pImpl->ShowUserConfirmPopupAsync(USER_CONFIRM_SAVE_PASSWORD, pWebview, msg);
- SysTryCatch(NID_WEB_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
- return EINA_TRUE;
-
-CATCH:
- ewk_view_password_confirm_popup_reply(pWebview, EWK_PASSWORD_POPUP_CANCEL);
-
- return EINA_TRUE;
-}
-
-
void
OnCertificateRequested(void* pUserData, Evas_Object* pView, void* pEventInfo)
{
String uriScheme(uri.GetScheme());
SysSecureLog(NID_WEB_CTRL, "The current value of scheme is %ls", uriScheme.GetPointer());
- if ((uriScheme != L"http") && (uriScheme != L"https") && (uriScheme != L"file"))
+ if ((uriScheme != L"http") && (uriScheme != L"https") && (uriScheme != L"file") && (uriScheme != L""))
{
- ewk_policy_decision_ignore(pPolicy);
-
- if (uriScheme == L"")
- {
- return;
- }
-
result r = E_SUCCESS;
if (uriScheme == L"tel")
String operationId(L"http://tizen.org/appcontrol/operation/view");
r = _AppControlImpl::FindAndStart(operationId, &url, null, null, null, null);
}
- SysTryReturnVoidResult(NID_WEB_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
- return;
+ if (r == E_SUCCESS)
+ {
+ ewk_policy_decision_ignore(pPolicy);
+
+ return;
+ }
}
ewk_policy_decision_use(pPolicy);
SysTryReturnVoidResult(NID_WEB_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
pEventArg.release();
}
-
}
{
pImpl->SetKeypadOpened(false);
}
+ if (pImpl->IsWinFocusLost() == true)
+ {
+ _Web* pWebCore = dynamic_cast< _Web* >(&(pImpl->GetCore()));
+ SysAssertf(pWebCore, "Failed to get Web core object");
+
+ evas_object_focus_set(pWebCore->GetWebNativeNode(), EINA_FALSE);
+ }
}
, __pDbQuotaConfirmPopup(null)
, __pLocalFsQuotaConfirmPopup(null)
, __pIndexedDbQuotaConfirmPopup(null)
- , __pSavePasswordConfirmPopup(null)
, __pPromptPopup(null)
, __pCertConfirmPopup(null)
, __pSelectBox(null)
ewk_view_exceeded_database_quota_callback_set(pWebNativeNode, OnDatabaseQuotaExceeded, const_cast< _WebImpl* >(this));
ewk_view_exceeded_local_file_system_quota_callback_set(pWebNativeNode, OnLocalFileSystemQuotaExceeded, const_cast< _WebImpl* >(this));
- ewk_view_password_confirm_popup_callback_set(pWebNativeNode, OnSavePasswordConfirmRequested, const_cast< _WebImpl* >(this));
-
evas_object_event_callback_add(pWebNativeNode, EVAS_CALLBACK_FOCUS_IN, OnWebNativeNodeFocusGained, this);
evas_object_event_callback_add(pWebNativeNode, EVAS_CALLBACK_FOCUS_OUT, OnWebNativeNodeFocusLost, this);
}
ewk_view_exceeded_database_quota_callback_set(pWebNativeNode, null, null);
ewk_view_exceeded_local_file_system_quota_callback_set(pWebNativeNode, null, null);
- ewk_view_password_confirm_popup_callback_set(pWebNativeNode, null, null);
-
evas_object_event_callback_del(pWebNativeNode, EVAS_CALLBACK_FOCUS_IN, OnWebNativeNodeFocusGained);
evas_object_event_callback_del(pWebNativeNode, EVAS_CALLBACK_FOCUS_OUT, OnWebNativeNodeFocusLost);
}
case ID_USER_SCRIPT_CONFIRM_CLOSE:
__pScriptConfirmPopup.reset();
break;
- case ID_USER_CONFIRM_SAVE_PASSWORD_CLOSE:
- __pSavePasswordConfirmPopup.reset();
- break;
case ID_USER_SCRIPT_SELECTBOX_CLOSE:
__pSelectBox.reset();
break;