зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1299197 Part1: Refine WidgetPointerHelper. r=smaug
--HG-- extra : rebase_source : bc9feec42fa7e36d5ba5ed7530cd150e1deadd9c
This commit is contained in:
Родитель
df6ad27e47
Коммит
5abe523179
|
@ -43,21 +43,27 @@ namespace dom {
|
||||||
class WidgetPointerHelper
|
class WidgetPointerHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
bool convertToPointer;
|
|
||||||
uint32_t pointerId;
|
uint32_t pointerId;
|
||||||
uint32_t tiltX;
|
uint32_t tiltX;
|
||||||
uint32_t tiltY;
|
uint32_t tiltY;
|
||||||
|
bool convertToPointer;
|
||||||
bool retargetedByPointerCapture;
|
bool retargetedByPointerCapture;
|
||||||
|
|
||||||
WidgetPointerHelper() : convertToPointer(true), pointerId(0), tiltX(0), tiltY(0),
|
WidgetPointerHelper()
|
||||||
retargetedByPointerCapture(false) {}
|
: pointerId(0)
|
||||||
|
, tiltX(0)
|
||||||
|
, tiltY(0)
|
||||||
|
, convertToPointer(true)
|
||||||
|
, retargetedByPointerCapture(false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void AssignPointerHelperData(const WidgetPointerHelper& aEvent)
|
void AssignPointerHelperData(const WidgetPointerHelper& aEvent)
|
||||||
{
|
{
|
||||||
convertToPointer = aEvent.convertToPointer;
|
|
||||||
pointerId = aEvent.pointerId;
|
pointerId = aEvent.pointerId;
|
||||||
tiltX = aEvent.tiltX;
|
tiltX = aEvent.tiltX;
|
||||||
tiltY = aEvent.tiltY;
|
tiltY = aEvent.tiltY;
|
||||||
|
convertToPointer = aEvent.convertToPointer;
|
||||||
retargetedByPointerCapture = aEvent.retargetedByPointerCapture;
|
retargetedByPointerCapture = aEvent.retargetedByPointerCapture;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче