mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 907410 - Winrt async input - remove unused apz param in input dispatch methods. r=bbondy
This commit is contained in:
parent
51b04fb798
commit
557e5133d0
@ -385,7 +385,7 @@ MetroInput::OnPointerPressed(UI::Core::ICoreWindow* aSender,
|
||||
// dispatch it now so we can see if preventDefault gets called on it.
|
||||
if (mTouches.Count() == 1) {
|
||||
nsEventStatus status;
|
||||
DispatchPendingTouchEvent(status, true);
|
||||
DispatchPendingTouchEvent(status);
|
||||
mTouchStartDefaultPrevented = (nsEventStatus_eConsumeNoDefault == status);
|
||||
// If the first touchstart event has preventDefault called on it, then
|
||||
// we will not perform any default actions associated with any touch
|
||||
@ -441,7 +441,7 @@ MetroInput::OnPointerReleased(UI::Core::ICoreWindow* aSender,
|
||||
// sure that we don't have a touchmove or touchstart sitting around for this
|
||||
// point.
|
||||
if (touch->mChanged) {
|
||||
DispatchPendingTouchEvent(true);
|
||||
DispatchPendingTouchEvent();
|
||||
}
|
||||
mTouches.Remove(pointerId);
|
||||
|
||||
@ -526,7 +526,7 @@ MetroInput::OnPointerMoved(UI::Core::ICoreWindow* aSender,
|
||||
// If we're modifying a touch entry that has a pending update, go through
|
||||
// with the update.
|
||||
if (touch->mChanged) {
|
||||
DispatchPendingTouchEvent(true);
|
||||
DispatchPendingTouchEvent();
|
||||
}
|
||||
|
||||
touch = CreateDOMTouch(currentPoint.Get());
|
||||
@ -537,7 +537,7 @@ MetroInput::OnPointerMoved(UI::Core::ICoreWindow* aSender,
|
||||
// and store our mTouchMoveDefaultPrevented value
|
||||
if (mIsFirstTouchMove) {
|
||||
nsEventStatus status;
|
||||
DispatchPendingTouchEvent(status, true);
|
||||
DispatchPendingTouchEvent(status);
|
||||
mTouchMoveDefaultPrevented = (nsEventStatus_eConsumeNoDefault == status);
|
||||
mIsFirstTouchMove = false;
|
||||
}
|
||||
@ -1019,7 +1019,7 @@ MetroInput::DispatchEventIgnoreStatus(nsGUIEvent *aEvent) {
|
||||
}
|
||||
|
||||
void
|
||||
MetroInput::DispatchPendingTouchEvent(nsEventStatus& aStatus, bool aDispatchToAPZC) {
|
||||
MetroInput::DispatchPendingTouchEvent(nsEventStatus& aStatus) {
|
||||
mTouchEvent.touches.Clear();
|
||||
mTouches.Enumerate(&AppendToTouchList,
|
||||
static_cast<void*>(&mTouchEvent.touches));
|
||||
@ -1028,7 +1028,7 @@ MetroInput::DispatchPendingTouchEvent(nsEventStatus& aStatus, bool aDispatchToAP
|
||||
mModifierKeyState.InitInputEvent(mTouchEvent);
|
||||
|
||||
mWidget->DispatchEvent(&mTouchEvent, aStatus);
|
||||
if (aStatus != nsEventStatus_eConsumeNoDefault && aDispatchToAPZC && MetroWidget::sAPZC) {
|
||||
if (aStatus != nsEventStatus_eConsumeNoDefault && MetroWidget::sAPZC) {
|
||||
MultiTouchInput inputData(mTouchEvent);
|
||||
aStatus = MetroWidget::sAPZC->ReceiveInputEvent(inputData);
|
||||
}
|
||||
@ -1038,8 +1038,8 @@ MetroInput::DispatchPendingTouchEvent(nsEventStatus& aStatus, bool aDispatchToAP
|
||||
}
|
||||
|
||||
void
|
||||
MetroInput::DispatchPendingTouchEvent(bool aDispatchToAPZC) {
|
||||
DispatchPendingTouchEvent(sThrowawayStatus, aDispatchToAPZC);
|
||||
MetroInput::DispatchPendingTouchEvent() {
|
||||
DispatchPendingTouchEvent(sThrowawayStatus);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -220,10 +220,9 @@ private:
|
||||
// the updated touchpoint info and record the fact that the touchpoint
|
||||
// has changed. If ever we try to update a touchpoint has already
|
||||
// changed, we dispatch a touch event containing all the changed touches.
|
||||
nsEventStatus mTouchEventStatus;
|
||||
nsTouchEvent mTouchEvent;
|
||||
void DispatchPendingTouchEvent(bool aDispatchToAPZC);
|
||||
void DispatchPendingTouchEvent(nsEventStatus& status, bool aDispatchToAPZC);
|
||||
void DispatchPendingTouchEvent();
|
||||
void DispatchPendingTouchEvent(nsEventStatus& status);
|
||||
nsBaseHashtable<nsUint32HashKey,
|
||||
nsRefPtr<mozilla::dom::Touch>,
|
||||
nsRefPtr<mozilla::dom::Touch> > mTouches;
|
||||
|
Loading…
Reference in New Issue
Block a user