From 2cdaecd55465084e0e1bcfd0a5372c324bab0204 Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Mon, 7 Sep 2020 14:39:09 +0900 Subject: [PATCH] Revert "Revert "Move TouchPoint to Devel API"" This reverts commit f26bce354ce5547d57bbffd7468fceb7ef34d335. --- .../adaptor-framework/accessibility-adaptor.h | 2 +- dali/integration-api/adaptor-framework/adaptor.h | 2 +- .../common/accessibility-adaptor-impl.h | 2 +- .../internal/adaptor/android/framework-android.cpp | 14 +++++++------- .../window-system/common/event-handler.cpp | 12 ++++++------ 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/dali/devel-api/adaptor-framework/accessibility-adaptor.h b/dali/devel-api/adaptor-framework/accessibility-adaptor.h index 9be248321..733ec078a 100755 --- a/dali/devel-api/adaptor-framework/accessibility-adaptor.h +++ b/dali/devel-api/adaptor-framework/accessibility-adaptor.h @@ -20,7 +20,7 @@ // EXTERNAL INCLUDES -#include +#include #include #include diff --git a/dali/integration-api/adaptor-framework/adaptor.h b/dali/integration-api/adaptor-framework/adaptor.h index 834f25c72..698527547 100644 --- a/dali/integration-api/adaptor-framework/adaptor.h +++ b/dali/integration-api/adaptor-framework/adaptor.h @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include // INTERNAL INCLUDES diff --git a/dali/internal/accessibility/common/accessibility-adaptor-impl.h b/dali/internal/accessibility/common/accessibility-adaptor-impl.h index 2e1511e5e..ed79b3ee8 100644 --- a/dali/internal/accessibility/common/accessibility-adaptor-impl.h +++ b/dali/internal/accessibility/common/accessibility-adaptor-impl.h @@ -23,7 +23,7 @@ #include #include -#include +#include #include // INTERNAL INCLUDES diff --git a/dali/internal/adaptor/android/framework-android.cpp b/dali/internal/adaptor/android/framework-android.cpp index 4d34aa0ee..f91f596ba 100644 --- a/dali/internal/adaptor/android/framework-android.cpp +++ b/dali/internal/adaptor/android/framework-android.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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 #include #include -#include +#include #include #include @@ -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 ); - TouchPoint::State state = TouchPoint::Down; + Dali::PointState::Type state = Dali::PointState::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 = TouchPoint::Up; + state = Dali::PointState::UP; break; case AMOTION_EVENT_ACTION_MOVE: - state = TouchPoint::Motion; + state = Dali::PointState::MOTION; break; case AMOTION_EVENT_ACTION_CANCEL: - state = TouchPoint::Interrupted; + state = Dali::PointState::INTERRUPTED; break; case AMOTION_EVENT_ACTION_OUTSIDE: - state = TouchPoint::Leave; + state = Dali::PointState::LEAVE; break; } diff --git a/dali/internal/window-system/common/event-handler.cpp b/dali/internal/window-system/common/event-handler.cpp index cf8720af5..7a1d02b88 100755 --- a/dali/internal/window-system/common/event-handler.cpp +++ b/dali/internal/window-system/common/event-handler.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include #include @@ -266,22 +266,22 @@ void EventHandler::OnAccessibilityNotification( const WindowBase::AccessibilityI } // Create a touch point object. - TouchPoint::State touchPointState( TouchPoint::Down ); + PointState::Type touchPointState( PointState::DOWN ); if( info.state == 0 ) { - touchPointState = TouchPoint::Down; // Mouse down. + touchPointState = PointState::DOWN; // Mouse down. } else if( info.state == 1 ) { - touchPointState = TouchPoint::Motion; // Mouse move. + touchPointState = PointState::MOTION; // Mouse move. } else if( info.state == 2 ) { - touchPointState = TouchPoint::Up; // Mouse up. + touchPointState = PointState::UP; // Mouse up. } else { - touchPointState = TouchPoint::Interrupted; // Error. + touchPointState = PointState::INTERRUPTED; // Error. } // Send touch event to accessibility adaptor. -- 2.34.1