From 92dda0a8460c672b08b8866d0bdd16ffc34f8537 Mon Sep 17 00:00:00 2001 From: Seongjun Yim Date: Tue, 22 Oct 2013 20:43:33 +0900 Subject: [PATCH] fix bug for selectbox, fullscreen issues Change-Id: Ia9c50039c10ebecb594b958c5fea5838c5554370 Signed-off-by: Seongjun Yim --- src/controls/FWebCtrl_SelectBox.cpp | 5 ++++- src/controls/FWebCtrl_WebImpl.cpp | 6 +----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/controls/FWebCtrl_SelectBox.cpp b/src/controls/FWebCtrl_SelectBox.cpp index a129b40..ac80e60 100755 --- a/src/controls/FWebCtrl_SelectBox.cpp +++ b/src/controls/FWebCtrl_SelectBox.cpp @@ -487,6 +487,7 @@ _SelectBox::OnActionPerformed(const Control& source, int actionId) SysAssertf(false, "Invalid Action ID"); } } + __pImpl->SendUserEvent(ID_USER_SCRIPT_SELECTBOX_CLOSE, null); } @@ -517,7 +518,9 @@ _SelectBox::OnKeyReleased(Control& source, const KeyEventInfo& keyEventInfo) { ewk_view_popup_menu_select(__pWebView, __prevIndex); } - } + } + + __pImpl->SendUserEvent(ID_USER_SCRIPT_SELECTBOX_CLOSE, null); } return false; diff --git a/src/controls/FWebCtrl_WebImpl.cpp b/src/controls/FWebCtrl_WebImpl.cpp index b45a2e7..9150b0f 100755 --- a/src/controls/FWebCtrl_WebImpl.cpp +++ b/src/controls/FWebCtrl_WebImpl.cpp @@ -844,16 +844,12 @@ void OnFullScreenEntered(void* pUserData, Evas_Object* pView, void* pEventInfo) { _WebImpl* pImpl = reinterpret_cast<_WebImpl*>(pUserData); - bool* pIsHandleNeeded = reinterpret_cast< bool* >(pEventInfo); SysAssertf(pImpl, "Failed to request"); _Web* pWebCore = dynamic_cast< _Web* >(&(pImpl->GetCore())); SysAssertf(pWebCore, "Failed to get Web core object"); - if (pIsHandleNeeded && *pIsHandleNeeded) - { - pWebCore->SetFullScreenEntered(true); - } + pWebCore->SetFullScreenEntered(true); } -- 2.7.4