Bug 895274 part.224 Rename NS_DEVICE_ORIENTATION to eDeviceOrientation r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-12 01:19:28 +09:00
parent 51ecb52487
commit 6cde63ca22
3 changed files with 6 additions and 6 deletions

View File

@ -318,7 +318,7 @@ EventListenerManager::AddEventListenerInternal(
kAllMutationBits : MutationBitForEventType(aEventMessage));
}
} else if (aTypeAtom == nsGkAtoms::ondeviceorientation) {
EnableDevice(NS_DEVICE_ORIENTATION);
EnableDevice(eDeviceOrientation);
} else if (aTypeAtom == nsGkAtoms::ondeviceproximity || aTypeAtom == nsGkAtoms::onuserproximity) {
EnableDevice(NS_DEVICE_PROXIMITY);
} else if (aTypeAtom == nsGkAtoms::ondevicelight) {
@ -419,7 +419,7 @@ bool
EventListenerManager::IsDeviceType(EventMessage aEventMessage)
{
switch (aEventMessage) {
case NS_DEVICE_ORIENTATION:
case eDeviceOrientation:
case NS_DEVICE_MOTION:
case NS_DEVICE_LIGHT:
case NS_DEVICE_PROXIMITY:
@ -440,7 +440,7 @@ EventListenerManager::EnableDevice(EventMessage aEventMessage)
}
switch (aEventMessage) {
case NS_DEVICE_ORIENTATION:
case eDeviceOrientation:
window->EnableDeviceSensor(SENSOR_ORIENTATION);
break;
case NS_DEVICE_PROXIMITY:
@ -470,7 +470,7 @@ EventListenerManager::DisableDevice(EventMessage aEventMessage)
}
switch (aEventMessage) {
case NS_DEVICE_ORIENTATION:
case eDeviceOrientation:
window->DisableDeviceSensor(SENSOR_ORIENTATION);
break;
case NS_DEVICE_MOTION:

View File

@ -532,7 +532,7 @@ WINDOW_ONLY_EVENT(devicemotion,
EventNameType_None,
eBasicEventClass)
WINDOW_ONLY_EVENT(deviceorientation,
NS_DEVICE_ORIENTATION,
eDeviceOrientation,
EventNameType_None,
eBasicEventClass)
WINDOW_ONLY_EVENT(deviceproximity,

View File

@ -356,7 +356,7 @@ NS_EVENT_MESSAGE(eOpen, eOpenCloseEventFirst)
// Device motion and orientation
NS_EVENT_MESSAGE(eDeviceEventFirst, 4900)
NS_EVENT_MESSAGE(NS_DEVICE_ORIENTATION, eDeviceEventFirst)
NS_EVENT_MESSAGE(eDeviceOrientation, eDeviceEventFirst)
NS_EVENT_MESSAGE(NS_DEVICE_MOTION, eDeviceEventFirst + 1)
NS_EVENT_MESSAGE(NS_DEVICE_PROXIMITY, eDeviceEventFirst + 2)
NS_EVENT_MESSAGE(NS_USER_PROXIMITY, eDeviceEventFirst + 3)