зеркало из https://github.com/mozilla/gecko-dev.git
Bug 895274 part.76 Rename NS_DRAGDROP_LEAVE to eDragLeave r=smaug
This commit is contained in:
Родитель
4ee1803053
Коммит
9fb6e3527b
|
@ -191,7 +191,7 @@ EVENT(dragenter,
|
|||
EventNameType_HTMLXUL,
|
||||
eDragEventClass)
|
||||
EVENT(dragleave,
|
||||
NS_DRAGDROP_LEAVE,
|
||||
eDragLeave,
|
||||
EventNameType_HTMLXUL,
|
||||
eDragEventClass)
|
||||
EVENT(dragover,
|
||||
|
|
|
@ -4325,7 +4325,7 @@ EventStateManager::GenerateDragDropEnterExit(nsPresContext* aPresContext,
|
|||
|
||||
if (sLastDragOverFrame) {
|
||||
FireDragEnterOrExit(sLastDragOverFrame->PresContext(),
|
||||
aDragEvent, NS_DRAGDROP_LEAVE,
|
||||
aDragEvent, eDragLeave,
|
||||
targetContent, lastContent, sLastDragOverFrame);
|
||||
}
|
||||
|
||||
|
@ -4347,7 +4347,7 @@ EventStateManager::GenerateDragDropEnterExit(nsPresContext* aPresContext,
|
|||
aDragEvent, NS_DRAGDROP_EXIT,
|
||||
nullptr, lastContent, sLastDragOverFrame);
|
||||
FireDragEnterOrExit(lastDragOverFramePresContext,
|
||||
aDragEvent, NS_DRAGDROP_LEAVE,
|
||||
aDragEvent, eDragLeave,
|
||||
nullptr, lastContent, sLastDragOverFrame);
|
||||
|
||||
sLastDragOverFrame = nullptr;
|
||||
|
@ -4402,7 +4402,7 @@ EventStateManager::FireDragEnterOrExit(nsPresContext* aPresContext,
|
|||
|
||||
// collect any changes to moz cursor settings stored in the event's
|
||||
// data transfer.
|
||||
if (aMessage == NS_DRAGDROP_LEAVE || aMessage == NS_DRAGDROP_EXIT ||
|
||||
if (aMessage == eDragLeave || aMessage == NS_DRAGDROP_EXIT ||
|
||||
aMessage == NS_DRAGDROP_ENTER) {
|
||||
UpdateDragDataTransfer(&event);
|
||||
}
|
||||
|
|
|
@ -111,8 +111,8 @@ NS_EVENT_MESSAGE(NS_DRAGDROP_DRAG, eDragDropEventFirst + 5)
|
|||
NS_EVENT_MESSAGE(NS_DRAGDROP_END, eDragDropEventFirst + 6)
|
||||
NS_EVENT_MESSAGE(NS_DRAGDROP_START, eDragDropEventFirst + 7)
|
||||
NS_EVENT_MESSAGE(NS_DRAGDROP_DROP, eDragDropEventFirst + 8)
|
||||
NS_EVENT_MESSAGE(NS_DRAGDROP_LEAVE, eDragDropEventFirst + 9)
|
||||
NS_EVENT_MESSAGE(eDragDropEventLast, NS_DRAGDROP_LEAVE)
|
||||
NS_EVENT_MESSAGE(eDragLeave, eDragDropEventFirst + 9)
|
||||
NS_EVENT_MESSAGE(eDragDropEventLast, eDragLeave)
|
||||
|
||||
// Events for popups
|
||||
NS_EVENT_MESSAGE(NS_XUL_EVENT_START, 1500)
|
||||
|
|
|
@ -323,7 +323,7 @@ public:
|
|||
{
|
||||
mFlags.mCancelable =
|
||||
(aMessage != NS_DRAGDROP_EXIT &&
|
||||
aMessage != NS_DRAGDROP_LEAVE &&
|
||||
aMessage != eDragLeave &&
|
||||
aMessage != NS_DRAGDROP_END);
|
||||
}
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ WidgetEvent::HasDragEventMessage() const
|
|||
case NS_DRAGDROP_END:
|
||||
case NS_DRAGDROP_START:
|
||||
case NS_DRAGDROP_DROP:
|
||||
case NS_DRAGDROP_LEAVE:
|
||||
case eDragLeave:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче