Fix callback operation for IME show/hide
authorTaeyun An <ty.an@samsung.com>
Thu, 4 Apr 2013 14:01:20 +0000 (23:01 +0900)
committerTaeyun An <ty.an@samsung.com>
Thu, 4 Apr 2013 14:01:20 +0000 (23:01 +0900)
[Title] Fix callback operation for IME show/hide
[Issue#] N/A
[Problem] "editorclient,ime,closed" is not called when hiding IME
[Cause] unnecessary exception routine
[Solution] remove the exception routine

Change-Id: Ibc6130ffa0356234b8bb89eb51ad93bea820333d

Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp

index 47b733e..5b941dd 100755 (executable)
@@ -52,8 +52,6 @@ InputMethodContextEfl::~InputMethodContextEfl()
 void InputMethodContextEfl::onIMFInputPanelStateChanged(void* data, Ecore_IMF_Context*, int state)
 {
     InputMethodContextEfl* inputMethodContext = static_cast<InputMethodContextEfl*>(data);
-    if (!inputMethodContext->m_viewImpl->page()->focusedFrame() || !inputMethodContext->m_focused)
-        return;
 
     if (state == ECORE_IMF_INPUT_PANEL_STATE_HIDE) {
         evas_object_smart_callback_call(inputMethodContext->m_viewImpl->view(), "editorclient,ime,closed", 0);
@@ -66,8 +64,6 @@ void InputMethodContextEfl::onIMFInputPanelStateChanged(void* data, Ecore_IMF_Co
 void InputMethodContextEfl::onIMFInputPanelGeometryChanged(void* data, Ecore_IMF_Context*, int value)
 {
     InputMethodContextEfl* inputMethodContext = static_cast<InputMethodContextEfl*>(data);
-    if (!inputMethodContext->m_viewImpl->page()->focusedFrame() || !inputMethodContext->m_focused)
-        return;
 
     Eina_Rectangle rect;
     ecore_imf_context_input_panel_geometry_get(inputMethodContext->m_context.get(), &rect.x, &rect.y, &rect.w, &rect.h);
@@ -77,8 +73,6 @@ void InputMethodContextEfl::onIMFInputPanelGeometryChanged(void* data, Ecore_IMF
 void InputMethodContextEfl::onIMFCandidatePanelStateChanged(void* data, Ecore_IMF_Context*, int state)
 {
     InputMethodContextEfl* inputMethodContext = static_cast<InputMethodContextEfl*>(data);
-    if (!inputMethodContext->m_viewImpl->page()->focusedFrame() || !inputMethodContext->m_focused)
-        return;
 
     if (state == ECORE_IMF_CANDIDATE_PANEL_SHOW)
         evas_object_smart_callback_call(inputMethodContext->m_viewImpl->view(), "editorclient,candidate,opened", 0);
@@ -89,8 +83,6 @@ void InputMethodContextEfl::onIMFCandidatePanelStateChanged(void* data, Ecore_IM
 void InputMethodContextEfl::onIMFCandidatePanelGeometryChanged(void* data, Ecore_IMF_Context*, int)
 {
     InputMethodContextEfl* inputMethodContext = static_cast<InputMethodContextEfl*>(data);
-    if (!inputMethodContext->m_viewImpl->page()->focusedFrame() || !inputMethodContext->m_focused)
-        return;
 
     Eina_Rectangle rect;
     ecore_imf_context_candidate_panel_geometry_get(inputMethodContext->m_context.get(), &rect.x, &rect.y, &rect.w, &rect.h);