зеркало из https://github.com/mozilla/gecko-dev.git
Bug 719320 part.8-1 Drop legacy mouse scroll events from IPC r=smaug
This commit is contained in:
Родитель
6a65280323
Коммит
77ea1504a6
|
@ -1568,10 +1568,6 @@ nsEventStateManager::DispatchCrossProcessEvent(nsEvent* aEvent,
|
|||
nsKeyEvent* keyEvent = static_cast<nsKeyEvent*>(aEvent);
|
||||
return remote->SendRealKeyEvent(*keyEvent);
|
||||
}
|
||||
case NS_MOUSE_SCROLL_EVENT: {
|
||||
nsMouseScrollEvent* scrollEvent = static_cast<nsMouseScrollEvent*>(aEvent);
|
||||
return remote->SendMouseScrollEvent(*scrollEvent);
|
||||
}
|
||||
case NS_WHEEL_EVENT: {
|
||||
widget::WheelEvent* wheelEvent = static_cast<widget::WheelEvent*>(aEvent);
|
||||
return remote->SendMouseWheelEvent(*wheelEvent);
|
||||
|
@ -1623,7 +1619,6 @@ CrossProcessSafeEvent(const nsEvent& aEvent)
|
|||
{
|
||||
switch (aEvent.eventStructType) {
|
||||
case NS_KEY_EVENT:
|
||||
case NS_MOUSE_SCROLL_EVENT:
|
||||
case NS_WHEEL_EVENT:
|
||||
return true;
|
||||
case NS_MOUSE_EVENT:
|
||||
|
|
|
@ -306,7 +306,6 @@ child:
|
|||
|
||||
RealMouseEvent(nsMouseEvent event);
|
||||
RealKeyEvent(nsKeyEvent event);
|
||||
MouseScrollEvent(nsMouseScrollEvent event);
|
||||
MouseWheelEvent(WheelEvent event);
|
||||
RealTouchEvent(nsTouchEvent event);
|
||||
|
||||
|
|
|
@ -822,14 +822,6 @@ TabChild::RecvRealMouseEvent(const nsMouseEvent& event)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
TabChild::RecvMouseScrollEvent(const nsMouseScrollEvent& event)
|
||||
{
|
||||
nsMouseScrollEvent localEvent(event);
|
||||
DispatchWidgetEvent(localEvent);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
TabChild::RecvMouseWheelEvent(const WheelEvent& event)
|
||||
{
|
||||
|
|
|
@ -188,7 +188,6 @@ public:
|
|||
const bool& aIgnoreRootScrollFrame);
|
||||
virtual bool RecvRealMouseEvent(const nsMouseEvent& event);
|
||||
virtual bool RecvRealKeyEvent(const nsKeyEvent& event);
|
||||
virtual bool RecvMouseScrollEvent(const nsMouseScrollEvent& event);
|
||||
virtual bool RecvMouseWheelEvent(const mozilla::widget::WheelEvent& event);
|
||||
virtual bool RecvRealTouchEvent(const nsTouchEvent& event);
|
||||
virtual bool RecvKeyEvent(const nsString& aType,
|
||||
|
|
|
@ -340,13 +340,6 @@ bool TabParent::SendRealMouseEvent(nsMouseEvent& event)
|
|||
return PBrowserParent::SendRealMouseEvent(e);
|
||||
}
|
||||
|
||||
bool TabParent::SendMouseScrollEvent(nsMouseScrollEvent& event)
|
||||
{
|
||||
nsMouseScrollEvent e(event);
|
||||
MaybeForwardEventToRenderFrame(event, &e);
|
||||
return PBrowserParent::SendMouseScrollEvent(e);
|
||||
}
|
||||
|
||||
bool TabParent::SendMouseWheelEvent(WheelEvent& event)
|
||||
{
|
||||
WheelEvent e(event);
|
||||
|
|
|
@ -143,7 +143,6 @@ public:
|
|||
PRInt32 aCharCode, PRInt32 aModifiers,
|
||||
bool aPreventDefault);
|
||||
bool SendRealMouseEvent(nsMouseEvent& event);
|
||||
bool SendMouseScrollEvent(nsMouseScrollEvent& event);
|
||||
bool SendMouseWheelEvent(mozilla::widget::WheelEvent& event);
|
||||
bool SendRealKeyEvent(nsKeyEvent& event);
|
||||
bool SendRealTouchEvent(nsTouchEvent& event);
|
||||
|
|
Загрузка…
Ссылка в новой задаче