mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 895274 part.169 Rename NS_CONTENT_COMMAND_SCROLL to eContentCommandScroll r=smaug
This commit is contained in:
parent
ac6c3eb8f7
commit
cbb6649ddd
@ -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