Bug 895274 part.148 Rename NS_MOUSE_PIXEL_SCROLL to eLegacyMousePixelScroll r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-10 10:40:04 +09:00
parent 32c33e0500
commit 0a18818029
5 changed files with 6 additions and 6 deletions

View File

@ -637,7 +637,7 @@ NON_IDL_EVENT(DOMMouseScroll,
EventNameType_HTMLXUL,
eMouseScrollEventClass)
NON_IDL_EVENT(MozMousePixelScroll,
NS_MOUSE_PIXEL_SCROLL,
eLegacyMousePixelScroll,
EventNameType_HTMLXUL,
eMouseScrollEventClass)

View File

@ -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;

View File

@ -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,

View File

@ -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)

View File

@ -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.