#include <FUi_UiTouchEvent.h>
#include "FWebCtrl_GestureState.h"
#include "FWebCtrl_Web.h"
+#include "FWebCtrl_WebImpl.h"
#include "FWebCtrl_WebSettingImpl.h"
using namespace Tizen::Base;
using namespace Tizen::Graphics;
using namespace Tizen::Ui;
+using namespace Tizen::Web::Controls;
namespace Tizen { namespace Web { namespace Controls
_TapGestureState::~_TapGestureState(void)
{
}
-
+
bool
_TapGestureState::OnLongPressGestureDetected(_TouchLongPressGestureDetector& gesture)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
+ //To disable focus ring
Ewk_Event_Gesture gestureEvent;
SetGestureEvent(gestureEvent, EWK_GESTURE_LONG_PRESS, Point(0, 0), Point(0, 0), 0.0, 0);
- pSmartData->api->gesture_move(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_move(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
+
+ //To delete magnifier
+ _TouchManager* pTouchManager = _TouchManager::GetInstance();
+ SysAssertf(pTouchManager, "Failed to get touch manager.");
+
+ Point absPoint(_CoordinateSystemUtils::ConvertToInteger(pTouchManager->GetPosition(pTouchManager->GetCurrentPointId())));
+
+ Ewk_Touch_Point* pPoint = static_cast< Ewk_Touch_Point* >(calloc(1, sizeof(Ewk_Touch_Point)));
+ pPoint->id = 0;
+ pPoint->x = absPoint.x;
+ pPoint->y = absPoint.y;
+ pPoint->state = EVAS_TOUCH_POINT_UP;
+
+ Eina_List* pPointList = null;
+ pPointList = eina_list_append(pPointList, pPoint);
+
+ ewk_view_feed_touch_event(__pWebCore->GetWebNativeNode(), EWK_TOUCH_END, pPointList, null);
+
+ void* pData = null;
+ EINA_LIST_FREE(pPointList, pData)
+ free(pData);
__longPressed = true;
bool
_TapGestureState::OnTouchPressed(const _Control& source, const _TouchInfo& touchInfo)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
+ Ewk_Event_Gesture gestureEvent;
__pressedPosition = touchInfo.GetCurrentPosition();
Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(__pressedPosition)));
- Ewk_Event_Gesture gestureEvent;
-
SetGestureEvent(gestureEvent, EWK_GESTURE_TAP, absPoint, Point(0, 0), 0.0, 1);
- pSmartData->api->gesture_start(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ const Ewk_View_Smart_Data* pSmartData = static_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_start(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
__longPressed = false;
__doubleTapped = false;
bool
_TapGestureState::OnTouchMoved(const _Control& source, const _TouchInfo& touchInfo)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
Ewk_Event_Gesture gestureEvent;
-
Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(touchInfo.GetCurrentPosition())));
SetGestureEvent(gestureEvent, EWK_GESTURE_PAN, absPoint, Point(0, 0), 0.0, 0);
- pSmartData->api->gesture_start(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_start(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
__pWebCore->ChangeGesture(WEB_GESTURE_TYPE_PANNING);
bool
_TapGestureState::OnTouchReleased(const _Control& source, const _TouchInfo& touchInfo)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
- Ewk_Event_Gesture gestureEvent;
-
if (__pWebCore->Contains(__pressedPosition))
{
+ Evas_Object* pView = __pWebCore->GetWebNativeNode();
Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(__pressedPosition)));
if (__longPressed)
{
- Ewk_Hit_Test* pEwkHitTest = ewk_view_hit_test_new(__pWebCore->GetWebNativeNode(), absPoint.x, absPoint.y, EWK_HIT_TEST_MODE_ALL);
+ Ewk_Hit_Test* pEwkHitTest = ewk_view_hit_test_new(pView, absPoint.x, absPoint.y, EWK_HIT_TEST_MODE_ALL);
SysTryReturn(NID_WEB_CTRL, pEwkHitTest, true, E_SYSTEM, "Failed to get hit test.");
String tagName(ewk_hit_test_tag_name_get(pEwkHitTest));
Eina_Rectangle leftHandle;
Eina_Rectangle rightHandle;
- ewk_view_text_selection_range_get(__pWebCore->GetWebNativeNode(), &leftHandle, &rightHandle);
+ ewk_view_text_selection_range_get(pView, &leftHandle, &rightHandle);
if (((rightHandle.x + rightHandle.w) == 0) && ((rightHandle.y + rightHandle.h) == 0))
{
+ Ewk_Event_Gesture gestureEvent;
+
SetGestureEvent(gestureEvent, EWK_GESTURE_LONG_PRESS, absPoint, Point(0, 0), 0.0, 1);
- pSmartData->api->gesture_end(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_end(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
}
}
}
- else if (__doubleTapped)
+ else
{
- SetGestureEvent(gestureEvent, EWK_GESTURE_TAP, absPoint, Point(0, 0), 0.0, 2);
- pSmartData->api->gesture_end(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+ Ewk_Event_Gesture gestureEvent;
+ int touchCount = 1;
+ if (__doubleTapped)
+ {
+ touchCount = 2;
+ }
+
+ SetGestureEvent(gestureEvent, EWK_GESTURE_TAP, absPoint, Point(0, 0), 0.0, touchCount);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_end(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
}
- else
+
+ String selectedText(ewk_view_text_selection_text_get(pView));
+ if (selectedText.GetLength() > 0)
{
- SetGestureEvent(gestureEvent, EWK_GESTURE_TAP, absPoint, Point(0, 0), 0.0, 1);
- pSmartData->api->gesture_end(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+ evas_object_smart_callback_call(pView, "text,selected", NULL);
}
}
else
bool
_TapGestureState::OnTouchCanceled(const _Control& source, const _TouchInfo& touchInfo)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
Ewk_Event_Gesture gestureEvent;
SetGestureEvent(gestureEvent, EWK_GESTURE_LONG_PRESS, Point(0, 0), Point(0, 0), 0.0, 0);
- pSmartData->api->gesture_move(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_move(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
return true;
}
_PanningGestureState::_PanningGestureState(_Web* pWeb)
: __pWebCore(pWeb)
+ , __textSelected(false)
+ , __textChanged(false)
+ , __selectedText(L"")
{
}
}
+void
+_PanningGestureState::InitializeTextSelectionStatus(void)
+{
+ __selectedText = String(ewk_view_text_selection_text_get(__pWebCore->GetWebNativeNode()));
+ if (__selectedText.GetLength() > 0)
+ {
+ __textSelected = true;
+ }
+ else
+ {
+ __textSelected = false;
+ }
+ __textChanged = false;
+}
+
+
bool
_PanningGestureState::OnTouchPressed(const _Control& source, const _TouchInfo& touchInfo)
{
bool
_PanningGestureState::OnTouchMoved(const _Control& source, const _TouchInfo& touchInfo)
{
+ Evas_Object* pView = __pWebCore->GetWebNativeNode();
if (_WebSettingImpl::GetInstance(__pWebCore->GetSetting())->IsScrollEnabled())
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
Ewk_Event_Gesture gestureEvent;
-
Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(touchInfo.GetCurrentPosition())));
SetGestureEvent(gestureEvent, EWK_GESTURE_PAN, absPoint, Point(0, 0), 0.0, 0);
- pSmartData->api->gesture_move(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(pView));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_move(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
+ }
+
+ if (__textSelected && !__textChanged)
+ {
+ if (!__selectedText.Equals(String(ewk_view_text_selection_text_get(pView))))
+ {
+ __textChanged = true;
+ }
}
return true;
bool
_PanningGestureState::OnTouchReleased(const _Control& source, const _TouchInfo& touchInfo)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
Ewk_Event_Gesture gestureEvent;
-
Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(touchInfo.GetCurrentPosition())));
SetGestureEvent(gestureEvent, EWK_GESTURE_PAN, absPoint, Point(0, 0), 0.0, 0);
- pSmartData->api->gesture_end(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ Evas_Object* pView = __pWebCore->GetWebNativeNode();
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(pView));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_end(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
+
+ if (__textChanged)
+ {
+ evas_object_smart_callback_call(pView, "text,selected", NULL);
+ }
__pWebCore->ChangeGesture(WEB_GESTURE_TYPE_TAP);
bool
_FlickGestureState::OnTouchReleased(const _Control& source, const _TouchInfo& touchInfo)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
Ewk_Event_Gesture gestureEvent;
-
Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(touchInfo.GetCurrentPosition())));
SetGestureEvent(gestureEvent, EWK_GESTURE_PAN, absPoint, Point(0, 0), 0.0, 0);
- pSmartData->api->gesture_end(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
- SetGestureEvent(gestureEvent, EWK_GESTURE_FLICK, absPoint, __velocity, 0, 0);
- pSmartData->api->gesture_start(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_end(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
+
+ SetGestureEvent(gestureEvent, EWK_GESTURE_FLICK, absPoint, __velocity, 0.0, 0);
+
+ pSmartData->api->gesture_start(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
__pWebCore->ChangeGesture(WEB_GESTURE_TYPE_TAP);
{
__pWebCore->ChangeGesture(WEB_GESTURE_TYPE_PINCH);
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
+ Ewk_Event_Gesture gestureEvent;
Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(gesture.GetCenterPointF())));
__standardScale = static_cast< double >(gesture.GetScaleF());
- Ewk_Event_Gesture gestureEvent;
-
SetGestureEvent(gestureEvent, EWK_GESTURE_PINCH, absPoint, Point(0, 0), 1.0, 0);
- pSmartData->api->gesture_start(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_start(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
return true;
}
bool
_PinchGestureState::OnPinchGestureChanged(_TouchPinchGestureDetector& gesture)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
+ Ewk_Event_Gesture gestureEvent;
Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(gesture.GetCenterPointF())));
double relScale = static_cast< double >(gesture.GetScaleF()) /__standardScale;
- Ewk_Event_Gesture gestureEvent;
-
SetGestureEvent(gestureEvent, EWK_GESTURE_PINCH, absPoint, Point(0, 0), relScale, 0);
- pSmartData->api->gesture_move(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_move(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
return true;
}
bool
_PinchGestureState::OnPinchGestureFinished(_TouchPinchGestureDetector& gesture)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
Ewk_Event_Gesture gestureEvent;
SetGestureEvent(gestureEvent, EWK_GESTURE_PINCH, Point(0, 0), Point(0, 0), 0.0, 0);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
pSmartData->api->gesture_end(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
return true;
{
_TouchManager* pTouchManager = _TouchManager::GetInstance();
SysAssertf(pTouchManager, "Failed to get touch manager.");
-
if(pTouchManager->GetPointCount() == 0)
{
__pWebCore->ChangeGesture(WEB_GESTURE_TYPE_TAP);
bool
_PinchGestureState::OnTouchCanceled(const _Control& source, const _TouchInfo& touchInfo)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
Ewk_Event_Gesture gestureEvent;
SetGestureEvent(gestureEvent, EWK_GESTURE_PINCH, Point(0, 0), Point(0, 0), 0.0, 0);
- pSmartData->api->gesture_end(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+
+ const Ewk_View_Smart_Data* pSmartData = reinterpret_cast< Ewk_View_Smart_Data* >(evas_object_smart_data_get(__pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ pSmartData->api->gesture_end(const_cast< Ewk_View_Smart_Data* >(pSmartData), &gestureEvent);
__pWebCore->ChangeGesture(WEB_GESTURE_TYPE_TAP);
#include "FWebCtrl_EflWebkit.h"
#include "FWebCtrl_GestureState.h"
#include "FWebCtrl_Web.h"
-#include "FWebCtrl_WebImpl.h"
#include "FWebCtrl_WebSettingImpl.h"
#include "FWebCtrl_Utility.h"
{
-static const char WEB_CTRL[] = "webcontrol";
-
-
void
OnEdgeLeft(void* pUserData, Evas_Object* pView, void* pEventInfo)
{
{
if (__pEflWebkit.get())
{
+ if (__gestureType == WEB_GESTURE_TYPE_TAP)
+ {
+ __pPanningGestureHandler->InitializeTextSelectionStatus();
+ }
+
SendTouchEventForJavaScript(touchInfo);
__pGestureHandler->OnTouchMoved(source, touchInfo);
{
SendTouchEventForJavaScript(touchInfo);
- Evas_Object* pView = GetWebNativeNode();
- _WebImpl* pImpl = reinterpret_cast< _WebImpl* >(evas_object_data_get(pView, WEB_CTRL));
-
- if (pImpl && pImpl->GetTextFromBlock().GetLength() > 0)
- {
- evas_object_smart_callback_call(pView, "text,selected", NULL);
- }
-
return __pGestureHandler->OnTouchReleased(source, touchInfo);
}
void
-_Web::DumpPointList(void* pData)
-{
- Eina_List* pList = reinterpret_cast< Eina_List* >(pData);
-
- for(; pList; pList = eina_list_next(pList))
- {
- Ewk_Touch_Point* pPointDump = static_cast<Ewk_Touch_Point*>(eina_list_data_get(pList));
- SysSecureLog(NID_WEB_CTRL, "The current value of id is %lu, x is %d, y is %d, state is %d", pPointDump->id, pPointDump->x, pPointDump->y, pPointDump->state);
- }
-}
-
-
-void
_Web::SendTouchEventForJavaScript(const _TouchInfo& touchInfo)
{
result r = E_SUCCESS;
- Eina_List* pPointList = null;
- Ewk_Touch_Point* pPoint = null;
-
_TouchManager* pTouchManager = _TouchManager::GetInstance();
SysAssertf(pTouchManager, "Failed to get touch manager.");
std::unique_ptr<IBidirectionalEnumeratorT<_FingerInfo*> > pTouchListEnum(pTouchList->GetBidirectionalEnumeratorN());
SysAssertf(pTouchListEnum.get() != null, "Failed to get enumerator of touch list.");
- FloatPoint currentPoint;
+ Eina_List* pPointList = null;
_FingerInfo* pFingerInfo = null;
while(pTouchListEnum->MoveNext() == E_SUCCESS)
{
_TouchStatus state = pFingerInfo->GetStatus();
if(state == _TOUCH_PRESSED || state == _TOUCH_MOVED || state == _TOUCH_RELEASED || state == _TOUCH_CANCELED)
{
- currentPoint = GetAbsoluteCoordinate(pFingerInfo->GetPoint());
- Point integerPoint(_CoordinateSystemUtils::ConvertToInteger(currentPoint));
-
- pPoint = static_cast<Ewk_Touch_Point*>(calloc(1, sizeof(Ewk_Touch_Point)));
+ Point integerPoint(_CoordinateSystemUtils::ConvertToInteger(GetAbsoluteCoordinate(pFingerInfo->GetPoint())));
+ Ewk_Touch_Point* pPoint = static_cast<Ewk_Touch_Point*>(calloc(1, sizeof(Ewk_Touch_Point)));
pPoint->id = pFingerInfo->GetPointId();
pPoint->x = integerPoint.x;
pPoint->y = integerPoint.y;
pPoint->state = GetEvasTouchState((TouchStatus)pFingerInfo->GetStatus());
+ SysSecureLog(NID_WEB_CTRL, "The current value of id is %lu, x is %d, y is %d, state is %d", pPoint->id, pPoint->x, pPoint->y, pPoint->state);
pPointList = eina_list_append(pPointList, pPoint);
}
}
- DumpPointList(pPointList);
- Eina_Bool ret = ewk_view_feed_touch_event(__pEflWebkit->GetWebEvasObject(), GetEwkTouchEvent(touchInfo.GetTouchStatus()), pPointList, null);
- SysTryReturnVoidResult(NID_WEB_CTRL, ret == EINA_TRUE, E_SYSTEM, "[%s] A system error has been occurred. Failed to deliver touch event to javascript.", GetErrorMessage(E_SYSTEM));
+ ewk_view_feed_touch_event(__pEflWebkit->GetWebEvasObject(), GetEwkTouchEvent(touchInfo.GetTouchStatus()), pPointList, null);
void* pData = null;
-
EINA_LIST_FREE(pPointList, pData)
free(pData);
}