Added class to replace TouchEvent 08/70808/12
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 19 May 2016 17:18:33 +0000 (18:18 +0100)
committerDavid Steele <david.steele@samsung.com>
Thu, 2 Jun 2016 13:56:27 +0000 (14:56 +0100)
commita6f64ac5155a1cc6374d4818fad2c7fb19e35610
tree564c27cd424d871732faaad361561a2b06690215
parent948980bbb6de7b441071c53b3ab77e681764d8aa
Added class to replace TouchEvent

Fixes following review:

Removed Internal::TouchData::GetPoint()
Cleaned up signal sending from TouchEventProcessor
Changed new Actor::TouchSignal to pass TouchData handle as const ref.
Changed new Stage::TouchedSignal to pass TouchData handle as const ref.
Changed API of TouchData to return by value where appropriate and removed
all asserts.
Changed API of TouchData to use size_t for point index and point count.

Added test cases for touch processing using touch data ( a copy and paste
of the existing test cases, plus a negative test case for the out of bounds
check in the public API for TouchData )

Change-Id: I8a58775f7a70a3bed8514439c627f261ac4f5807
21 files changed:
automated-tests/src/dali/CMakeLists.txt
automated-tests/src/dali/utc-Dali-TouchDataProcessing.cpp [new file with mode: 0644]
dali/internal/event/actors/actor-impl.cpp
dali/internal/event/actors/actor-impl.h
dali/internal/event/common/stage-impl.cpp
dali/internal/event/common/stage-impl.h
dali/internal/event/events/touch-data-impl.cpp [new file with mode: 0644]
dali/internal/event/events/touch-data-impl.h [new file with mode: 0644]
dali/internal/event/events/touch-event-processor.cpp
dali/internal/file.list
dali/public-api/actors/actor.cpp
dali/public-api/actors/actor.h
dali/public-api/actors/custom-actor-impl.h
dali/public-api/common/stage.cpp
dali/public-api/common/stage.h
dali/public-api/dali-core.h
dali/public-api/events/point-state.h [new file with mode: 0644]
dali/public-api/events/touch-data.cpp [new file with mode: 0644]
dali/public-api/events/touch-data.h [new file with mode: 0644]
dali/public-api/events/touch-event.h
dali/public-api/file.list