Bug 895274 part.89 Rename NS_XUL_POPUP_HIDING to eXULPopupHiding r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-04 19:54:11 +09:00
parent 0d26604282
commit 028d190b1b
5 changed files with 6 additions and 7 deletions

View File

@ -704,7 +704,7 @@ NON_IDL_EVENT(popupshown,
EventNameType_XUL,
eBasicEventClass)
NON_IDL_EVENT(popuphiding,
NS_XUL_POPUP_HIDING,
eXULPopupHiding,
EventNameType_XUL,
eBasicEventClass)
NON_IDL_EVENT(popuphidden,

View File

@ -316,9 +316,8 @@ nsComboboxControlFrame::ShowPopup(bool aShowPopup)
// fire a popup dom event
nsEventStatus status = nsEventStatus_eIgnore;
WidgetMouseEvent event(true, aShowPopup ?
eXULPopupShowing : NS_XUL_POPUP_HIDING, nullptr,
WidgetMouseEvent::eReal);
WidgetMouseEvent event(true, aShowPopup ? eXULPopupShowing : eXULPopupHiding,
nullptr, WidgetMouseEvent::eReal);
nsCOMPtr<nsIPresShell> shell = PresContext()->GetPresShell();
if (shell)

View File

@ -1434,7 +1434,7 @@ nsXULPopupManager::FirePopupHidingEvent(nsIContent* aPopup,
nsCOMPtr<nsIPresShell> presShell = aPresContext->PresShell();
nsEventStatus status = nsEventStatus_eIgnore;
WidgetMouseEvent event(true, NS_XUL_POPUP_HIDING, nullptr,
WidgetMouseEvent event(true, eXULPopupHiding, nullptr,
WidgetMouseEvent::eReal);
EventDispatcher::Dispatch(aPopup, aPresContext, &event, nullptr, &status);

View File

@ -118,7 +118,7 @@ NS_EVENT_MESSAGE(eDragDropEventLast, eDragLeave)
NS_EVENT_MESSAGE(eXULEventFirst, 1500)
NS_EVENT_MESSAGE(eXULPopupShowing, eXULEventFirst)
NS_EVENT_MESSAGE(eXULPopupShown, eXULEventFirst + 1)
NS_EVENT_MESSAGE(NS_XUL_POPUP_HIDING, eXULEventFirst + 2)
NS_EVENT_MESSAGE(eXULPopupHiding, eXULEventFirst + 2)
NS_EVENT_MESSAGE(NS_XUL_POPUP_HIDDEN, eXULEventFirst + 3)
NS_EVENT_MESSAGE(NS_XUL_BROADCAST, eXULEventFirst + 5)
NS_EVENT_MESSAGE(NS_XUL_COMMAND_UPDATE, eXULEventFirst + 6)

View File

@ -598,7 +598,7 @@ bool nsMenuX::OnClose()
return true;
nsEventStatus status = nsEventStatus_eIgnore;
WidgetMouseEvent event(true, NS_XUL_POPUP_HIDING, nullptr,
WidgetMouseEvent event(true, eXULPopupHiding, nullptr,
WidgetMouseEvent::eReal);
nsCOMPtr<nsIContent> popupContent;