mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
Remove MOZ_B2G leftovers and some dead B2G-only components.
This commit is contained in:
parent
75d98fd33e
commit
719ac1bc38
91 changed files with 28 additions and 5017 deletions
|
|
@ -13,9 +13,6 @@
|
|||
#include "mozilla/DOMEventTargetHelper.h"
|
||||
#include "mozilla/EventDispatcher.h"
|
||||
#include "mozilla/EventListenerManager.h"
|
||||
#ifdef MOZ_B2G
|
||||
#include "mozilla/Hal.h"
|
||||
#endif // #ifdef MOZ_B2G
|
||||
#include "mozilla/HalSensor.h"
|
||||
#include "mozilla/InternalMutationEvent.h"
|
||||
#include "mozilla/JSEventHandler.h"
|
||||
|
|
@ -359,14 +356,6 @@ EventListenerManager::AddEventListenerInternal(
|
|||
} else if (aTypeAtom == nsGkAtoms::onorientationchange) {
|
||||
EnableDevice(eOrientationChange);
|
||||
#endif
|
||||
#ifdef MOZ_B2G
|
||||
} else if (aTypeAtom == nsGkAtoms::onmoztimechange) {
|
||||
EnableDevice(eTimeChange);
|
||||
} else if (aTypeAtom == nsGkAtoms::onmoznetworkupload) {
|
||||
EnableDevice(eNetworkUpload);
|
||||
} else if (aTypeAtom == nsGkAtoms::onmoznetworkdownload) {
|
||||
EnableDevice(eNetworkDownload);
|
||||
#endif // MOZ_B2G
|
||||
} else if (aTypeAtom == nsGkAtoms::ontouchstart ||
|
||||
aTypeAtom == nsGkAtoms::ontouchend ||
|
||||
aTypeAtom == nsGkAtoms::ontouchmove ||
|
||||
|
|
@ -494,11 +483,6 @@ EventListenerManager::IsDeviceType(EventMessage aEventMessage)
|
|||
case eUserProximity:
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK)
|
||||
case eOrientationChange:
|
||||
#endif
|
||||
#ifdef MOZ_B2G
|
||||
case eTimeChange:
|
||||
case eNetworkUpload:
|
||||
case eNetworkDownload:
|
||||
#endif
|
||||
return true;
|
||||
default:
|
||||
|
|
@ -549,15 +533,6 @@ EventListenerManager::EnableDevice(EventMessage aEventMessage)
|
|||
case eOrientationChange:
|
||||
window->EnableOrientationChangeListener();
|
||||
break;
|
||||
#endif
|
||||
#ifdef MOZ_B2G
|
||||
case eTimeChange:
|
||||
window->EnableTimeChangeNotifications();
|
||||
break;
|
||||
case eNetworkUpload:
|
||||
case eNetworkDownload:
|
||||
window->EnableNetworkEvent(aEventMessage);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
NS_WARNING("Enabling an unknown device sensor.");
|
||||
|
|
@ -605,15 +580,6 @@ EventListenerManager::DisableDevice(EventMessage aEventMessage)
|
|||
window->DisableOrientationChangeListener();
|
||||
break;
|
||||
#endif
|
||||
#ifdef MOZ_B2G
|
||||
case eTimeChange:
|
||||
window->DisableTimeChangeNotifications();
|
||||
break;
|
||||
case eNetworkUpload:
|
||||
case eNetworkDownload:
|
||||
window->DisableNetworkEvent(aEventMessage);
|
||||
break;
|
||||
#endif // MOZ_B2G
|
||||
default:
|
||||
NS_WARNING("Disabling an unknown device sensor.");
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -637,22 +637,6 @@ WINDOW_ONLY_EVENT(appinstalled,
|
|||
EventNameType_None,
|
||||
eBasicEventClass)
|
||||
|
||||
|
||||
#ifdef MOZ_B2G
|
||||
WINDOW_ONLY_EVENT(moztimechange,
|
||||
eTimeChange,
|
||||
EventNameType_None,
|
||||
eBasicEventClass)
|
||||
WINDOW_ONLY_EVENT(moznetworkupload,
|
||||
eNetworkUpload,
|
||||
EventNameType_None,
|
||||
eBasicEventClass)
|
||||
WINDOW_ONLY_EVENT(moznetworkdownload,
|
||||
eNetworkDownload,
|
||||
EventNameType_None,
|
||||
eBasicEventClass)
|
||||
#endif // MOZ_B2G
|
||||
|
||||
TOUCH_EVENT(touchstart,
|
||||
eTouchStart,
|
||||
EventNameType_All,
|
||||
|
|
|
|||
|
|
@ -32,10 +32,6 @@ DEFINE_KEYNAME_INTERNAL(PrintableKey, "MozPrintableKey")
|
|||
DEFINE_KEYNAME_INTERNAL(SoftLeft, "MozSoftLeft")
|
||||
DEFINE_KEYNAME_INTERNAL(SoftRight, "MozSoftRight")
|
||||
|
||||
#ifdef MOZ_B2G
|
||||
DEFINE_KEYNAME_INTERNAL(HomeScreen, "MozHomeScreen")
|
||||
#endif // #ifdef MOZ_B2G
|
||||
|
||||
/******************************************************************************
|
||||
* Modifier Keys
|
||||
*****************************************************************************/
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ TouchEvent::PrefEnabled(nsIDocShell* aDocShell)
|
|||
enabled = false;
|
||||
} else {
|
||||
if (sPrefCacheValue == 2) {
|
||||
#if defined(MOZ_B2G) || defined(MOZ_WIDGET_ANDROID)
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
// Touch support is always enabled on B2G and android.
|
||||
enabled = true;
|
||||
#elif defined(XP_WIN) || MOZ_WIDGET_GTK == 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue