+#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
+Eina_Bool WebContextMenuProxyTizen::contextMenuTimerCallback(void* data)
+{
+ WebContextMenuProxyTizen *contextMenuProxy = static_cast<WebContextMenuProxyTizen*>(data);
+ if (contextMenuProxy) {
+ if (contextMenuProxy->m_popup)
+ evas_object_hide(contextMenuProxy->m_popup);
+
+ contextMenuProxy->m_pageClientImpl->setIsContextMenuVisible(false);
+ EditorState editorState = contextMenuProxy->m_page->editorState();
+ if (!editorState.selectionIsRange && editorState.isContentEditable)
+ contextMenuProxy->m_pageClientImpl->setIsTextSelectionMode(false);
+#if ENABLE(TIZEN_WEBKIT2_FOCUS_RING)
+ contextMenuProxy->m_pageClientImpl->hideFocusRing();
+#endif
+ }
+ return ECORE_CALLBACK_CANCEL;
+}
+
+void WebContextMenuProxyTizen::startContextMenuTimer()
+{
+ double contextMenuDispTime = 3.0;
+ if (m_contextShowTimer) {
+ ecore_timer_del(m_contextShowTimer);
+ m_contextShowTimer = 0;
+ }
+ m_contextShowTimer = ecore_timer_add(contextMenuDispTime, contextMenuTimerCallback, this);
+}
+#endif // TIZEN_WEBKIT2_TEXT_SELECTION
+