Evas_Object*
_Web::GetWebNativeNode(void)
{
- SysTryReturn(NID_WEB_CTRL, __pEflWebkit.get(), null, E_INVALID_STATE, "[%s] Native node is in an invalid state.", GetErrorMessage(E_INVALID_STATE));
+ if (__pEflWebkit.get())
+ {
+ return __pEflWebkit->GetWebEvasObject();
+ }
- return __pEflWebkit->GetWebEvasObject();
+ return null;
}
{
SendTouchEventForJavaScript(touchInfo);
+ Evas_Object* pView = GetWebNativeNode();
+ _WebImpl* pImpl = reinterpret_cast< _WebImpl* >(evas_object_data_get(pView, WEB_CTRL));
+
+ if (pImpl && pImpl->GetTextFromBlock().GetLength() > 0)
+ {
+ evas_object_smart_callback_call(pView, "text,selected", NULL);
+ }
+
return __pGestureHandler->OnTouchReleased(source, touchInfo);
}