mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895274 part.148 Rename NS_MOUSE_PIXEL_SCROLL to eLegacyMousePixelScroll r=smaug
This commit is contained in:
parent
32c33e0500
commit
0a18818029
@ -637,7 +637,7 @@ NON_IDL_EVENT(DOMMouseScroll,
|
||||
EventNameType_HTMLXUL,
|
||||
eMouseScrollEventClass)
|
||||
NON_IDL_EVENT(MozMousePixelScroll,
|
||||
NS_MOUSE_PIXEL_SCROLL,
|
||||
eLegacyMousePixelScroll,
|
||||
EventNameType_HTMLXUL,
|
||||
eMouseScrollEventClass)
|
||||
|
||||
|
@ -2233,8 +2233,8 @@ EventStateManager::SendPixelScrollEvent(nsIFrame* aTargetFrame,
|
||||
targetContent = targetContent->GetParent();
|
||||
}
|
||||
|
||||
WidgetMouseScrollEvent event(aEvent->mFlags.mIsTrusted, NS_MOUSE_PIXEL_SCROLL,
|
||||
aEvent->widget);
|
||||
WidgetMouseScrollEvent event(aEvent->mFlags.mIsTrusted,
|
||||
eLegacyMousePixelScroll, aEvent->widget);
|
||||
event.mFlags.mDefaultPrevented = aState.mDefaultPrevented;
|
||||
event.mFlags.mDefaultPreventedByContent = aState.mDefaultPreventedByContent;
|
||||
event.refPoint = aEvent->refPoint;
|
||||
|
@ -110,7 +110,7 @@ public:
|
||||
|
||||
/**
|
||||
* DispatchLegacyMouseScrollEvents() dispatches eLegacyMouseLineOrPageScroll
|
||||
* event and NS_MOUSE_PIXEL_SCROLL event for compatibility with old Gecko.
|
||||
* event and eLegacyMousePixelScroll event for compatibility with old Gecko.
|
||||
*/
|
||||
void DispatchLegacyMouseScrollEvents(nsIFrame* aTargetFrame,
|
||||
WidgetWheelEvent* aEvent,
|
||||
|
@ -126,7 +126,7 @@ NS_EVENT_MESSAGE(eXULCommandUpdate, eXULEventFirst + 6)
|
||||
// Legacy mouse scroll (wheel) events
|
||||
NS_EVENT_MESSAGE(eLegacyMouseScrollEventFirst, 1600)
|
||||
NS_EVENT_MESSAGE(eLegacyMouseLineOrPageScroll, eLegacyMouseScrollEventFirst)
|
||||
NS_EVENT_MESSAGE(NS_MOUSE_PIXEL_SCROLL, eLegacyMouseScrollEventFirst + 1)
|
||||
NS_EVENT_MESSAGE(eLegacyMousePixelScroll, eLegacyMouseScrollEventFirst + 1)
|
||||
|
||||
NS_EVENT_MESSAGE(NS_SCROLLPORT_START, 1700)
|
||||
NS_EVENT_MESSAGE(NS_SCROLLPORT_UNDERFLOW, NS_SCROLLPORT_START)
|
||||
|
@ -403,7 +403,7 @@ public:
|
||||
// scroll amount in lines. However, if the value is
|
||||
// nsIDOMUIEvent::SCROLL_PAGE_UP or nsIDOMUIEvent::SCROLL_PAGE_DOWN, the
|
||||
// value inducates one page scroll. If the event message is
|
||||
// NS_MOUSE_PIXEL_SCROLL, the value indicates scroll amount in pixels.
|
||||
// eLegacyMousePixelScroll, the value indicates scroll amount in pixels.
|
||||
int32_t delta;
|
||||
|
||||
// If this is true, it may cause to scroll horizontally.
|
||||
|
Loading…
Reference in New Issue
Block a user