Skip to content

Commit

Permalink
Bug 895274 part.265 Rename NS_SIMPLE_GESTURE_SWIPE_END to eSwipeGestu…
Browse files Browse the repository at this point in the history
…reEnd r=smaug
  • Loading branch information
masayuki-nakano committed Sep 14, 2015
1 parent c14daa1 commit 71e5cdf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dom/base/nsDOMWindowUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1302,9 +1302,9 @@ nsDOMWindowUtils::SendSimpleGestureEvent(const nsAString& aType,
msg = NS_SIMPLE_GESTURE_SWIPE_START;
else if (aType.EqualsLiteral("MozSwipeGestureUpdate"))
msg = NS_SIMPLE_GESTURE_SWIPE_UPDATE;
else if (aType.EqualsLiteral("MozSwipeGestureEnd"))
msg = NS_SIMPLE_GESTURE_SWIPE_END;
else if (aType.EqualsLiteral("MozSwipeGesture")) {
else if (aType.EqualsLiteral("MozSwipeGestureEnd")) {
msg = eSwipeGestureEnd;
} else if (aType.EqualsLiteral("MozSwipeGesture")) {
msg = eSwipeGesture;
} else if (aType.EqualsLiteral("MozMagnifyGestureStart")) {
msg = eMagnifyGestureStart;
Expand Down
2 changes: 1 addition & 1 deletion dom/events/EventNameList.h
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ NON_IDL_EVENT(MozSwipeGestureUpdate,
EventNameType_None,
eSimpleGestureEventClass)
NON_IDL_EVENT(MozSwipeGestureEnd,
NS_SIMPLE_GESTURE_SWIPE_END,
eSwipeGestureEnd,
EventNameType_None,
eSimpleGestureEventClass)
NON_IDL_EVENT(MozSwipeGesture,
Expand Down
2 changes: 1 addition & 1 deletion widget/EventMessageList.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ 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(NS_SIMPLE_GESTURE_SWIPE_END, NS_SIMPLE_GESTURE_EVENT_START + 3)
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)
NS_EVENT_MESSAGE(eMagnifyGestureUpdate, NS_SIMPLE_GESTURE_EVENT_START + 6)
Expand Down
4 changes: 2 additions & 2 deletions widget/cocoa/SwipeTracker.mm
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@
void
SwipeTracker::CancelSwipe()
{
SendSwipeEvent(NS_SIMPLE_GESTURE_SWIPE_END, 0, 0.0);
SendSwipeEvent(eSwipeGestureEnd, 0, 0.0);
}

void SwipeTracker::SwipeFinished()
{
SendSwipeEvent(NS_SIMPLE_GESTURE_SWIPE_END, 0, 0.0);
SendSwipeEvent(eSwipeGestureEnd, 0, 0.0);
mWidget.SwipeFinished();
}

Expand Down

0 comments on commit 71e5cdf

Please sign in to comment.