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 | 8a6f654e95cb25ad167cbc028373245e671db461 (patch) | |
tree | 3a21821ec7647d285f34da6606c2a0500f5ea0b5 /widget/MouseEvents.h | |
parent | d4feeb474eeedbd9e90356d36bb2ae70dc7808a1 (diff) | |
download | uxp-8a6f654e95cb25ad167cbc028373245e671db461.tar.gz |
Bug 1299197 Part1: Refine WidgetPointerHelper
native in moebius
Diffstat (limited to 'widget/MouseEvents.h')
-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 643132618f..f214ec22bc 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; } }; |