mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895274 part.12 Rename NS_KEY_BEFORE_DOWN to eBeforeKeyDown r=smaug
This commit is contained in:
parent
6e7be53c8f
commit
195bcab647
@ -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,
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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--) {
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user