Revert "Move TouchPoint to Devel API"
authorJoogab Yun <joogab.yun@samsung.com>
Tue, 1 Sep 2020 08:06:20 +0000 (17:06 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Tue, 1 Sep 2020 08:06:20 +0000 (17:06 +0900)
This reverts commit 1b290b4cbb146aac7da0425fad889af991b56ca2.

dali/devel-api/adaptor-framework/accessibility-adaptor.h
dali/integration-api/adaptor-framework/adaptor.h
dali/internal/accessibility/common/accessibility-adaptor-impl.h
dali/internal/adaptor/android/framework-android.cpp
dali/internal/window-system/common/event-handler.cpp

index 733ec07..9be2483 100755 (executable)
@@ -20,7 +20,7 @@
 
 
 // EXTERNAL INCLUDES
-#include <dali/devel-api/events/touch-point.h>
+#include <dali/public-api/events/touch-point.h>
 #include <dali/public-api/object/base-handle.h>
 #include <dali/public-api/dali-adaptor-common.h>
 
index 6985275..834f25c 100644 (file)
@@ -24,7 +24,7 @@
 #include <dali/public-api/math/uint-16-pair.h>
 #include <dali/public-api/math/rect.h>
 #include <dali/public-api/object/any.h>
-#include <dali/devel-api/events/touch-point.h>
+#include <dali/public-api/events/touch-point.h>
 #include <dali/integration-api/processor-interface.h>
 
 // INTERNAL INCLUDES
index ed79b3e..2e1511e 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <dali/public-api/object/base-object.h>
 #include <dali/public-api/math/vector2.h>
-#include <dali/devel-api/events/touch-point.h>
+#include <dali/public-api/events/touch-point.h>
 #include <dali/integration-api/events/touch-event-combiner.h>
 
 // INTERNAL INCLUDES
index f91f596..4d34aa0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
 #include <dali/integration-api/debug.h>
 #include <dali/integration-api/adaptor-framework/adaptor.h>
 #include <dali/integration-api/adaptor-framework/android/android-framework.h>
-#include <dali/devel-api/events/touch-point.h>
+#include <dali/public-api/events/touch-point.h>
 #include <dali/public-api/events/key-event.h>
 #include <dali/devel-api/events/key-event-devel.h>
 
@@ -389,7 +389,7 @@ struct Framework::Impl
       int32_t deviceId = AInputEvent_getDeviceId( event );
       float x = AMotionEvent_getX( event, 0 );
       float y = AMotionEvent_getY( event, 0 );
-      Dali::PointState::Type state = Dali::PointState::DOWN;
+      TouchPoint::State state = TouchPoint::Down;
       int32_t action = AMotionEvent_getAction( event );
       int64_t timeStamp = AMotionEvent_getEventTime( event );
 
@@ -398,16 +398,16 @@ struct Framework::Impl
       case AMOTION_EVENT_ACTION_DOWN:
         break;
       case AMOTION_EVENT_ACTION_UP:
-        state = Dali::PointState::UP;
+        state = TouchPoint::Up;
         break;
       case AMOTION_EVENT_ACTION_MOVE:
-        state = Dali::PointState::MOTION;
+        state = TouchPoint::Motion;
         break;
       case AMOTION_EVENT_ACTION_CANCEL:
-        state = Dali::PointState::INTERRUPTED;
+        state = TouchPoint::Interrupted;
         break;
       case AMOTION_EVENT_ACTION_OUTSIDE:
-        state = Dali::PointState::LEAVE;
+        state = TouchPoint::Leave;
         break;
       }
 
index 25fc86f..3392797 100755 (executable)
@@ -22,7 +22,7 @@
 #include <cstring>
 #include <sys/time.h>
 
-#include <dali/devel-api/events/touch-point.h>
+#include <dali/public-api/events/touch-point.h>
 #include <dali/public-api/events/key-event.h>
 #include <dali/public-api/events/wheel-event.h>
 #include <dali/integration-api/debug.h>
@@ -261,22 +261,22 @@ void EventHandler::OnAccessibilityNotification( const WindowBase::AccessibilityI
   }
 
   // Create a touch point object.
-  PointState::Type touchPointState( PointState::DOWN );
+  TouchPoint::State touchPointState( TouchPoint::Down );
   if( info.state == 0 )
   {
-    touchPointState = PointState::DOWN; // Mouse down.
+    touchPointState = TouchPoint::Down; // Mouse down.
   }
   else if( info.state == 1 )
   {
-    touchPointState = PointState::MOTION; // Mouse move.
+    touchPointState = TouchPoint::Motion; // Mouse move.
   }
   else if( info.state == 2 )
   {
-    touchPointState = PointState::UP; // Mouse up.
+    touchPointState = TouchPoint::Up; // Mouse up.
   }
   else
   {
-    touchPointState = PointState::INTERRUPTED; // Error.
+    touchPointState = TouchPoint::Interrupted; // Error.
   }
 
   // Send touch event to accessibility adaptor.