Bug 895274 part.219 Rename NS_GESTURENOTIFY_EVENT_START to eGestureNotify r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-12 01:19:28 +09:00
Родитель 0574db1cbd
Коммит ada4e843de
3 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -2563,7 +2563,7 @@ EventStateManager::DecideGestureEvent(WidgetGestureNotifyEvent* aEvent,
nsIFrame* targetFrame)
{
NS_ASSERTION(aEvent->mMessage == NS_GESTURENOTIFY_EVENT_START,
NS_ASSERTION(aEvent->mMessage == eGestureNotify,
"DecideGestureEvent called with a non-gesture event");
/* Check the ancestor tree to decide if any frame is willing* to receive
@ -3133,7 +3133,7 @@ EventStateManager::PostHandleEvent(nsPresContext* aPresContext,
}
break;
case NS_GESTURENOTIFY_EVENT_START:
case eGestureNotify:
{
if (nsEventStatus_eConsumeNoDefault != *aStatus) {
DecideGestureEvent(aEvent->AsGestureNotifyEvent(), mCurrentTarget);

Просмотреть файл

@ -316,7 +316,7 @@ NS_EVENT_MESSAGE(eContentCommandPasteTransferable, eContentCommandEventFirst + 6
NS_EVENT_MESSAGE(eContentCommandScroll, eContentCommandEventFirst + 7)
// Event to gesture notification
NS_EVENT_MESSAGE(NS_GESTURENOTIFY_EVENT_START, 3900)
NS_EVENT_MESSAGE(eGestureNotify, 3900)
NS_EVENT_MESSAGE(eScrolledAreaEventFirst, 4100)
NS_EVENT_MESSAGE(eScrolledAreaChanged, eScrolledAreaEventFirst)

Просмотреть файл

@ -5633,8 +5633,7 @@ nsWindow::ProcessMessage(UINT msg, WPARAM& wParam, LPARAM& lParam,
nsPointWin touchPoint;
touchPoint = gestureinfo->ptsLocation;
touchPoint.ScreenToClient(mWnd);
WidgetGestureNotifyEvent gestureNotifyEvent(true,
NS_GESTURENOTIFY_EVENT_START, this);
WidgetGestureNotifyEvent gestureNotifyEvent(true, eGestureNotify, this);
gestureNotifyEvent.refPoint = LayoutDeviceIntPoint::FromUntyped(touchPoint);
nsEventStatus status;
DispatchEvent(&gestureNotifyEvent, status);