зеркало из https://github.com/mozilla/gecko-dev.git
Bug 812427 part.3 Remove NS_POPUP_EVENT r=roc+smaug
This commit is contained in:
Родитель
8aa5135506
Коммит
4144d695ae
|
@ -704,15 +704,6 @@ nsDOMEvent::DuplicatePrivateData()
|
|||
newEvent = newFocusEvent;
|
||||
break;
|
||||
}
|
||||
|
||||
case NS_POPUP_EVENT:
|
||||
{
|
||||
newEvent = new nsInputEvent(false, msg, nullptr);
|
||||
NS_ENSURE_TRUE(newEvent, NS_ERROR_OUT_OF_MEMORY);
|
||||
isInputEvent = true;
|
||||
newEvent->eventStructType = NS_POPUP_EVENT;
|
||||
break;
|
||||
}
|
||||
case NS_COMMAND_EVENT:
|
||||
{
|
||||
newEvent = new nsCommandEvent(false, mEvent->userType,
|
||||
|
@ -1062,7 +1053,6 @@ nsDOMEvent::GetScreenCoords(nsPresContext* aPresContext,
|
|||
|
||||
if (!aEvent ||
|
||||
(aEvent->eventStructType != NS_MOUSE_EVENT &&
|
||||
aEvent->eventStructType != NS_POPUP_EVENT &&
|
||||
aEvent->eventStructType != NS_MOUSE_SCROLL_EVENT &&
|
||||
aEvent->eventStructType != NS_WHEEL_EVENT &&
|
||||
aEvent->eventStructType != NS_TOUCH_EVENT &&
|
||||
|
@ -1121,7 +1111,6 @@ nsDOMEvent::GetClientCoords(nsPresContext* aPresContext,
|
|||
|
||||
if (!aEvent ||
|
||||
(aEvent->eventStructType != NS_MOUSE_EVENT &&
|
||||
aEvent->eventStructType != NS_POPUP_EVENT &&
|
||||
aEvent->eventStructType != NS_MOUSE_SCROLL_EVENT &&
|
||||
aEvent->eventStructType != NS_WHEEL_EVENT &&
|
||||
aEvent->eventStructType != NS_TOUCH_EVENT &&
|
||||
|
|
|
@ -111,7 +111,6 @@ nsDOMUIEvent::GetMovementPoint()
|
|||
|
||||
if (!mEvent ||
|
||||
(mEvent->eventStructType != NS_MOUSE_EVENT &&
|
||||
mEvent->eventStructType != NS_POPUP_EVENT &&
|
||||
mEvent->eventStructType != NS_MOUSE_SCROLL_EVENT &&
|
||||
mEvent->eventStructType != NS_WHEEL_EVENT &&
|
||||
mEvent->eventStructType != NS_DRAG_EVENT &&
|
||||
|
@ -314,7 +313,6 @@ nsDOMUIEvent::GetLayerPoint()
|
|||
{
|
||||
if (!mEvent ||
|
||||
(mEvent->eventStructType != NS_MOUSE_EVENT &&
|
||||
mEvent->eventStructType != NS_POPUP_EVENT &&
|
||||
mEvent->eventStructType != NS_MOUSE_SCROLL_EVENT &&
|
||||
mEvent->eventStructType != NS_WHEEL_EVENT &&
|
||||
mEvent->eventStructType != NS_TOUCH_EVENT &&
|
||||
|
|
|
@ -37,7 +37,6 @@ public:
|
|||
{
|
||||
if (!aEvent ||
|
||||
(aEvent->eventStructType != NS_MOUSE_EVENT &&
|
||||
aEvent->eventStructType != NS_POPUP_EVENT &&
|
||||
aEvent->eventStructType != NS_MOUSE_SCROLL_EVENT &&
|
||||
aEvent->eventStructType != NS_WHEEL_EVENT &&
|
||||
aEvent->eventStructType != NS_DRAG_EVENT &&
|
||||
|
@ -62,7 +61,6 @@ public:
|
|||
{
|
||||
if (!aEvent ||
|
||||
(aEvent->eventStructType != NS_MOUSE_EVENT &&
|
||||
aEvent->eventStructType != NS_POPUP_EVENT &&
|
||||
aEvent->eventStructType != NS_MOUSE_SCROLL_EVENT &&
|
||||
aEvent->eventStructType != NS_WHEEL_EVENT &&
|
||||
aEvent->eventStructType != NS_DRAG_EVENT &&
|
||||
|
|
|
@ -724,7 +724,6 @@ nsEventDispatcher::CreateEvent(nsPresContext* aPresContext,
|
|||
return NS_NewDOMCompositionEvent(
|
||||
aDOMEvent, aPresContext, static_cast<nsCompositionEvent*>(aEvent));
|
||||
case NS_MOUSE_EVENT:
|
||||
case NS_POPUP_EVENT:
|
||||
return NS_NewDOMMouseEvent(aDOMEvent, aPresContext,
|
||||
static_cast<nsInputEvent*>(aEvent));
|
||||
case NS_MOUSE_SCROLL_EVENT:
|
||||
|
|
|
@ -56,7 +56,6 @@ enum nsEventStructType {
|
|||
|
||||
// Mouse related events
|
||||
NS_MOUSE_EVENT, // nsMouseEvent
|
||||
NS_POPUP_EVENT, // nsMouseEvent
|
||||
NS_MOUSE_SCROLL_EVENT, // nsMouseScrollEvent
|
||||
NS_DRAG_EVENT, // nsDragEvent
|
||||
NS_WHEEL_EVENT, // widget::WheelEvent
|
||||
|
|
Загрузка…
Ссылка в новой задаче