mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 895274 part.224 Rename NS_DEVICE_ORIENTATION to eDeviceOrientation r=smaug
This commit is contained in:
parent
51ecb52487
commit
6cde63ca22
@ -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:
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user