#include "InputMethodContextEfl.h"
#endif
+#if ENABLE(TIZEN_VIEWPORT_META_TAG)
+#include <WebCore/EflScreenUtilities.h>
+#endif
+
// This controls what strategy we use for mouse wheel coalescing.
#define MERGE_WHEEL_EVENTS 1
, m_textZoomFactor(1)
, m_pageZoomFactor(1)
, m_pageScaleFactor(1)
- , m_intrinsicDeviceScaleFactor(1)
+ , m_intrinsicDeviceScaleFactor(getMobileDPI() / 160)
, m_customDeviceScaleFactor(0)
#if HAVE(LAYER_HOSTING_IN_WINDOW_SERVER)
, m_layerHostingMode(LayerHostingModeInWindowServer)
#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();
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<PageClientImpl*>(m_pageClient)->viewImpl()->inputMethodContext();
if (inputMethodContext)
inputMethodContext->resetIMFContext();
+#endif
}
#endif
m_gestureEventQueue.removeFirst();
m_pageClient->doneWithGestureEvent(event, handled);
#endif
+
#if ENABLE(TIZEN_ISF_PORT)
- if (type == WebEvent::GestureSingleTap)
- evas_object_focus_set(viewWidget(), true);
+ if (m_isVisible && type == WebEvent::GestureSingleTap) {
+ InputMethodContextEfl* inputMethodContext = static_cast<PageClientImpl*>(m_pageClient)->viewImpl()->inputMethodContext();
+ inputMethodContext->updateTextInputStateByUserAction(true);
+ }
#endif
break;
}