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
Родитель d2a0b19a04
Коммит 90a5ee8540
7 изменённых файлов: 7 добавлений и 7 удалений

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

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

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

@ -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);
}
}

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

@ -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)

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

@ -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:

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

@ -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

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

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

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

@ -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);