Issue #80 - De-unify dom/media part 3

Excluding /dom/media/webrtc for bad template use:
MediaTrackConstraints.cpp/h
MediaEngineCameraVideoSource.cpp and
MediaEngineRemoteVideoSource.cpp
This commit is contained in:
Moonchild 2020-04-22 18:53:58 +00:00 • committed by Roy Tam
commit 5d8031cf76
25 changed files with 43 additions and 14 deletions

View file

@ -22,6 +22,7 @@
#include "AudioChannelService.h" #include "AudioChannelService.h"
#include "AudioDestinationNode.h" #include "AudioDestinationNode.h"
#include "AudioListener.h" #include "AudioListener.h"
#include "AudioNodeStream.h"
#include "AudioStream.h" #include "AudioStream.h"
#include "BiquadFilterNode.h" #include "BiquadFilterNode.h"
#include "ChannelMergerNode.h" #include "ChannelMergerNode.h"

View file

@ -7,6 +7,7 @@
#include "AudioDestinationNode.h" #include "AudioDestinationNode.h"
#include "AlignmentUtils.h" #include "AlignmentUtils.h"
#include "AudioContext.h" #include "AudioContext.h"
#include "mozilla/dom/AudioContextBinding.h"
#include "mozilla/dom/AudioDestinationNodeBinding.h" #include "mozilla/dom/AudioDestinationNodeBinding.h"
#include "mozilla/dom/ScriptSettings.h" #include "mozilla/dom/ScriptSettings.h"
#include "mozilla/Services.h" #include "mozilla/Services.h"

View file

@ -13,6 +13,7 @@
#include "mozilla/PodOperations.h" #include "mozilla/PodOperations.h"
#include "MainThreadUtils.h" #include "MainThreadUtils.h"
#include "MediaStreamGraph.h"
#include "nsTArray.h" #include "nsTArray.h"
#include "math.h" #include "math.h"
#include "WebAudioUtils.h" #include "WebAudioUtils.h"

View file

