mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895274 part.169 Rename NS_CONTENT_COMMAND_SCROLL to eContentCommandScroll r=smaug
This commit is contained in:
parent
056f9de506
commit
e25ea203f1
@ -756,10 +756,8 @@ EventStateManager::PreHandleEvent(nsPresContext* aPresContext,
|
||||
case eContentCommandPasteTransferable:
|
||||
DoContentCommandEvent(aEvent->AsContentCommandEvent());
|
||||
break;
|
||||
case NS_CONTENT_COMMAND_SCROLL:
|
||||
{
|
||||
DoContentCommandScrollEvent(aEvent->AsContentCommandEvent());
|
||||
}
|
||||
case eContentCommandScroll:
|
||||
DoContentCommandScrollEvent(aEvent->AsContentCommandEvent());
|
||||
break;
|
||||
case NS_COMPOSITION_START:
|
||||
if (aEvent->mFlags.mIsTrusted) {
|
||||
|
@ -307,13 +307,13 @@ NS_EVENT_MESSAGE(eContentCommandDelete, eContentCommandEventFirst + 3
|
||||
NS_EVENT_MESSAGE(eContentCommandUndo, eContentCommandEventFirst + 4)
|
||||
NS_EVENT_MESSAGE(eContentCommandRedo, eContentCommandEventFirst + 5)
|
||||
NS_EVENT_MESSAGE(eContentCommandPasteTransferable, eContentCommandEventFirst + 6)
|
||||
// NS_CONTENT_COMMAND_SCROLL scrolls the nearest scrollable element to the
|
||||
// eContentCommandScroll scrolls the nearest scrollable element to the
|
||||
// currently focused content or latest DOM selection. This would normally be
|
||||
// the same element scrolled by keyboard scroll commands, except that this event
|
||||
// will scroll an element scrollable in either direction. I.e., if the nearest
|
||||
// scrollable ancestor element can only be scrolled vertically, and horizontal
|
||||
// scrolling is requested using this event, no scrolling will occur.
|
||||
NS_EVENT_MESSAGE(NS_CONTENT_COMMAND_SCROLL, eContentCommandEventFirst + 7)
|
||||
NS_EVENT_MESSAGE(eContentCommandScroll, eContentCommandEventFirst + 7)
|
||||
|
||||
// Event to gesture notification
|
||||
NS_EVENT_MESSAGE(NS_GESTURENOTIFY_EVENT_START, 3900)
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
// eContentCommandPasteTransferable
|
||||
nsCOMPtr<nsITransferable> mTransferable; // [in]
|
||||
|
||||
// NS_CONTENT_COMMAND_SCROLL
|
||||
// eContentCommandScroll
|
||||
// for mScroll.mUnit
|
||||
enum
|
||||
{
|
||||
|
@ -541,9 +541,7 @@ MouseScrollHandler::ProcessNativeScrollMessage(nsWindowBase* aWidget,
|
||||
aWParam, aLParam));
|
||||
|
||||
// Scroll message generated by external application
|
||||
WidgetContentCommandEvent commandEvent(true, NS_CONTENT_COMMAND_SCROLL,
|
||||
aWidget);
|
||||
|
||||
WidgetContentCommandEvent commandEvent(true, eContentCommandScroll, aWidget);
|
||||
commandEvent.mScroll.mIsHorizontal = (aMessage == WM_HSCROLL);
|
||||
|
||||
switch (LOWORD(aWParam)) {
|
||||
|
Loading…
Reference in New Issue
Block a user