[Tizen] Not execute the remove callback
[platform/core/uifw/dali-core.git] / dali / internal / event / events / gesture-requests.h
index be7ab70..b47d0b3 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_GESTURE_REQUESTS_H
 
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
 // INTERNAL INCLUDES
 #include <dali/public-api/events/gesture.h>
 
+// EXTERNAL INCLUDES
+#include <limits> // for numeric_limits::max();
+
 namespace Dali
 {
-
 namespace Internal
 {
-
 /**
  * This structure specifies the gesture type required (or no longer required) by Core.
  */
@@ -38,8 +39,8 @@ struct GestureRequest
    * Default Constructor
    * @param[in]  typeRequired  The gesture type required
    */
-  GestureRequest( GestureType::Value typeRequired )
-  : type( typeRequired )
+  GestureRequest(GestureType::Value typeRequired)
+  : type(typeRequired)
   {
   }
 
@@ -66,21 +67,21 @@ struct PanGestureRequest : public GestureRequest
   PanGestureRequest()
   : GestureRequest(GestureType::PAN),
     minTouches(1),
-    maxTouches(1)
+    maxTouches(1),
+    maxMotionEventAge(std::numeric_limits<uint32_t>::max())
   {
   }
 
   /**
    * Virtual destructor
    */
-  ~PanGestureRequest() override
-  {
-  }
+  ~PanGestureRequest() override = default;
 
   // Data Members
 
-  unsigned int minTouches; ///< The minimum number of touch points required for a pan gesture.
-  unsigned int maxTouches; ///< The maximum number of touch points required for a pan gesture.
+  uint32_t minTouches;        ///< The minimum number of touch points required for a pan gesture.
+  uint32_t maxTouches;        ///< The maximum number of touch points required for a pan gesture.
+  uint32_t maxMotionEventAge; ///< The maximum age of motion events as milliseconds.
 };
 
 /**
@@ -105,9 +106,7 @@ struct TapGestureRequest : public GestureRequest
   /**
    * Virtual destructor
    */
-  ~TapGestureRequest() override
-  {
-  }
+  ~TapGestureRequest() override = default;
 
   // Data Members
 
@@ -137,9 +136,7 @@ struct LongPressGestureRequest : public GestureRequest
   /**
    * Virtual destructor
    */
-  ~LongPressGestureRequest() override
-  {
-  }
+  ~LongPressGestureRequest() override = default;
 
   // Data Members