зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1258808 - Part 1: Passing PointerId (Gecko). r=smaug, f=btseng
--HG-- extra : rebase_source : 82113a04a209748d003d72b9103de78db4d1f73d extra : histedit_source : 07c3c256639c7042487a0a2dc4135dc3063078b8
This commit is contained in:
Родитель
207b17b5f2
Коммит
0174b1ed3b
|
@ -3860,7 +3860,6 @@ CreateMouseOrPointerWidgetEvent(WidgetMouseEvent* aMouseEvent,
|
|||
new WidgetPointerEvent(aMouseEvent->IsTrusted(), aMessage,
|
||||
aMouseEvent->mWidget);
|
||||
newPointerEvent->mIsPrimary = sourcePointer->mIsPrimary;
|
||||
newPointerEvent->pointerId = sourcePointer->pointerId;
|
||||
newPointerEvent->mWidth = sourcePointer->mWidth;
|
||||
newPointerEvent->mHeight = sourcePointer->mHeight;
|
||||
newPointerEvent->inputSource = sourcePointer->inputSource;
|
||||
|
@ -3882,6 +3881,7 @@ CreateMouseOrPointerWidgetEvent(WidgetMouseEvent* aMouseEvent,
|
|||
aNewEvent->pressure = aMouseEvent->pressure;
|
||||
aNewEvent->mPluginEvent = aMouseEvent->mPluginEvent;
|
||||
aNewEvent->inputSource = aMouseEvent->inputSource;
|
||||
aNewEvent->pointerId = aMouseEvent->pointerId;
|
||||
}
|
||||
|
||||
nsIFrame*
|
||||
|
|
|
@ -7131,6 +7131,8 @@ DispatchPointerFromMouseOrTouch(PresShell* aShell,
|
|||
}
|
||||
|
||||
WidgetPointerEvent event(*mouseEvent);
|
||||
event.pointerId = mouseEvent->pointerId;
|
||||
event.inputSource = mouseEvent->inputSource;
|
||||
event.mMessage = pointerMessage;
|
||||
event.button = button;
|
||||
event.buttons = mouseEvent->buttons;
|
||||
|
|
|
@ -232,6 +232,7 @@ struct ParamTraits<mozilla::WidgetMouseEvent>
|
|||
aParam.mContextMenuTrigger));
|
||||
WriteParam(aMsg, static_cast<paramType::ExitFromType>(aParam.mExitFrom));
|
||||
WriteParam(aMsg, aParam.mClickCount);
|
||||
WriteParam(aMsg, aParam.pointerId);
|
||||
}
|
||||
|
||||
static bool Read(const Message* aMsg, PickleIterator* aIter, paramType* aResult)
|
||||
|
@ -246,7 +247,8 @@ struct ParamTraits<mozilla::WidgetMouseEvent>
|
|||
ReadParam(aMsg, aIter, &reason) &&
|
||||
ReadParam(aMsg, aIter, &contextMenuTrigger) &&
|
||||
ReadParam(aMsg, aIter, &exitFrom) &&
|
||||
ReadParam(aMsg, aIter, &aResult->mClickCount);
|
||||
ReadParam(aMsg, aIter, &aResult->mClickCount) &&
|
||||
ReadParam(aMsg, aIter, &aResult->pointerId);
|
||||
aResult->mReason = static_cast<paramType::Reason>(reason);
|
||||
aResult->mContextMenuTrigger =
|
||||
static_cast<paramType::ContextMenuTrigger>(contextMenuTrigger);
|
||||
|
@ -286,7 +288,6 @@ struct ParamTraits<mozilla::WidgetPointerEvent>
|
|||
static void Write(Message* aMsg, const paramType& aParam)
|
||||
{
|
||||
WriteParam(aMsg, static_cast<mozilla::WidgetMouseEvent>(aParam));
|
||||
WriteParam(aMsg, aParam.pointerId);
|
||||
WriteParam(aMsg, aParam.mWidth);
|
||||
WriteParam(aMsg, aParam.mHeight);
|
||||
WriteParam(aMsg, aParam.tiltX);
|
||||
|
@ -298,7 +299,6 @@ struct ParamTraits<mozilla::WidgetPointerEvent>
|
|||
{
|
||||
bool rv =
|
||||
ReadParam(aMsg, aIter, static_cast<mozilla::WidgetMouseEvent*>(aResult)) &&
|
||||
ReadParam(aMsg, aIter, &aResult->pointerId) &&
|
||||
ReadParam(aMsg, aIter, &aResult->mWidth) &&
|
||||
ReadParam(aMsg, aIter, &aResult->mHeight) &&
|
||||
ReadParam(aMsg, aIter, &aResult->tiltX) &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче