зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1382099 - Remove MOZ_WIDGET_GONK from media/, uriloader/, widget, /xpfe/. r=snorp.
--HG-- extra : rebase_source : 75fe5b8320d52c7316ca547f706b64f30250d28c
This commit is contained in:
Родитель
90eaa02ea0
Коммит
ac3e6bddb4
|
@ -103,19 +103,6 @@
|
|||
#define PNG_SEQUENTIAL_READ_SUPPORTED
|
||||
#endif
|
||||
|
||||
/* necessary for boot animation code (Gonk) */
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
#define PNG_bKGD_SUPPORTED
|
||||
#define PNG_UNKNOWN_CHUNKS_SUPPORTED
|
||||
#define PNG_SET_UNKNOWN_CHUNKS_SUPPORTED
|
||||
#define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
||||
#define PNG_EASY_ACCESS_SUPPORTED
|
||||
#define PNG_READ_bKGD_SUPPORTED
|
||||
#define PNG_READ_BGR_SUPPORTED
|
||||
#define PNG_READ_GRAY_TO_RGB_SUPPORTED
|
||||
#define PNG_READ_STRIP_ALPHA_SUPPORTED
|
||||
#endif
|
||||
|
||||
#define PNG_WRITE_SUPPORTED
|
||||
#define PNG_WRITE_APNG_SUPPORTED
|
||||
#define PNG_WRITE_tRNS_SUPPORTED
|
||||
|
|
|
@ -95,9 +95,7 @@ AudioManager::AudioManager()
|
|||
}
|
||||
|
||||
AudioManager::~AudioManager() {
|
||||
#if !defined(MOZ_WIDGET_GONK)
|
||||
ALOGD("~dtor%s", GetThreadInfo().c_str());
|
||||
#endif
|
||||
RTC_DCHECK(thread_checker_.CalledOnValidThread());
|
||||
Close();
|
||||
}
|
||||
|
|
|
@ -562,16 +562,6 @@ static const nsExtraMimeTypeEntry extraMimeEntries[] =
|
|||
{ APPLICATION_OGG, "ogg", "Ogg Video"},
|
||||
{ AUDIO_OGG, "oga", "Ogg Audio" },
|
||||
{ AUDIO_OGG, "opus", "Opus Audio" },
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
{ AUDIO_AMR, "amr", "Adaptive Multi-Rate Audio" },
|
||||
{ AUDIO_FLAC, "flac", "FLAC Audio" },
|
||||
{ VIDEO_AVI, "avi", "Audio Video Interleave" },
|
||||
{ VIDEO_AVI, "divx", "Audio Video Interleave" },
|
||||
{ VIDEO_MPEG_TS, "ts", "MPEG Transport Stream" },
|
||||
{ VIDEO_MPEG_TS, "m2ts", "MPEG-2 Transport Stream" },
|
||||
{ VIDEO_MATROSKA, "mkv", "MATROSKA VIDEO" },
|
||||
{ AUDIO_MATROSKA, "mka", "MATROSKA AUDIO" },
|
||||
#endif
|
||||
{ VIDEO_WEBM, "webm", "Web Media Video" },
|
||||
{ AUDIO_WEBM, "webm", "Web Media Audio" },
|
||||
{ AUDIO_MP3, "mp3", "MPEG Audio" },
|
||||
|
@ -581,13 +571,6 @@ static const nsExtraMimeTypeEntry extraMimeEntries[] =
|
|||
{ AUDIO_WAV, "wav", "Waveform Audio" },
|
||||
{ VIDEO_3GPP, "3gpp,3gp", "3GPP Video" },
|
||||
{ VIDEO_3GPP2,"3g2", "3GPP2 Video" },
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
// The AUDIO_3GPP has to come after the VIDEO_3GPP entry because the Gallery
|
||||
// app on Firefox OS depends on the "3gp" extension mapping to the
|
||||
// "video/3gpp" MIME type.
|
||||
{ AUDIO_3GPP, "3gpp,3gp", "3GPP Audio" },
|
||||
{ AUDIO_3GPP2, "3g2", "3GPP2 Audio" },
|
||||
#endif
|
||||
{ AUDIO_MIDI, "mid", "Standard MIDI Audio" }
|
||||
};
|
||||
|
||||
|
|
|
@ -385,7 +385,7 @@ NS_EVENT_MESSAGE(eDeviceMotion)
|
|||
NS_EVENT_MESSAGE(eDeviceProximity)
|
||||
NS_EVENT_MESSAGE(eUserProximity)
|
||||
NS_EVENT_MESSAGE(eDeviceLight)
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK)
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
NS_EVENT_MESSAGE(eOrientationChange)
|
||||
#endif
|
||||
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
using namespace mozilla;
|
||||
using namespace mozilla::widget;
|
||||
|
||||
#ifndef MOZ_WIDGET_GONK
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsClipboardProxy)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsColorPickerProxy)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDragServiceProxy)
|
||||
|
@ -67,5 +65,3 @@ static const mozilla::Module kWidgetModule = {
|
|||
};
|
||||
|
||||
NSMODULE_DEFN(nsContentProcessWidgetModule) = &kWidgetModule;
|
||||
|
||||
#endif /* MOZ_WIDGET_GONK */
|
||||
|
|
|
@ -732,13 +732,6 @@ nsAppShellService::JustCreateTopWindow(nsIXULWindow *aParent,
|
|||
|
||||
widgetInitData.mRTL = LocaleService::GetInstance()->IsAppLocaleRTL();
|
||||
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
// B2G multi-screen support. Screen ID is for differentiating screens of
|
||||
// windows, and due to the hardware limitation, it is platform-specific for
|
||||
// now, which align with the value of display type defined in HWC.
|
||||
widgetInitData.mScreenId = mScreenId;
|
||||
#endif
|
||||
|
||||
nsresult rv = window->Initialize(parent, center ? aParent : nullptr,
|
||||
aUrl, aInitialWidth, aInitialHeight,
|
||||
aIsHiddenWindow, aOpeningTab,
|
||||
|
|
Загрузка…
Ссылка в новой задаче