OnWebPageBlockSelected(void* pUserData, Evas_Object* pView, void* pEventInfo)
{
_WebImpl* pImpl = reinterpret_cast< _WebImpl* >(pUserData);
- Ewk_Text_Style* pStyle = reinterpret_cast< Ewk_Text_Style* >(pEventInfo);
- SysAssertf(pImpl && pStyle, "Failed to request");
+ SysAssertf(pImpl, "Failed to request");
if (pImpl->GetUiEventListener())
{
}
+void
+OnWebPageBlockSelectedByOrientation(void* pUserData, Evas_Object* pView, void* pEventInfo)
+{
+ _WebImpl* pImpl = reinterpret_cast< _WebImpl* >(pUserData);
+ SysAssertf(pImpl, "Failed to request");
+
+ if (!pImpl->IsOrientationChanged())
+ {
+ return;
+ }
+
+ pImpl->SetOrientationChanged(false);
+ OnWebPageBlockSelected(pUserData, pView, pEventInfo);
+}
+
+
Eina_Bool
OnSelectUploadFile(Evas_Object* pView, Eina_Bool multipleFile, Eina_List* pAcceptTypes, const char* pCapture, void* pUserData)
{
, __isRedirectRequested(false)
, __isCertificateRequested(false)
, __isCertificateConfirmed(false)
+ , __isOrientationChanged(false)
, __keypadBounds(0, 0, 0, 0)
, __pWebCore(null)
, __pUserLoadingListener(null)
evas_object_smart_callback_add(pWebNativeNode, "icon,received", OnFaviconReceived, this);
evas_object_smart_callback_add(pWebNativeNode, "text,style,state", OnWebPageBlockSelected, this);
+ evas_object_smart_callback_add(pWebNativeNode, "frame,rendered", OnWebPageBlockSelectedByOrientation, this);
ewk_view_open_panel_callback_set(pWebNativeNode, OnSelectUploadFile, const_cast< _WebImpl* >(this));
Ewk_Context* pContext = ewk_view_context_get(pWebNativeNode);
evas_object_smart_callback_del(pWebNativeNode, "icon,received", OnFaviconReceived);
evas_object_smart_callback_del(pWebNativeNode, "text,style,state", OnWebPageBlockSelected);
+ evas_object_smart_callback_del(pWebNativeNode, "frame,rendered", OnWebPageBlockSelectedByOrientation);
ewk_view_open_panel_callback_set(null, null, null);
Ewk_Context* pContext = ewk_view_context_get(pWebNativeNode);
_WebImpl::ReleaseBlock(void)
{
ewk_view_command_execute(__pWebCore->GetWebNativeNode(), "Unselect", 0);
+// ewk_view_text_selection_range_clear(__pWebCore->GetWebNativeNode());
}
}
+void
+_WebImpl::SetOrientationChanged(bool arg)
+{
+ __isOrientationChanged = arg;
+}
+
+
+bool
+_WebImpl::IsOrientationChanged(void) const
+{
+ return __isOrientationChanged;
+}
+
+
result
_WebImpl::LaunchAppControl(const IEventArg& arg)
{
{
__pColorPicker->ChangeLayout(orientation);
}
+
+ __isOrientationChanged = true;
}