diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-20 20:28:00 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-20 20:28:00 +0200 |
commit | bc415934527c5aa2675a4445ca1c37f50ec92fad (patch) | |
tree | 3a21821ec7647d285f34da6606c2a0500f5ea0b5 /widget | |
parent | 2cacc25e72f20785941df7bba5fb14b50334ae76 (diff) | |
download | aura-central-bc415934527c5aa2675a4445ca1c37f50ec92fad.tar.gz |
Bug 1299197 Part1: Refine WidgetPointerHelper
native in moebius
Diffstat (limited to 'widget')
-rw-r--r-- | widget/MouseEvents.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/widget/MouseEvents.h b/widget/MouseEvents.h index 643132618..f214ec22b 100644 --- a/widget/MouseEvents.h +++ b/widget/MouseEvents.h @@ -43,21 +43,27 @@ namespace dom { class WidgetPointerHelper { public: - bool convertToPointer; uint32_t pointerId; uint32_t tiltX; uint32_t tiltY; + bool convertToPointer; bool retargetedByPointerCapture; - WidgetPointerHelper() : convertToPointer(true), pointerId(0), tiltX(0), tiltY(0), - retargetedByPointerCapture(false) {} + WidgetPointerHelper() + : pointerId(0) + , tiltX(0) + , tiltY(0) + , convertToPointer(true) + , retargetedByPointerCapture(false) + { + } void AssignPointerHelperData(const WidgetPointerHelper& aEvent) { - convertToPointer = aEvent.convertToPointer; pointerId = aEvent.pointerId; tiltX = aEvent.tiltX; tiltY = aEvent.tiltY; + convertToPointer = aEvent.convertToPointer; retargetedByPointerCapture = aEvent.retargetedByPointerCapture; } }; |