Bug 895274 part.11 Rename NS_KEY_DOWN to eKeyDown r=smaug

This commit is contained in:
Masayuki Nakano
2015-08-29 08:58:27 +09:00
parent f2d4e68851
commit 3533e4ee27
29 changed files with 60 additions and 62 deletions

View File

@@ -249,7 +249,7 @@ TextInputProcessor::IsValidEventTypeForComposition(
const WidgetKeyboardEvent& aKeyboardEvent) const
{
// The key event type of composition methods must be "" or "keydown".
if (aKeyboardEvent.mMessage == NS_KEY_DOWN) {
if (aKeyboardEvent.mMessage == eKeyDown) {
return true;
}
if (aKeyboardEvent.mMessage == NS_USER_DEFINED_EVENT &&
@@ -310,9 +310,9 @@ TextInputProcessor::MaybeDispatchKeyupForComposition(
return result;
}
// If the mMessage is NS_KEY_DOWN, the caller doesn't want TIP to dispatch
// If the mMessage is eKeyDown, the caller doesn't want TIP to dispatch
// keyup event.
if (aKeyboardEvent->mMessage == NS_KEY_DOWN) {
if (aKeyboardEvent->mMessage == eKeyDown) {
return result;
}
@@ -838,7 +838,7 @@ TextInputProcessor::KeydownInternal(const WidgetKeyboardEvent& aKeyboardEvent,
nsEventStatus status = aConsumedFlags ? nsEventStatus_eConsumeNoDefault :
nsEventStatus_eIgnore;
if (!mDispatcher->DispatchKeyboardEvent(NS_KEY_DOWN, keyEvent, status,
if (!mDispatcher->DispatchKeyboardEvent(eKeyDown, keyEvent, status,
GetDispatchTo())) {
// If keydown event isn't dispatched, we don't need to dispatch keypress
// events.