зеркало из https://github.com/mozilla/gecko-dev.git
Bug 895274 part.219 Rename NS_GESTURENOTIFY_EVENT_START to eGestureNotify r=smaug
This commit is contained in:
Родитель
0574db1cbd
Коммит
ada4e843de
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче