Bug 895274 part.12 Rename NS_KEY_BEFORE_DOWN to eBeforeKeyDown r=smaug

This commit is contained in:
Masayuki Nakano 2015-08-29 08:58:27 +09:00
parent 6e7be53c8f
commit 195bcab647
7 changed files with 8 additions and 8 deletions

View File

@ -239,7 +239,7 @@ EVENT(keyup,
EventNameType_HTMLXUL,
eKeyboardEventClass)
NON_IDL_EVENT(mozbrowserbeforekeydown,
NS_KEY_BEFORE_DOWN,
eBeforeKeyDown,
EventNameType_None,
eBeforeAfterKeyboardEventClass)
NON_IDL_EVENT(mozbrowserafterkeydown,

View File

@ -683,7 +683,7 @@ EventStateManager::PreHandleEvent(nsPresContext* aPresContext,
}
}
// then fall through...
case NS_KEY_BEFORE_DOWN:
case eBeforeKeyDown:
case eKeyDown:
case NS_KEY_AFTER_DOWN:
case NS_KEY_BEFORE_UP:

View File

@ -153,7 +153,7 @@ KeyboardEvent::CharCode()
}
switch (mEvent->mMessage) {
case NS_KEY_BEFORE_DOWN:
case eBeforeKeyDown:
case eKeyDown:
case NS_KEY_AFTER_DOWN:
case NS_KEY_BEFORE_UP:
@ -199,7 +199,7 @@ KeyboardEvent::Which()
}
switch (mEvent->mMessage) {
case NS_KEY_BEFORE_DOWN:
case eBeforeKeyDown:
case eKeyDown:
case NS_KEY_AFTER_DOWN:
case NS_KEY_BEFORE_UP:

View File

@ -6847,7 +6847,7 @@ PresShell::DispatchBeforeKeyboardEventInternal(const nsTArray<nsCOMPtr<Element>
}
EventMessage message =
(aEvent.mMessage == eKeyDown) ? NS_KEY_BEFORE_DOWN : NS_KEY_BEFORE_UP;
(aEvent.mMessage == eKeyDown) ? eBeforeKeyDown : NS_KEY_BEFORE_UP;
nsCOMPtr<EventTarget> eventTarget;
// Dispatch before events from the outermost element.
for (int32_t i = length - 1; i >= 0; i--) {

View File

@ -23,7 +23,7 @@ NS_EVENT_MESSAGE(eKeyPress, eWindowEventFirst + 31)
NS_EVENT_MESSAGE(eKeyUp, eWindowEventFirst + 32)
NS_EVENT_MESSAGE(eKeyDown, eWindowEventFirst + 33)
NS_EVENT_MESSAGE(NS_KEY_BEFORE_DOWN, eWindowEventFirst + 34)
NS_EVENT_MESSAGE(eBeforeKeyDown, eWindowEventFirst + 34)
NS_EVENT_MESSAGE(NS_KEY_AFTER_DOWN, eWindowEventFirst + 35)
NS_EVENT_MESSAGE(NS_KEY_BEFORE_UP, eWindowEventFirst + 36)
NS_EVENT_MESSAGE(NS_KEY_AFTER_UP, eWindowEventFirst + 37)

View File

@ -282,7 +282,7 @@ private:
* This is extended from WidgetKeyboardEvent and is mapped to DOM event
* "BeforeAfterKeyboardEvent".
*
* Event mMessage: NS_KEY_BEFORE_DOWN
* Event mMessage: eBeforeKeyDown
* NS_KEY_BEFORE_UP
* NS_KEY_AFTER_DOWN
* NS_KEY_AFTER_UP

View File

@ -122,7 +122,7 @@ WidgetEvent::HasKeyEventMessage() const
case eKeyDown:
case eKeyPress:
case eKeyUp:
case NS_KEY_BEFORE_DOWN:
case eBeforeKeyDown:
case NS_KEY_BEFORE_UP:
case NS_KEY_AFTER_DOWN:
case NS_KEY_AFTER_UP: