Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[embedlite] Fix touch event serialization.
There are currently 3 problems: 1. The unit32_t is not a correct type for the value returnes by nsTArray<SingleTouchData>::Length. The actual return type is nsTArray<T>::size_type which is currently typedefed to size_t. On x86_64 systems this is a 64bit value. 2. InputData's modifiers and mTimeStamp member variables were not serialized/deserialized. 3. MultiTouchInput's mLocalScreenPoint was not serialized/deserialized. This patch also uses gecko own WriteParam/ReadParam functions for types like ScreenSize, ScreenIntPoint, ParentLayerPoint. Previous code manually serialized those types which is rather error prone. The code needed to be inspected after each engine update to check if the types did not gain some additional member variables which need to be serialized. Signed-off-by: Piotr Tworek <piotr.tworek@jollamobile.com>
- Loading branch information