m_preventNextCompositionCommit = true;
ecore_imf_context_focus_out(m_inputMethod);
}
+
+void PageClientImpl::handleInputMethodForFocusedNode()
+{
+ LOG(ISF, "%s\n", __func__);
+
+ if (!page()->focusedFrame())
+ return;
+
+ page()->handleInputMethodForFocusedNode();
+}
#endif
void PageClientImpl::updateFormNavigation(int length, int offset)
void handleInputMethodKeydown();
void handleInputMethodMousePress();
Ecore_IMF_Context* getIMFContext() { return m_inputMethod; }
+ void handleInputMethodForFocusedNode();
#endif
void setViewFocused(bool focused) { m_viewFocused = focused; }
#endif // #if OS(TIZEN)
priv->pageClient->page()->viewStateDidChange(WebPageProxy::ViewIsFocused | WebPageProxy::ViewWindowIsActive);
#if ENABLE(TIZEN_ISF_PORT)
- if (priv->pageClient->isShowImeState())
- priv->pageClient->handleInputMethodState();
+ priv->pageClient->handleInputMethodForFocusedNode();
#endif
return true;
}
int getCursorOffsetPosition();
String getContentOfPosition();
bool deleteSurroundingPosition();
+ void handleInputMethodForFocusedNode();
#endif
#if ENABLE(TIZEN_WEBKIT2_TILED_AC)
{
state = static_cast<PageClientImpl*>(m_pageClient)->getInputMethodState();
}
+
+void WebPageProxy::handleInputMethodForFocusedNode()
+{
+ if (!isValid())
+ return;
+
+ process()->send(Messages::WebPage::HandleInputMethodForFocusedNode(), m_pageID);
+}
#endif
void WebPageProxy::requestUpdateFormNavigation()
void getCursorOffsetPosition(int& offset);
void getContentOfPosition(String& content);
void deleteSurroundingPosition(bool& result);
+ void handleInputMethodForFocusedNode();
#endif
void scrollMainFrameBy(const WebCore::IntSize&);
void scrollMainFrameTo(const WebCore::IntPoint&);
GetCursorOffsetPosition() -> (int offset)
GetContentOfPosition() -> (String offset)
DeleteSurroundingPosition() -> (bool result);
+ HandleInputMethodForFocusedNode();
#endif
#endif
#if PLATFORM(QT)
#include "RenderLayer.h"
#include "WebGraphicsLayer.h"
#endif
+
+#if ENABLE(TIZEN_ISF_PORT)
+#include "WebEditorClient.h"
+#endif
+
#endif // #if OS(TIZEN)
using namespace WebCore;
frame->editor()->deleteWithDirection(DirectionBackward, CharacterGranularity, false, true);
}
+
+void WebPage::handleInputMethodForFocusedNode()
+{
+ Frame* frame = m_page->focusController()->focusedOrMainFrame();
+ if (frame
+ && frame->document()
+ && frame->document()->focusedNode())
+ corePage()->editorClient()->setInputMethodState(frame->document()->focusedNode()->shouldUseInputMethod());
+}
#endif
#if ENABLE(TIZEN_INPUT_TAG_EXTENSION)