fixup! [Rebase][dev/m41_2272] API changes in GestureRecognizer
authorAntonio Gomes <a1.gomes@samsung.com>
Sun, 12 Apr 2015 08:02:03 +0000 (04:02 -0400)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Patch replaces the old GestureRecognizer API named
::ProcessTouchEventOnAsyncAck by the new one, ::AckSyncTouchEvent.

It fixes the touch gesture handling.

Change-Id: I469997973f019ce32bd4105e5d8d76a44e63738e
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
tizen_src/chromium_impl/content/browser/renderer_host/render_widget_host_view_efl.cc

index a3a9218..38c7f07 100644 (file)
@@ -1488,13 +1488,13 @@ void RenderWidgetHostViewEfl::ProcessAckedTouchEvent(
   if (!MakeUITouchEventsFromWebTouchEvents(touch, &events, LOCAL_COORDINATES))
     return;
 
-#if !defined(EWK_BRINGUP)
   ui::EventResult result = (ack_result == INPUT_EVENT_ACK_STATE_CONSUMED) ?
       ui::ER_HANDLED : ui::ER_UNHANDLED;
   for (ScopedVector<ui::TouchEvent>::const_iterator iter = events.begin(),
       end = events.end(); iter != end; ++iter)  {
-    scoped_ptr<ui::GestureRecognizer::Gestures> gestures(
-        gesture_recognizer_->ProcessTouchEventOnAsyncAck(**iter, result, this));
+    scoped_ptr<ui::GestureRecognizer::Gestures> gestures;
+    gestures.reset(gesture_recognizer_->AckSyncTouchEvent(
+        (*iter)->unique_event_id(), result, this));
     if (gestures) {
       for (size_t j = 0; j < gestures->size(); ++j) {
         ui::GestureEvent* event = gestures->get().at(j);
@@ -1502,7 +1502,6 @@ void RenderWidgetHostViewEfl::ProcessAckedTouchEvent(
       }
     }
   }
-#endif
 }
 
 void RenderWidgetHostViewEfl::OnOrientationChangeEvent(int orientation) {