Bug 895274 part.80 Rename NS_DRAGDROP_DRAG to eDrag r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-02 15:08:02 +09:00
parent 1aec683604
commit 9e93364893
7 changed files with 7 additions and 7 deletions

View File

@ -179,7 +179,7 @@ EVENT(dblclick,
EventNameType_HTMLXUL,
eMouseEventClass)
EVENT(drag,
NS_DRAGDROP_DRAG,
eDrag,
EventNameType_HTMLXUL,
eDragEventClass)
EVENT(dragend,

View File

@ -2195,7 +2195,7 @@ TabChild::RecvRealDragEvent(const WidgetDragEvent& aEvent,
if (dragService) {
// This will dispatch 'drag' event at the source if the
// drag transaction started in this process.
dragService->FireDragEventAtSource(NS_DRAGDROP_DRAG);
dragService->FireDragEventAtSource(eDrag);
}
}

View File

@ -107,7 +107,7 @@ NS_EVENT_MESSAGE(NS_DRAGDROP_OVER, eDragDropEventFirst + 1)
NS_EVENT_MESSAGE(NS_DRAGDROP_EXIT, eDragDropEventFirst + 2)
NS_EVENT_MESSAGE(NS_DRAGDROP_DRAGDROP, eDragDropEventFirst + 3)
NS_EVENT_MESSAGE(NS_DRAGDROP_GESTURE, eDragDropEventFirst + 4)
NS_EVENT_MESSAGE(NS_DRAGDROP_DRAG, eDragDropEventFirst + 5)
NS_EVENT_MESSAGE(eDrag, eDragDropEventFirst + 5)
NS_EVENT_MESSAGE(eDragEnd, eDragDropEventFirst + 6)
NS_EVENT_MESSAGE(eDragStart, eDragDropEventFirst + 7)
NS_EVENT_MESSAGE(eDrop, eDragDropEventFirst + 8)

View File

@ -104,7 +104,7 @@ WidgetEvent::HasDragEventMessage() const
case NS_DRAGDROP_EXIT:
case NS_DRAGDROP_DRAGDROP:
case NS_DRAGDROP_GESTURE:
case NS_DRAGDROP_DRAG:
case eDrag:
case eDragEnd:
case eDragStart:
case eDrop:

View File

@ -5744,7 +5744,7 @@ PanGestureTypeForEvent(NSEvent* aEvent)
if (aMessage == NS_DRAGDROP_OVER) {
// fire the drag event at the source. Just ignore whether it was
// cancelled or not as there isn't actually a means to stop the drag
mDragService->FireDragEventAtSource(NS_DRAGDROP_DRAG);
mDragService->FireDragEventAtSource(eDrag);
dragSession->SetCanDrop(false);
} else if (aMessage == eDrop) {
// We make the assumption that the dragOver handlers have correctly set

View File

@ -2036,7 +2036,7 @@ nsDragService::DispatchMotionEvents()
{
mCanDrop = false;
FireDragEventAtSource(NS_DRAGDROP_DRAG);
FireDragEventAtSource(eDrag);
mTargetWindow->
DispatchDragEvent(NS_DRAGDROP_OVER, mTargetWindowPoint, mTargetTime);

View File

@ -340,7 +340,7 @@ nsNativeDragTarget::DragOver(DWORD grfKeyState,
GetDropTargetHelper()->DragOver(&pt, *pdwEffect);
}
mDragService->FireDragEventAtSource(NS_DRAGDROP_DRAG);
mDragService->FireDragEventAtSource(eDrag);
// Now process the native drag state and then dispatch the event
ProcessDrag(NS_DRAGDROP_OVER, grfKeyState, ptl, pdwEffect);