mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895274 part.266 Rename NS_SIMPLE_GESTURE_SWIPE_UPDATE to eSwipeGestureUpdate r=smaug
This commit is contained in:
parent
a092622242
commit
fcbb201e80
@ -1300,9 +1300,9 @@ nsDOMWindowUtils::SendSimpleGestureEvent(const nsAString& aType,
|
||||
msg = NS_SIMPLE_GESTURE_SWIPE_MAY_START;
|
||||
else if (aType.EqualsLiteral("MozSwipeGestureStart"))
|
||||
msg = NS_SIMPLE_GESTURE_SWIPE_START;
|
||||
else if (aType.EqualsLiteral("MozSwipeGestureUpdate"))
|
||||
msg = NS_SIMPLE_GESTURE_SWIPE_UPDATE;
|
||||
else if (aType.EqualsLiteral("MozSwipeGestureEnd")) {
|
||||
else if (aType.EqualsLiteral("MozSwipeGestureUpdate")) {
|
||||
msg = eSwipeGestureUpdate;
|
||||
} else if (aType.EqualsLiteral("MozSwipeGestureEnd")) {
|
||||
msg = eSwipeGestureEnd;
|
||||
} else if (aType.EqualsLiteral("MozSwipeGesture")) {
|
||||
msg = eSwipeGesture;
|
||||
|
@ -856,7 +856,7 @@ NON_IDL_EVENT(MozSwipeGestureStart,
|
||||
EventNameType_None,
|
||||
eSimpleGestureEventClass)
|
||||
NON_IDL_EVENT(MozSwipeGestureUpdate,
|
||||
NS_SIMPLE_GESTURE_SWIPE_UPDATE,
|
||||
eSwipeGestureUpdate,
|
||||
EventNameType_None,
|
||||
eSimpleGestureEventClass)
|
||||
NON_IDL_EVENT(MozSwipeGestureEnd,
|
||||
|
@ -274,7 +274,7 @@ NS_EVENT_MESSAGE(eAfterPaint, ePaintEventFirst)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_EVENT_START, 3500)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_SWIPE_MAY_START,NS_SIMPLE_GESTURE_EVENT_START)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_SWIPE_START, NS_SIMPLE_GESTURE_EVENT_START + 1)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_SWIPE_UPDATE, NS_SIMPLE_GESTURE_EVENT_START + 2)
|
||||
NS_EVENT_MESSAGE(eSwipeGestureUpdate, NS_SIMPLE_GESTURE_EVENT_START + 2)
|
||||
NS_EVENT_MESSAGE(eSwipeGestureEnd, NS_SIMPLE_GESTURE_EVENT_START + 3)
|
||||
NS_EVENT_MESSAGE(eSwipeGesture, NS_SIMPLE_GESTURE_EVENT_START + 4)
|
||||
NS_EVENT_MESSAGE(eMagnifyGestureStart, NS_SIMPLE_GESTURE_EVENT_START + 5)
|
||||
|
@ -116,7 +116,7 @@ SwipeTracker::ProcessEvent(const PanGestureInput& aEvent)
|
||||
delta /= kRubberBandResistanceFactor;
|
||||
}
|
||||
mGestureAmount = ClampToAllowedRange(mGestureAmount + delta);
|
||||
SendSwipeEvent(NS_SIMPLE_GESTURE_SWIPE_UPDATE, 0, mGestureAmount);
|
||||
SendSwipeEvent(eSwipeGestureUpdate, 0, mGestureAmount);
|
||||
|
||||
if (aEvent.mType != PanGestureInput::PANGESTURE_END) {
|
||||
double elapsedSeconds = std::max(0.008, (aEvent.mTimeStamp - mLastEventTimeStamp).ToSeconds());
|
||||
@ -164,7 +164,7 @@ SwipeTracker::WillRefresh(mozilla::TimeStamp aTime)
|
||||
|
||||
bool isFinished = mAxis.IsFinished(1.0 / kWholePagePixelSize);
|
||||
mGestureAmount = (isFinished ? mAxis.GetDestination() : mAxis.GetPosition());
|
||||
SendSwipeEvent(NS_SIMPLE_GESTURE_SWIPE_UPDATE, 0, mGestureAmount);
|
||||
SendSwipeEvent(eSwipeGestureUpdate, 0, mGestureAmount);
|
||||
|
||||
if (isFinished) {
|
||||
UnregisterFromRefreshDriver();
|
||||
|
Loading…
Reference in New Issue
Block a user