X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Source%2FWebKit2%2FUIProcess%2FWebPageProxy.cpp;h=1b39b9c4c04e54e13ce069db5d2ee7c0d4313631;hb=6cfa0d1a8d21fcdb6851fdf7ff67ae713a416eb1;hp=2a72652a529cd56777696478e8c382b26c9586f1;hpb=e229e1981253e38960167a5f410bb7ca9f9c8cc8;p=framework%2Fweb%2Fwebkit-efl.git diff --git a/Source/WebKit2/UIProcess/WebPageProxy.cpp b/Source/WebKit2/UIProcess/WebPageProxy.cpp index 2a72652..1b39b9c 100755 --- a/Source/WebKit2/UIProcess/WebPageProxy.cpp +++ b/Source/WebKit2/UIProcess/WebPageProxy.cpp @@ -260,6 +260,9 @@ WebPageProxy::WebPageProxy(PageClient* pageClient, PassRefPtr p #if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR) , m_contentSuspendedByInspector(false) #endif +#if ENABLE(TIZEN_FOCUS_UI) + , m_spatialNavigationEnabled(false) +#endif { #ifndef NDEBUG webPageProxyCounter.increment(); @@ -1259,11 +1262,21 @@ void WebPageProxy::handleGestureEvent(const WebGestureEvent& event) if (!isValid()) return; -#if ENABLE(TIZEN_ISF_PORT) +#if ENABLE(TIZEN_ISF_PORT) || ENABLE(TIZEN_WEBKIT2_FOCUS_RING) if (event.type() == WebEvent::GestureSingleTap) { +#if ENABLE(TIZEN_WEBKIT2_FOCUS_RING) + FocusRing* focusRing = ewkViewGetFocusRing(viewWidget()); + if (focusRing) { + IntPoint tapPosition = EwkViewImpl::fromEvasObject(viewWidget())->transformToScene().mapPoint(event.position()); + focusRing->requestToShow(tapPosition, true); + } +#endif + +#if ENABLE(TIZEN_ISF_PORT) InputMethodContextEfl* inputMethodContext = static_cast(m_pageClient)->viewImpl()->inputMethodContext(); if (inputMethodContext) inputMethodContext->resetIMFContext(); +#endif } #endif @@ -3807,18 +3820,11 @@ void WebPageProxy::didReceiveEvent(uint32_t opaqueType, bool handled) m_gestureEventQueue.removeFirst(); m_pageClient->doneWithGestureEvent(event, handled); #endif + #if ENABLE(TIZEN_ISF_PORT) - if (m_isVisible && type == WebEvent::GestureSingleTap && m_editorState.isContentEditable) { -#if ENABLE(TIZEN_INPUT_TAG_EXTENSION) - if (m_editorState.inputMethodHints == "date" - || m_editorState.inputMethodHints == "datetime" - || m_editorState.inputMethodHints == "datetime-local" - || m_editorState.inputMethodHints == "month" - || m_editorState.inputMethodHints == "time" - || m_editorState.inputMethodHints == "week") - break; -#endif - evas_object_focus_set(viewWidget(), true); + if (m_isVisible && type == WebEvent::GestureSingleTap) { + InputMethodContextEfl* inputMethodContext = static_cast(m_pageClient)->viewImpl()->inputMethodContext(); + inputMethodContext->updateTextInputStateByUserAction(true); } #endif break;