зеркало из 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
|
||||
{
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче