Bug 895274 part.15 Rename NS_KEY_AFTER_UP to eAfterKeyUp r=smaug

This commit is contained in:
Masayuki Nakano 2015-08-29 08:58:28 +09:00
parent f297755349
commit 7b5c91dfce
7 changed files with 9 additions and 9 deletions

View File

@ -251,7 +251,7 @@ NON_IDL_EVENT(mozbrowserbeforekeyup,
EventNameType_None,
eBeforeAfterKeyboardEventClass)
NON_IDL_EVENT(mozbrowserafterkeyup,
NS_KEY_AFTER_UP,
eAfterKeyUp,
EventNameType_None,
eBeforeAfterKeyboardEventClass)
EVENT(loadeddata,

View File

@ -688,7 +688,7 @@ EventStateManager::PreHandleEvent(nsPresContext* aPresContext,
case eAfterKeyDown:
case eBeforeKeyUp:
case eKeyUp:
case NS_KEY_AFTER_UP:
case eAfterKeyUp:
{
nsIContent* content = GetFocusedContent();
if (content)
@ -3307,7 +3307,7 @@ EventStateManager::PostHandleEvent(nsPresContext* aPresContext,
case eBeforeKeyUp:
case eKeyUp:
case NS_KEY_AFTER_UP:
case eAfterKeyUp:
break;
case eKeyPress:

View File

@ -158,7 +158,7 @@ KeyboardEvent::CharCode()
case eAfterKeyDown:
case eBeforeKeyUp:
case eKeyUp:
case NS_KEY_AFTER_UP:
case eAfterKeyUp:
return 0;
case eKeyPress:
return mEvent->AsKeyboardEvent()->charCode;
@ -204,7 +204,7 @@ KeyboardEvent::Which()
case eAfterKeyDown:
case eBeforeKeyUp:
case eKeyUp:
case NS_KEY_AFTER_UP:
case eAfterKeyUp:
return KeyCode();
case eKeyPress:
//Special case for 4xp bug 62878. Try to make value of which

View File

@ -6881,7 +6881,7 @@ PresShell::DispatchAfterKeyboardEventInternal(const nsTArray<nsCOMPtr<Element> >
}
EventMessage message =
(aEvent.mMessage == eKeyDown) ? eAfterKeyDown : NS_KEY_AFTER_UP;
(aEvent.mMessage == eKeyDown) ? eAfterKeyDown : eAfterKeyUp;
bool embeddedCancelled = aEmbeddedCancelled;
nsCOMPtr<EventTarget> eventTarget;
// Dispatch after events from the innermost element.

View File

@ -26,7 +26,7 @@ NS_EVENT_MESSAGE(eKeyDown, eWindowEventFirst + 33)
NS_EVENT_MESSAGE(eBeforeKeyDown, eWindowEventFirst + 34)
NS_EVENT_MESSAGE(eAfterKeyDown, eWindowEventFirst + 35)
NS_EVENT_MESSAGE(eBeforeKeyUp, eWindowEventFirst + 36)
NS_EVENT_MESSAGE(NS_KEY_AFTER_UP, eWindowEventFirst + 37)
NS_EVENT_MESSAGE(eAfterKeyUp, eWindowEventFirst + 37)
NS_EVENT_MESSAGE(NS_RESIZE_EVENT, eWindowEventFirst + 60)
NS_EVENT_MESSAGE(NS_SCROLL_EVENT, eWindowEventFirst + 61)

View File

@ -285,7 +285,7 @@ private:
* Event mMessage: eBeforeKeyDown
* eBeforeKeyUp
* eAfterKeyDown
* NS_KEY_AFTER_UP
* eAfterKeyUp
******************************************************************************/
class InternalBeforeAfterKeyboardEvent : public WidgetKeyboardEvent
{

View File

@ -125,7 +125,7 @@ WidgetEvent::HasKeyEventMessage() const
case eBeforeKeyDown:
case eBeforeKeyUp:
case eAfterKeyDown:
case NS_KEY_AFTER_UP:
case eAfterKeyUp:
return true;
default:
return false;