@ -14,6 +14,7 @@
#include "AlignmentUtils.h" #include "AlignmentUtils.h"
#include "AudioNodeEngineSSE2.h" #include "AudioNodeEngineSSE2.h"
#endif #endif
#include "AudioBlock.h"
namespace mozilla { namespace mozilla {

View file

@ -5,6 +5,7 @@
#include "AudioNodeStream.h" #include "AudioNodeStream.h"
#include "AlignmentUtils.h"
#include "MediaStreamGraphImpl.h" #include "MediaStreamGraphImpl.h"
#include "MediaStreamListener.h" #include "MediaStreamListener.h"
#include "AudioNodeEngine.h" #include "AudioNodeEngine.h"

View file

@ -7,6 +7,8 @@
#include "ConstantSourceNode.h" #include "ConstantSourceNode.h"
#include "AudioDestinationNode.h" #include "AudioDestinationNode.h"
#include "AudioNodeEngine.h"
#include "AudioNodeStream.h"
#include "nsContentUtils.h" #include "nsContentUtils.h"
namespace mozilla { namespace mozilla {

View file

@ -8,6 +8,7 @@
#define DelayBuffer_h_ #define DelayBuffer_h_
#include "nsTArray.h" #include "nsTArray.h"
#include "AudioBlock.h"
#include "AudioSegment.h" #include "AudioSegment.h"
#include "mozilla/dom/AudioNodeBinding.h" // for ChannelInterpretation #include "mozilla/dom/AudioNodeBinding.h" // for ChannelInterpretation

View file

@ -5,7 +5,13 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "IIRFilterNode.h" #include "IIRFilterNode.h"
#include "AlignmentUtils.h"
#include "AudioBlock.h"
#include "AudioNodeEngine.h" #include "AudioNodeEngine.h"
#include "AudioNodeStream.h"
#include "AudioDestinationNode.h"
#include "PlayingRefChangeHandler.h"
#include "mozilla/dom/AudioDestinationNodeBinding.h"
#include "blink/IIRFilter.h" #include "blink/IIRFilter.h"

View file

@ -16,6 +16,7 @@
#include "DecoderTraits.h" #include "DecoderTraits.h"
#include "AudioContext.h" #include "AudioContext.h"
#include "AudioBuffer.h" #include "AudioBuffer.h"
#include "AudioNodeEngine.h"
#include "nsContentUtils.h" #include "nsContentUtils.h"
#include "nsIScriptObjectPrincipal.h" #include "nsIScriptObjectPrincipal.h"
#include "nsIScriptError.h" #include "nsIScriptError.h"

View file

@ -9,7 +9,9 @@
#include "AudioNodeEngine.h" #include "AudioNodeEngine.h"
#include "AudioNodeExternalInputStream.h" #include "AudioNodeExternalInputStream.h"
#include "AudioStreamTrack.h" #include "AudioStreamTrack.h"
#include "nsContentUtils.h"
#include "nsIDocument.h" #include "nsIDocument.h"
#include "nsIScriptError.h"
#include "mozilla/CORSMode.h" #include "mozilla/CORSMode.h"
namespace mozilla { namespace mozilla {

View file

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "WebAudioUtils.h" #include "WebAudioUtils.h"
#include "AudioEventTimeline.h"
#include "AudioNodeStream.h" #include "AudioNodeStream.h"
#include "blink/HRTFDatabaseLoader.h" #include "blink/HRTFDatabaseLoader.h"

View file

@ -75,7 +75,7 @@ EXPORTS.mozilla.dom += [
'WaveShaperNode.h', 'WaveShaperNode.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'AnalyserNode.cpp', 'AnalyserNode.cpp',
'AudioBlock.cpp', 'AudioBlock.cpp',
'AudioBuffer.cpp', 'AudioBuffer.cpp',

View file

@ -6,6 +6,7 @@
#include "MediaEngineRemoteVideoSource.h" #include "MediaEngineRemoteVideoSource.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "Layers.h"
#include "VideoUtils.h" #include "VideoUtils.h"
#include "nsIPrefService.h" #include "nsIPrefService.h"
#include "MediaTrackConstraints.h" #include "MediaTrackConstraints.h"
@ -15,6 +16,8 @@ extern mozilla::LogModule* GetMediaManagerLog();
#define LOG(msg) MOZ_LOG(GetMediaManagerLog(), mozilla::LogLevel::Debug, msg) #define LOG(msg) MOZ_LOG(GetMediaManagerLog(), mozilla::LogLevel::Debug, msg)
#define LOGFRAME(msg) MOZ_LOG(GetMediaManagerLog(), mozilla::LogLevel::Verbose, msg) #define LOGFRAME(msg) MOZ_LOG(GetMediaManagerLog(), mozilla::LogLevel::Verbose, msg)
typedef mozilla::gfx::IntSize IntSize;
namespace mozilla { namespace mozilla {
// These need a definition somewhere because template // These need a definition somewhere because template

View file

@ -29,6 +29,7 @@
namespace mozilla { namespace mozilla {
using namespace mozilla::gfx; using namespace mozilla::gfx;
using namespace mozilla::dom;
NS_IMPL_ISUPPORTS(MediaEngineTabVideoSource, nsIDOMEventListener, nsITimerCallback) NS_IMPL_ISUPPORTS(MediaEngineTabVideoSource, nsIDOMEventListener, nsITimerCallback)

View file

@ -9,6 +9,7 @@
#include "MediaTrackConstraints.h" #include "MediaTrackConstraints.h"
#include "mtransport/runnable_utils.h" #include "mtransport/runnable_utils.h"
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include "nsContentUtils.h"
// scoped_ptr.h uses FF // scoped_ptr.h uses FF
#ifdef FF #ifdef FF

View file

@ -13,6 +13,8 @@
#include "nsStringAPI.h" #include "nsStringAPI.h"
#endif #endif
#include "mozilla/RefCounted.h"
template <class T> class nsCOMPtr; template <class T> class nsCOMPtr;
class nsIIDNService; class nsIIDNService;

View file

@ -31,15 +31,14 @@ if CONFIG['MOZ_WEBRTC']:
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
'MediaEngineCameraVideoSource.cpp', 'MediaEngineCameraVideoSource.cpp',
'MediaEngineRemoteVideoSource.cpp', 'MediaEngineRemoteVideoSource.cpp',
]
SOURCES += [
'MediaEngineTabVideoSource.cpp', 'MediaEngineTabVideoSource.cpp',
'MediaEngineWebRTC.cpp',
'MediaEngineWebRTCAudio.cpp', 'MediaEngineWebRTCAudio.cpp',
'RTCCertificate.cpp', 'RTCCertificate.cpp',
'RTCIdentityProviderRegistrar.cpp', 'RTCIdentityProviderRegistrar.cpp',
] ]
# MediaEngineWebRTC.cpp needs to be built separately.
SOURCES += [
'MediaEngineWebRTC.cpp',
]
LOCAL_INCLUDES += [ LOCAL_INCLUDES += [
'/dom/base', '/dom/base',
'/media/libyuv/include', '/media/libyuv/include',
@ -53,8 +52,10 @@ XPIDL_SOURCES += [
] ]
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
'MediaEngineDefault.cpp',
'MediaTrackConstraints.cpp', 'MediaTrackConstraints.cpp',
]
SOURCES += [
'MediaEngineDefault.cpp',
'PeerIdentity.cpp', 'PeerIdentity.cpp',
] ]

View file

@ -10,6 +10,7 @@
#include "mozilla/ErrorResult.h" #include "mozilla/ErrorResult.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsXPCOMStrings.h" #include "nsXPCOMStrings.h"
#include "SpeechGrammar.h"
#include "SpeechRecognition.h" #include "SpeechRecognition.h"
namespace mozilla { namespace mozilla {

View file

@ -9,6 +9,7 @@
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsTArray.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"

View file

@ -22,6 +22,7 @@
#include "AudioSegment.h" #include "AudioSegment.h"
#include "endpointer.h" #include "endpointer.h"
#include "SpeechGrammar.h"
#include "mozilla/dom/SpeechRecognitionEvent.h" #include "mozilla/dom/SpeechRecognitionEvent.h"
#include "nsContentUtils.h" #include "nsContentUtils.h"
#include "nsIDocument.h" #include "nsIDocument.h"

View file

@ -31,7 +31,7 @@ if CONFIG['MOZ_WEBSPEECH_POCKETSPHINX']:
'PocketSphinxSpeechRecognitionService.h', 'PocketSphinxSpeechRecognitionService.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'endpointer.cc', 'endpointer.cc',
'energy_endpointer.cc', 'energy_endpointer.cc',
'energy_endpointer_params.cc', 'energy_endpointer_params.cc',
@ -45,12 +45,12 @@ UNIFIED_SOURCES += [
] ]
if CONFIG['MOZ_WEBSPEECH_TEST_BACKEND']: if CONFIG['MOZ_WEBSPEECH_TEST_BACKEND']:
UNIFIED_SOURCES += [ SOURCES += [
'test/FakeSpeechRecognitionService.cpp', 'test/FakeSpeechRecognitionService.cpp',
] ]
if CONFIG['MOZ_WEBSPEECH_POCKETSPHINX']: if CONFIG['MOZ_WEBSPEECH_POCKETSPHINX']:
UNIFIED_SOURCES += [ SOURCES += [
'PocketSphinxSpeechRecognitionService.cpp', 'PocketSphinxSpeechRecognitionService.cpp',
] ]

View file

@ -26,7 +26,7 @@ if CONFIG['MOZ_WEBSPEECH']:
'SpeechSynthesisVoice.h', 'SpeechSynthesisVoice.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'ipc/SpeechSynthesisChild.cpp', 'ipc/SpeechSynthesisChild.cpp',
'ipc/SpeechSynthesisParent.cpp', 'ipc/SpeechSynthesisParent.cpp',
'nsSpeechTask.cpp', 'nsSpeechTask.cpp',
@ -37,7 +37,7 @@ if CONFIG['MOZ_WEBSPEECH']:
] ]
if CONFIG['MOZ_WEBSPEECH_TEST_BACKEND']: if CONFIG['MOZ_WEBSPEECH_TEST_BACKEND']:
UNIFIED_SOURCES += [ SOURCES += [
'test/FakeSynthModule.cpp', 'test/FakeSynthModule.cpp',
'test/nsFakeSynthServices.cpp' 'test/nsFakeSynthServices.cpp'
] ]

View file

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [ SOURCES += [
'nsPicoService.cpp', 'nsPicoService.cpp',
'PicoModule.cpp' 'PicoModule.cpp'
] ]

View file

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [ SOURCES += [
'SpeechDispatcherModule.cpp', 'SpeechDispatcherModule.cpp',
'SpeechDispatcherService.cpp' 'SpeechDispatcherService.cpp'
] ]

View file

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [ SOURCES += [
'SapiModule.cpp', 'SapiModule.cpp',
'SapiService.cpp' 'SapiService.cpp'
] ]