Bug 895274 part.169 Rename NS_CONTENT_COMMAND_SCROLL to eContentCommandScroll r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-11 01:59:53 +09:00
parent ac6c3eb8f7
commit cbb6649ddd
4 changed files with 6 additions and 10 deletions

View File

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

View File

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

View File

@ -49,7 +49,7 @@ public:
// eContentCommandPasteTransferable
nsCOMPtr<nsITransferable> mTransferable; // [in]
// NS_CONTENT_COMMAND_SCROLL
// eContentCommandScroll
// for mScroll.mUnit
enum
{

View File

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