mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
parent
9195e9e4e3
commit
b586913598
53 changed files with 60 additions and 750 deletions
|
|
@ -352,7 +352,7 @@ EventListenerManager::AddEventListenerInternal(
|
|||
EnableDevice(eDeviceLight);
|
||||
} else if (aTypeAtom == nsGkAtoms::ondevicemotion) {
|
||||
EnableDevice(eDeviceMotion);
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK)
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
} else if (aTypeAtom == nsGkAtoms::onorientationchange) {
|
||||
EnableDevice(eOrientationChange);
|
||||
#endif
|
||||
|
|
@ -481,7 +481,7 @@ EventListenerManager::IsDeviceType(EventMessage aEventMessage)
|
|||
case eDeviceLight:
|
||||
case eDeviceProximity:
|
||||
case eUserProximity:
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK)
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
case eOrientationChange:
|
||||
#endif
|
||||
return true;
|
||||
|
|
@ -529,7 +529,7 @@ EventListenerManager::EnableDevice(EventMessage aEventMessage)
|
|||
window->EnableDeviceSensor(SENSOR_LINEAR_ACCELERATION);
|
||||
window->EnableDeviceSensor(SENSOR_GYROSCOPE);
|
||||
break;
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK)
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
case eOrientationChange:
|
||||
window->EnableOrientationChangeListener();
|
||||
break;
|
||||
|
|
@ -575,7 +575,7 @@ EventListenerManager::DisableDevice(EventMessage aEventMessage)
|
|||
case eDeviceLight:
|
||||
window->DisableDeviceSensor(SENSOR_LIGHT);
|
||||
break;
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK)
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
case eOrientationChange:
|
||||
window->DisableOrientationChangeListener();
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -563,7 +563,7 @@ WINDOW_EVENT(online,
|
|||
eOnline,
|
||||
EventNameType_XUL | EventNameType_HTMLBodyOrFramesetOnly,
|
||||
eBasicEventClass)
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK)
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
WINDOW_EVENT(orientationchange,
|
||||
eOrientationChange,
|
||||
EventNameType_HTMLBodyOrFramesetOnly,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue