summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-20 20:28:00 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-20 20:28:00 +0200
commit8a6f654e95cb25ad167cbc028373245e671db461 (patch)
tree3a21821ec7647d285f34da6606c2a0500f5ea0b5 /widget
parentd4feeb474eeedbd9e90356d36bb2ae70dc7808a1 (diff)
downloadUXP-8a6f654e95cb25ad167cbc028373245e671db461.tar
UXP-8a6f654e95cb25ad167cbc028373245e671db461.tar.gz
UXP-8a6f654e95cb25ad167cbc028373245e671db461.tar.lz
UXP-8a6f654e95cb25ad167cbc028373245e671db461.tar.xz
UXP-8a6f654e95cb25ad167cbc028373245e671db461.zip
Bug 1299197 Part1: Refine WidgetPointerHelper
native in moebius
Diffstat (limited to 'widget')
-rw-r--r--widget/MouseEvents.h14
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;
}
};