зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1379728 part 1. Remove the double-definition of the 'close' event from EventNameList.h. r=smaug
This commit is contained in:
Родитель
3d56aac575
Коммит
49dbf6fa43
|
@ -182,7 +182,7 @@ EVENT(click,
|
|||
eMouseEventClass)
|
||||
EVENT(close,
|
||||
eClose,
|
||||
EventNameType_HTML,
|
||||
EventNameType_HTMLXUL,
|
||||
eBasicEventClass)
|
||||
EVENT(contextmenu,
|
||||
eContextMenu,
|
||||
|
@ -784,10 +784,6 @@ NON_IDL_EVENT(command,
|
|||
eXULCommand,
|
||||
EventNameType_XUL,
|
||||
eInputEventClass)
|
||||
NON_IDL_EVENT(close,
|
||||
eWindowClose,
|
||||
EventNameType_XUL,
|
||||
eBasicEventClass)
|
||||
NON_IDL_EVENT(popupshowing,
|
||||
eXULPopupShowing,
|
||||
EventNameType_XUL,
|
||||
|
|
|
@ -331,7 +331,7 @@ nsWebShellWindow::RequestWindowClose(nsIWidget* aWidget)
|
|||
RefPtr<nsPresContext> presContext = presShell->GetPresContext();
|
||||
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
WidgetMouseEvent event(true, eWindowClose, nullptr,
|
||||
WidgetMouseEvent event(true, eClose, nullptr,
|
||||
WidgetMouseEvent::eReal);
|
||||
if (NS_SUCCEEDED(eventTarget->DispatchDOMEvent(&event, nullptr, presContext, &status)) &&
|
||||
status == nsEventStatus_eConsumeNoDefault)
|
||||
|
@ -703,7 +703,7 @@ bool nsWebShellWindow::ExecuteCloseHandler()
|
|||
contentViewer->GetPresContext(getter_AddRefs(presContext));
|
||||
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
WidgetMouseEvent event(true, eWindowClose, nullptr,
|
||||
WidgetMouseEvent event(true, eClose, nullptr,
|
||||
WidgetMouseEvent::eReal);
|
||||
|
||||
nsresult rv =
|
||||
|
|
Загрузка…
Ссылка в новой задаче