Bug 895274 part.204 Rename NS_GAMEPAD_START to eGamepadEventFirst r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-11 21:21:28 +09:00
Родитель 1049c7be28
Коммит 3b99f4a9ec
2 изменённых файлов: 8 добавлений и 9 удалений

Просмотреть файл

@ -383,7 +383,7 @@ EventListenerManager::AddEventListenerInternal(
window->SetHasMouseEnterLeaveEventListeners();
}
#ifdef MOZ_GAMEPAD
} else if (aEventMessage >= NS_GAMEPAD_START &&
} else if (aEventMessage >= eGamepadEventFirst &&
aEventMessage <= NS_GAMEPAD_END) {
nsPIDOMWindow* window = GetInnerWindowForTarget();
if (window) {

Просмотреть файл

@ -414,14 +414,13 @@ NS_EVENT_MESSAGE(NS_SPEAKERMANAGER_SPEAKERFORCEDCHANGE, NS_SPEAKERMANAGER_EVENT_
#ifdef MOZ_GAMEPAD
// Gamepad input events
NS_EVENT_MESSAGE(NS_GAMEPAD_START, 6000)
NS_EVENT_MESSAGE(eGamepadButtonDown, NS_GAMEPAD_START)
NS_EVENT_MESSAGE(eGamepadButtonUp, NS_GAMEPAD_START + 1)
NS_EVENT_MESSAGE(eGamepadAxisMove, NS_GAMEPAD_START + 2)
NS_EVENT_MESSAGE(eGamepadConnected, NS_GAMEPAD_START + 3)
NS_EVENT_MESSAGE(eGamepadDisconnected, NS_GAMEPAD_START + 4)
// Keep this defined to the same value as the event above
NS_EVENT_MESSAGE(NS_GAMEPAD_END, NS_GAMEPAD_START + 4)
NS_EVENT_MESSAGE(eGamepadEventFirst, 6000)
NS_EVENT_MESSAGE(eGamepadButtonDown, eGamepadEventFirst)
NS_EVENT_MESSAGE(eGamepadButtonUp, eGamepadEventFirst + 1)
NS_EVENT_MESSAGE(eGamepadAxisMove, eGamepadEventFirst + 2)
NS_EVENT_MESSAGE(eGamepadConnected, eGamepadEventFirst + 3)
NS_EVENT_MESSAGE(eGamepadDisconnected, eGamepadEventFirst + 4)
NS_EVENT_MESSAGE(NS_GAMEPAD_END, eGamepadDisconnected)
#endif
// input and beforeinput events.