X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Flong-press-gesture%2Flong-press-gesture-recognizer.h;h=cb2cbface338afc9e98a4ecf356707cb89f6a16f;hp=7bcab057497e2e4b6c17c1c79a709f4479438e5d;hb=a4eb68faf1e75d213c951a7d4d1b67727247917a;hpb=76ca751382b59c4d0189ec92fa111592f70ba9b2 diff --git a/dali/internal/event/events/long-press-gesture/long-press-gesture-recognizer.h b/dali/internal/event/events/long-press-gesture/long-press-gesture-recognizer.h index 7bcab05..cb2cbfa 100644 --- a/dali/internal/event/events/long-press-gesture/long-press-gesture-recognizer.h +++ b/dali/internal/event/events/long-press-gesture/long-press-gesture-recognizer.h @@ -56,8 +56,9 @@ public: * @param[in] coreEventInterface Used to send events to Core. * @param[in] screenSize The size of the screen. * @param[in] request The long press gesture request. + * @param[in] minimumHoldingTime The minimum holding time required in milliseconds. */ - LongPressGestureRecognizer( Observer& observer, Vector2 screenSize, const LongPressGestureRequest& request ); + LongPressGestureRecognizer( Observer& observer, Vector2 screenSize, const LongPressGestureRequest& request, uint32_t minimumHoldingTime ); /** * Virtual destructor. @@ -76,6 +77,13 @@ public: */ virtual void Update(const GestureRequest& request); + /** + * @brief This method sets the minimum holding time required to be recognized as a long press gesture + * + * @param[in] value The time value in milliseconds + */ + void SetMinimumHoldingTime( uint32_t time ); + private: /** @@ -90,12 +98,6 @@ private: */ void EmitGesture(Gesture::State state); - /** - * Get current system setting value for tap and hold gesture - * @return system value for tap and hold gesture [ms] - */ - int GetSystemValue(); - private: // Reference to the gesture processor for this recognizer @@ -121,6 +123,8 @@ private: uint32_t mTouchTime; ///< The time we first pressed down. uint32_t mTimerId; + + uint32_t mMinimumHoldingTime; }; } // namespace Internal