De-unify dom/.

master
Fedor 2020-05-07 14:45:49 +03:00
parent a237454b5f
commit d1b8dc1081
337 changed files with 806 additions and 351 deletions

View File

@ -7,6 +7,8 @@
#ifndef mozilla_AnimationComparator_h #ifndef mozilla_AnimationComparator_h
#define mozilla_AnimationComparator_h #define mozilla_AnimationComparator_h
#include "mozilla/dom/Animation.h"
namespace mozilla { namespace mozilla {
// Although this file is called AnimationComparator, we don't actually // Although this file is called AnimationComparator, we don't actually

View File

@ -6,6 +6,7 @@
#include "mozilla/dom/AnimationEffectReadOnly.h" #include "mozilla/dom/AnimationEffectReadOnly.h"
#include "mozilla/dom/AnimationEffectReadOnlyBinding.h" #include "mozilla/dom/AnimationEffectReadOnlyBinding.h"
#include "mozilla/dom/Animation.h"
#include "mozilla/AnimationUtils.h" #include "mozilla/AnimationUtils.h"
#include "mozilla/FloatingPoint.h" #include "mozilla/FloatingPoint.h"

View File

@ -9,6 +9,9 @@
#include <initializer_list> #include <initializer_list>
#include "mozilla/Maybe.h"
#include "nsTArray.h"
class nsXPIDLString; class nsXPIDLString;
namespace mozilla { namespace mozilla {

View File

@ -7,6 +7,7 @@
#include "mozilla/dom/CSSPseudoElement.h" #include "mozilla/dom/CSSPseudoElement.h"
#include "mozilla/dom/CSSPseudoElementBinding.h" #include "mozilla/dom/CSSPseudoElementBinding.h"
#include "mozilla/dom/Element.h" #include "mozilla/dom/Element.h"
#include "mozilla/dom/KeyframeEffectBinding.h" // for ElementOrCSSPseudoElement class
#include "mozilla/AnimationComparator.h" #include "mozilla/AnimationComparator.h"
namespace mozilla { namespace mozilla {

View File

@ -11,6 +11,7 @@
#include "mozilla/dom/AnimationEffectTiming.h" #include "mozilla/dom/AnimationEffectTiming.h"
#include "mozilla/dom/KeyframeEffectBinding.h" #include "mozilla/dom/KeyframeEffectBinding.h"
#include "mozilla/KeyframeUtils.h" #include "mozilla/KeyframeUtils.h"
#include "nsContentUtils.h"
#include "nsDOMMutationObserver.h" // For nsAutoAnimationMutationBatch #include "nsDOMMutationObserver.h" // For nsAutoAnimationMutationBatch
#include "nsIScriptError.h" #include "nsIScriptError.h"

View File

@ -6,6 +6,7 @@
#include "mozilla/dom/KeyframeEffectReadOnly.h" #include "mozilla/dom/KeyframeEffectReadOnly.h"
#include "mozilla/dom/Animation.h"
#include "mozilla/dom/KeyframeAnimationOptionsBinding.h" #include "mozilla/dom/KeyframeAnimationOptionsBinding.h"
// For UnrestrictedDoubleOrKeyframeAnimationOptions; // For UnrestrictedDoubleOrKeyframeAnimationOptions;
#include "mozilla/dom/CSSPseudoElement.h" #include "mozilla/dom/CSSPseudoElement.h"
@ -25,6 +26,7 @@
#include "nsCSSPseudoElements.h" // For CSSPseudoElementType #include "nsCSSPseudoElements.h" // For CSSPseudoElementType
#include "nsIPresShell.h" #include "nsIPresShell.h"
#include "nsIScriptError.h" #include "nsIScriptError.h"
#include "nsRefreshDriver.h"
namespace mozilla { namespace mozilla {

View File

@ -37,6 +37,11 @@ EXPORTS.mozilla += [
] ]
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
'KeyframeEffect.cpp',
'KeyframeEffectReadOnly.cpp',
]
SOURCES += [
'Animation.cpp', 'Animation.cpp',
'AnimationEffectReadOnly.cpp', 'AnimationEffectReadOnly.cpp',
'AnimationEffectTiming.cpp', 'AnimationEffectTiming.cpp',
@ -50,9 +55,7 @@ UNIFIED_SOURCES += [
'DocumentTimeline.cpp', 'DocumentTimeline.cpp',
'EffectCompositor.cpp', 'EffectCompositor.cpp',
'EffectSet.cpp', 'EffectSet.cpp',
'KeyframeEffect.cpp',
'KeyframeEffectParams.cpp', 'KeyframeEffectParams.cpp',
'KeyframeEffectReadOnly.cpp',
'KeyframeUtils.cpp', 'KeyframeUtils.cpp',
'PendingAnimationTracker.cpp', 'PendingAnimationTracker.cpp',
'TimingParams.cpp', 'TimingParams.cpp',

View File

@ -8,10 +8,12 @@
#include "mozilla/EventDispatcher.h" #include "mozilla/EventDispatcher.h"
#include "mozilla/dom/ArchiveRequestBinding.h" #include "mozilla/dom/ArchiveRequestBinding.h"
#include "mozilla/dom/File.h"
#include "mozilla/dom/ScriptSettings.h" #include "mozilla/dom/ScriptSettings.h"
#include "nsContentUtils.h" #include "nsContentUtils.h"
using namespace mozilla; using namespace mozilla;
using namespace mozilla::dom;
USING_ARCHIVEREADER_NAMESPACE USING_ARCHIVEREADER_NAMESPACE

View File

@ -12,6 +12,7 @@
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/dom/File.h" #include "mozilla/dom/File.h"
using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;
USING_ARCHIVEREADER_NAMESPACE USING_ARCHIVEREADER_NAMESPACE

View File

@ -13,7 +13,7 @@ EXPORTS.mozilla.dom.archivereader += [
'ArchiveZipFile.h', 'ArchiveZipFile.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'ArchiveEvent.cpp', 'ArchiveEvent.cpp',
'ArchiveReader.cpp', 'ArchiveReader.cpp',
'ArchiveRequest.cpp', 'ArchiveRequest.cpp',

View File

@ -16,14 +16,12 @@ EXPORTS += [
'AudioChannelService.h', 'AudioChannelService.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'AudioChannelAgent.cpp', 'AudioChannelAgent.cpp',
'AudioChannelService.cpp', 'AudioChannelService.cpp',
] ]
LOCAL_INCLUDES += [ LOCAL_INCLUDES += ['/dom/base/']
'/dom/base/',
]
include('/ipc/chromium/chromium-config.mozbuild') include('/ipc/chromium/chromium-config.mozbuild')

View File

@ -8,6 +8,9 @@
#define mozilla_dom_BlobSet_h #define mozilla_dom_BlobSet_h
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "jsfriendapi.h"
#include "nsString.h"
#include "nsTArray.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -7,6 +7,8 @@
#ifndef CORSMode_h_ #ifndef CORSMode_h_
#define CORSMode_h_ #define CORSMode_h_
#include <stdint.h>
namespace mozilla { namespace mozilla {
enum CORSMode : uint8_t { enum CORSMode : uint8_t {

View File

@ -7,6 +7,7 @@
#include "mozilla/Base64.h" #include "mozilla/Base64.h"
#include "mozilla/BasePrincipal.h" #include "mozilla/BasePrincipal.h"
#include "jsfriendapi.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -10,6 +10,7 @@
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/ChromeUtilsBinding.h" #include "mozilla/dom/ChromeUtilsBinding.h"
#include "mozilla/dom/ThreadSafeChromeUtilsBinding.h" #include "mozilla/dom/ThreadSafeChromeUtilsBinding.h"
#include "mozilla/dom/UnionTypes.h"
#include "mozilla/ErrorResult.h" #include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {

View File

@ -8,8 +8,11 @@
#include "mozilla/CycleCollectedJSContext.h" #include "mozilla/CycleCollectedJSContext.h"
#include "mozilla/dom/CustomElementRegistryBinding.h" #include "mozilla/dom/CustomElementRegistryBinding.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/HTMLElementBinding.h" #include "mozilla/dom/HTMLElementBinding.h"
#include "mozilla/dom/WebComponentsBinding.h" #include "mozilla/dom/WebComponentsBinding.h"
#include "mozilla/dom/Promise.h"
#include "nsContentUtils.h"
#include "mozilla/dom/DocGroup.h" #include "mozilla/dom/DocGroup.h"
#include "nsIParserService.h" #include "nsIParserService.h"
#include "jsapi.h" #include "jsapi.h"

View File

@ -6,6 +6,7 @@
#include "mozilla/StaticPtr.h" #include "mozilla/StaticPtr.h"
#include "mozilla/ClearOnShutdown.h" #include "mozilla/ClearOnShutdown.h"
#include "nsIDocShell.h" #include "nsIDocShell.h"
#include "nsNetCID.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -7,6 +7,7 @@
#ifndef DocGroup_h #ifndef DocGroup_h
#define DocGroup_h #define DocGroup_h
#include "nsIDocument.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
#include "nsIPrincipal.h" #include "nsIPrincipal.h"

View File

@ -7,6 +7,8 @@
#ifndef GroupedSHistory_h #ifndef GroupedSHistory_h
#define GroupedSHistory_h #define GroupedSHistory_h
#include "nsCOMArray.h"
#include "nsCycleCollectionParticipant.h" // NS_DECL_CYCLE_*
#include "nsIFrameLoader.h" #include "nsIFrameLoader.h"
#include "nsIGroupedSHistory.h" #include "nsIGroupedSHistory.h"
#include "nsIPartialSHistory.h" #include "nsIPartialSHistory.h"

View File

@ -8,6 +8,8 @@
* animating */ * animating */
#include "ImageTracker.h" #include "ImageTracker.h"
#include "mozilla/Preferences.h"
#include "nsAppRunner.h" // for XRE_IsContentProcess
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -10,6 +10,7 @@
#ifndef mozilla_dom_ImageTracker #ifndef mozilla_dom_ImageTracker
#define mozilla_dom_ImageTracker #define mozilla_dom_ImageTracker
#include "imgIRequest.h"
#include "nsDataHashtable.h" #include "nsDataHashtable.h"
#include "nsHashKeys.h" #include "nsHashKeys.h"

View File

@ -7,6 +7,9 @@
#ifndef mozilla_dom_MutableBlobStorage_h #ifndef mozilla_dom_MutableBlobStorage_h
#define mozilla_dom_MutableBlobStorage_h #define mozilla_dom_MutableBlobStorage_h
#include "nsCycleCollectionParticipant.h"
#include "nsThreadUtils.h"
#include "nsProxyRelease.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "prio.h" #include "prio.h"

View File

@ -5,6 +5,7 @@
#include "MutableBlobStreamListener.h" #include "MutableBlobStreamListener.h"
#include "MutableBlobStorage.h" #include "MutableBlobStorage.h"
#include "nsIInputStream.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -15,6 +15,7 @@
#include "mozilla/ArrayUtils.h" #include "mozilla/ArrayUtils.h"
#include "mozilla/Likely.h" #include "mozilla/Likely.h"
#include "mozilla/Unused.h"
#include "nsNodeInfoManager.h" #include "nsNodeInfoManager.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"

View File

@ -8,6 +8,7 @@
#define mozilla_dom_Pose_h #define mozilla_dom_Pose_h
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -7,10 +7,12 @@
#ifndef TabGroup_h #ifndef TabGroup_h
#define TabGroup_h #define TabGroup_h
#include "nsIDocument.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
#include "nsIPrincipal.h" #include "nsIPrincipal.h"
#include "nsTHashtable.h" #include "nsTHashtable.h"
#include "nsHashKeys.h"
#include "nsString.h" #include "nsString.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"

View File

@ -10,6 +10,7 @@
#include "nsIChannel.h" #include "nsIChannel.h"
#include "nsIServiceManager.h" #include "nsIServiceManager.h"
#include "nsIHttpChannelInternal.h" #include "nsIHttpChannelInternal.h"
#include "nsPIDOMWindow.h"
#include "nsIDOMWindow.h" #include "nsIDOMWindow.h"
#include "nsILoadContext.h" #include "nsILoadContext.h"
#include "nsIPrincipal.h" #include "nsIPrincipal.h"

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 "TimeoutHandler.h" #include "TimeoutHandler.h"
#include "nsJSUtils.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -7,9 +7,11 @@
#ifndef mozilla_dom_timeout_handler_h #ifndef mozilla_dom_timeout_handler_h
#define mozilla_dom_timeout_handler_h #define mozilla_dom_timeout_handler_h
#include "nsCycleCollectionParticipant.h" // NS_DECL_CYCLE_*
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsITimeoutHandler.h" #include "nsITimeoutHandler.h"
#include "nsString.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -7,6 +7,8 @@
#ifndef TimerClamping_h___ #ifndef TimerClamping_h___
#define TimerClamping_h___ #define TimerClamping_h___
#include <math.h>
namespace mozilla { namespace mozilla {
class TimerClamping class TimerClamping

View File

@ -225,7 +225,7 @@ EXPORTS.mozilla.dom += [
'WindowOrientationObserver.h', 'WindowOrientationObserver.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'AnonymousContent.cpp', 'AnonymousContent.cpp',
'Attr.cpp', 'Attr.cpp',
'BarProps.cpp', 'BarProps.cpp',
@ -375,7 +375,7 @@ UNIFIED_SOURCES += [
] ]
if CONFIG['MOZ_WEBRTC']: if CONFIG['MOZ_WEBRTC']:
UNIFIED_SOURCES += [ SOURCES += [
'nsDOMDataChannel.cpp', 'nsDOMDataChannel.cpp',
] ]

View File

@ -7,6 +7,7 @@
#include "nsDOMMutationObserver.h" #include "nsDOMMutationObserver.h"
#include "mozilla/AnimationTarget.h" #include "mozilla/AnimationTarget.h"
#include "mozilla/CycleCollectedJSContext.h"
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "mozilla/OwningNonNull.h" #include "mozilla/OwningNonNull.h"
@ -29,6 +30,9 @@ using mozilla::dom::TreeOrderComparator;
using mozilla::dom::Animation; using mozilla::dom::Animation;
using mozilla::dom::Element; using mozilla::dom::Element;
using namespace mozilla;
using namespace mozilla::dom;
AutoTArray<RefPtr<nsDOMMutationObserver>, 4>* AutoTArray<RefPtr<nsDOMMutationObserver>, 4>*
nsDOMMutationObserver::sScheduledMutationObservers = nullptr; nsDOMMutationObserver::sScheduledMutationObservers = nullptr;

View File

@ -57,6 +57,7 @@
#include "mozilla/dom/ErrorEvent.h" #include "mozilla/dom/ErrorEvent.h"
#include "nsAXPCNativeCallContext.h" #include "nsAXPCNativeCallContext.h"
#include "mozilla/CycleCollectedJSContext.h" #include "mozilla/CycleCollectedJSContext.h"
#include "mozilla/Telemetry.h"
#include "nsJSPrincipals.h" #include "nsJSPrincipals.h"

View File

@ -31,6 +31,7 @@
#include "mozilla/dom/Element.h" #include "mozilla/dom/Element.h"
#include "mozilla/dom/ScriptSettings.h" #include "mozilla/dom/ScriptSettings.h"
using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;
bool bool

View File

@ -8,20 +8,16 @@ EXPORTS.mozilla.dom += [
'BroadcastChannel.h', 'BroadcastChannel.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'BroadcastChannel.cpp', 'BroadcastChannel.cpp',
'BroadcastChannelChild.cpp', 'BroadcastChannelChild.cpp',
'BroadcastChannelParent.cpp', 'BroadcastChannelParent.cpp',
'BroadcastChannelService.cpp', 'BroadcastChannelService.cpp',
] ]
IPDL_SOURCES += [ IPDL_SOURCES += ['PBroadcastChannel.ipdl']
'PBroadcastChannel.ipdl',
]
LOCAL_INCLUDES += [ LOCAL_INCLUDES += ['../workers']
'../workers',
]
MOCHITEST_MANIFESTS += ['tests/mochitest.ini'] MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
BROWSER_CHROME_MANIFESTS += ['tests/browser.ini'] BROWSER_CHROME_MANIFESTS += ['tests/browser.ini']

View File

@ -12,6 +12,7 @@
#include "mozilla/dom/cache/SavedTypes.h" #include "mozilla/dom/cache/SavedTypes.h"
#include "mozilla/ipc/FileDescriptorSetParent.h" #include "mozilla/ipc/FileDescriptorSetParent.h"
#include "mozilla/ipc/InputStreamUtils.h" #include "mozilla/ipc/InputStreamUtils.h"
#include "mozilla/ipc/IPCStreamUtils.h"
#include "mozilla/ipc/SendStream.h" #include "mozilla/ipc/SendStream.h"
namespace mozilla { namespace mozilla {

View File

@ -7,6 +7,7 @@
#include "mozilla/dom/cache/CacheStorage.h" #include "mozilla/dom/cache/CacheStorage.h"
#include "mozilla/Unused.h" #include "mozilla/Unused.h"
#include "mozilla/dom/CacheBinding.h"
#include "mozilla/dom/CacheStorageBinding.h" #include "mozilla/dom/CacheStorageBinding.h"
#include "mozilla/dom/Promise.h" #include "mozilla/dom/Promise.h"
#include "mozilla/dom/Response.h" #include "mozilla/dom/Response.h"
@ -29,6 +30,8 @@
#include "nsURLParsers.h" #include "nsURLParsers.h"
#include "WorkerPrivate.h" #include "WorkerPrivate.h"
using namespace mozilla::dom;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
namespace cache { namespace cache {

View File

@ -11,6 +11,7 @@
#include "mozilla/dom/cache/CacheTypes.h" #include "mozilla/dom/cache/CacheTypes.h"
#include "mozilla/dom/cache/ReadStream.h" #include "mozilla/dom/cache/ReadStream.h"
#include "mozilla/ipc/FileDescriptorSetChild.h" #include "mozilla/ipc/FileDescriptorSetChild.h"
#include "mozilla/ipc/IPCStreamUtils.h"
#include "mozilla/ipc/PBackgroundChild.h" #include "mozilla/ipc/PBackgroundChild.h"
#include "mozilla/ipc/PFileDescriptorSetChild.h" #include "mozilla/ipc/PFileDescriptorSetChild.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"

View File

@ -11,6 +11,7 @@
#include "mozilla/dom/cache/ReadStream.h" #include "mozilla/dom/cache/ReadStream.h"
#include "mozilla/dom/cache/StreamList.h" #include "mozilla/dom/cache/StreamList.h"
#include "mozilla/ipc/FileDescriptorSetParent.h" #include "mozilla/ipc/FileDescriptorSetParent.h"
#include "mozilla/ipc/IPCStreamUtils.h"
#include "mozilla/ipc/PBackgroundParent.h" #include "mozilla/ipc/PBackgroundParent.h"
#include "mozilla/ipc/PFileDescriptorSetParent.h" #include "mozilla/ipc/PFileDescriptorSetParent.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
@ -20,6 +21,7 @@ namespace dom {
namespace cache { namespace cache {
using mozilla::dom::OptionalFileDescriptorSet; using mozilla::dom::OptionalFileDescriptorSet;
using mozilla::ipc::AutoIPCStream;
using mozilla::ipc::FileDescriptor; using mozilla::ipc::FileDescriptor;
using mozilla::ipc::FileDescriptorSetParent; using mozilla::ipc::FileDescriptorSetParent;
using mozilla::ipc::PFileDescriptorSetParent; using mozilla::ipc::PFileDescriptorSetParent;

View File

@ -12,9 +12,12 @@
#include "nsID.h" #include "nsID.h"
#include "nsIInputStream.h" #include "nsIInputStream.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "nsTArrayForwardDeclare.h" #include "nsTArrayForwardDeclare.h"
using namespace mozilla;
namespace mozilla { namespace mozilla {
namespace ipc { namespace ipc {
class AutoIPCStream; class AutoIPCStream;

View File

@ -14,6 +14,7 @@
#include "mozilla/dom/cache/CacheTypes.h" #include "mozilla/dom/cache/CacheTypes.h"
#include "mozilla/dom/cache/ReadStream.h" #include "mozilla/dom/cache/ReadStream.h"
#include "mozilla/ipc/BackgroundChild.h" #include "mozilla/ipc/BackgroundChild.h"
#include "mozilla/ipc/IPCStreamUtils.h"
#include "mozilla/ipc/PBackgroundChild.h" #include "mozilla/ipc/PBackgroundChild.h"
#include "mozilla/ipc/PFileDescriptorSetChild.h" #include "mozilla/ipc/PFileDescriptorSetChild.h"
#include "mozilla/ipc/InputStreamUtils.h" #include "mozilla/ipc/InputStreamUtils.h"

2
dom/cache/moz.build vendored
View File

@ -38,7 +38,7 @@ EXPORTS.mozilla.dom.cache += [
'TypeUtils.h', 'TypeUtils.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'Action.cpp', 'Action.cpp',
'ActorChild.cpp', 'ActorChild.cpp',
'AutoUtils.cpp', 'AutoUtils.cpp',

View File

@ -7,6 +7,7 @@
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include "nsIImageLoadingContent.h" #include "nsIImageLoadingContent.h"
#include "nsExpirationTracker.h" #include "nsExpirationTracker.h"
#include "imgIContainer.h"
#include "imgIRequest.h" #include "imgIRequest.h"
#include "mozilla/dom/Element.h" #include "mozilla/dom/Element.h"
#include "nsTHashtable.h" #include "nsTHashtable.h"

View File

@ -4,6 +4,8 @@
* 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 "CanvasRenderingContextHelper.h" #include "CanvasRenderingContextHelper.h"
#include "CanvasUtils.h"
#include "ImageBitmapRenderingContext.h" #include "ImageBitmapRenderingContext.h"
#include "ImageEncoder.h" #include "ImageEncoder.h"
#include "mozilla/dom/CanvasRenderingContext2D.h" #include "mozilla/dom/CanvasRenderingContext2D.h"

View File

@ -5,19 +5,29 @@
* 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 "mozilla/dom/ImageBitmap.h" #include "mozilla/dom/ImageBitmap.h"
#include "mozilla/CheckedInt.h" #include "mozilla/CheckedInt.h"
#include "mozilla/dom/File.h" // for Blob
#include "mozilla/dom/HTMLImageElement.h"
#include "mozilla/dom/ImageBitmapBinding.h" #include "mozilla/dom/ImageBitmapBinding.h"
#include "mozilla/dom/Promise.h" #include "mozilla/dom/Promise.h"
#include "mozilla/dom/StructuredCloneTags.h" #include "mozilla/dom/StructuredCloneTags.h"
#include "mozilla/dom/UnionTypes.h" // for ArrayBufferViewOrArrayBuffer
#include "mozilla/dom/WorkerPrivate.h" #include "mozilla/dom/WorkerPrivate.h"
#include "mozilla/dom/WorkerRunnable.h" #include "mozilla/dom/WorkerRunnable.h"
#include "mozilla/gfx/2D.h" #include "CanvasRenderingContext2D.h"
#include "gfxUtils.h"
#include "ImageBitmapColorUtils.h" #include "ImageBitmapColorUtils.h"
#include "ImageBitmapUtils.h" #include "ImageBitmapUtils.h"
#include "ImageData.h"
#include "ImageLayers.h"
#include "ImageUtils.h" #include "ImageUtils.h"
#include "imgTools.h" #include "imgTools.h"
#include "libyuv.h" #include "libyuv.h"
#include "nsLayoutUtils.h"
#include "OffscreenCanvas.h"
using namespace mozilla::dom;
using namespace mozilla::gfx; using namespace mozilla::gfx;
using namespace mozilla::layers; using namespace mozilla::layers;

View File

@ -13,7 +13,9 @@
#include "mozilla/gfx/Rect.h" #include "mozilla/gfx/Rect.h"
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "mozilla/UniquePtr.h" #include "mozilla/UniquePtr.h"
#include "CanvasRenderingContextHelper.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsIGlobalObject.h"
struct JSContext; struct JSContext;
struct JSStructuredCloneReader; struct JSStructuredCloneReader;

View File

@ -6,6 +6,9 @@
#include "ImageBitmapColorUtils.h" #include "ImageBitmapColorUtils.h"
#include "js/LegacyIntTypes.h"
#include <cmath>
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -4,9 +4,19 @@
* 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 "ImageBitmapRenderingContext.h" #include "ImageBitmapRenderingContext.h"
#include "mozilla/dom/ImageBitmapRenderingContextBinding.h" #include "mozilla/dom/ImageBitmapRenderingContextBinding.h"
#include "mozilla/gfx/2D.h"
#include "mozilla/gfx/DataSurfaceHelpers.h"
#include "ImageBitmap.h"
#include "ImageContainer.h" #include "ImageContainer.h"
#include "ImageEncoder.h"
#include "ImageLayers.h" #include "ImageLayers.h"
#include "imgIEncoder.h"
#include "Layers.h"
using namespace mozilla::gfx;
using namespace mozilla::layers;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -7,6 +7,7 @@
#ifndef mozilla_dom_ImageBitmapUtils_h #ifndef mozilla_dom_ImageBitmapUtils_h
#define mozilla_dom_ImageBitmapUtils_h #define mozilla_dom_ImageBitmapUtils_h
#include "ImageBitmap.h"
#include "mozilla/UniquePtr.h" #include "mozilla/UniquePtr.h"
#include "nsTArrayForwardDeclare.h" #include "nsTArrayForwardDeclare.h"

View File

@ -6,6 +6,9 @@
#include "OffscreenCanvas.h" #include "OffscreenCanvas.h"
#include "mozilla/dom/File.h" // for Blob
#include "mozilla/dom/ImageEncoder.h"
#include "mozilla/dom/Promise.h"
#include "mozilla/dom/OffscreenCanvasBinding.h" #include "mozilla/dom/OffscreenCanvasBinding.h"
#include "mozilla/dom/WorkerPrivate.h" #include "mozilla/dom/WorkerPrivate.h"
#include "mozilla/dom/WorkerScope.h" #include "mozilla/dom/WorkerScope.h"
@ -15,10 +18,15 @@
#include "mozilla/Telemetry.h" #include "mozilla/Telemetry.h"
#include "CanvasRenderingContext2D.h" #include "CanvasRenderingContext2D.h"
#include "CanvasUtils.h" #include "CanvasUtils.h"
#include "GLContext.h"
#include "GLScreenBuffer.h" #include "GLScreenBuffer.h"
#include "ImageBitmap.h"
#include "WebGL1Context.h" #include "WebGL1Context.h"
#include "WebGL2Context.h" #include "WebGL2Context.h"
using namespace mozilla::layers;
using namespace mozilla::dom::workers;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -11,6 +11,7 @@
#include "WebGLBuffer.h" #include "WebGLBuffer.h"
#include "WebGLContext.h" #include "WebGLContext.h"
#include "WebGLProgram.h" #include "WebGLProgram.h"
#include "WebGLTransformFeedback.h"
#include "WebGLUniformLocation.h" #include "WebGLUniformLocation.h"
#include "WebGLVertexArray.h" #include "WebGLVertexArray.h"
#include "WebGLVertexAttribData.h" #include "WebGLVertexAttribData.h"

View File

@ -7,6 +7,7 @@
#include "GLContext.h" #include "GLContext.h"
#include "WebGLBuffer.h" #include "WebGLBuffer.h"
#include "WebGLTransformFeedback.h"
#include "WebGLVertexArray.h" #include "WebGLVertexArray.h"
#include "mozilla/CheckedInt.h" #include "mozilla/CheckedInt.h"

View File

@ -7,6 +7,7 @@
#include "GLContext.h" #include "GLContext.h"
#include "mozilla/CheckedInt.h" #include "mozilla/CheckedInt.h"
#include "WebGL2Context.h"
#include "WebGLBuffer.h" #include "WebGLBuffer.h"
#include "WebGLFramebuffer.h" #include "WebGLFramebuffer.h"
#include "WebGLProgram.h" #include "WebGLProgram.h"

View File

@ -6,6 +6,7 @@
#include "WebGLExtensions.h" #include "WebGLExtensions.h"
#include "mozilla/dom/WebGLRenderingContextBinding.h" #include "mozilla/dom/WebGLRenderingContextBinding.h"
#include "GLContext.h"
#include "WebGLContext.h" #include "WebGLContext.h"
#include "WebGLContextUtils.h" #include "WebGLContextUtils.h"

View File

@ -8,7 +8,7 @@
#include "mozilla/AlreadyAddRefed.h" #include "mozilla/AlreadyAddRefed.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "WebGLObjectModel.h" #include "WebGLContext.h"
#include "WebGLTypes.h" #include "WebGLTypes.h"
namespace mozilla { namespace mozilla {

View File

@ -12,7 +12,7 @@
#include "mozilla/WeakPtr.h" #include "mozilla/WeakPtr.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "WebGLObjectModel.h" #include "WebGLContext.h"
#include "WebGLRenderbuffer.h" #include "WebGLRenderbuffer.h"
#include "WebGLStrongTypes.h" #include "WebGLStrongTypes.h"
#include "WebGLTexture.h" #include "WebGLTexture.h"

View File

@ -15,7 +15,6 @@ namespace mozilla {
template<typename> class LinkedList; template<typename> class LinkedList;
class WebGLContext; class WebGLContext;
//// ////
// This class is a mixin for objects that are tied to a specific // This class is a mixin for objects that are tied to a specific

View File

@ -8,6 +8,7 @@
#include "mozilla/LinkedList.h" #include "mozilla/LinkedList.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "WebGLContext.h"
#include "WebGLObjectModel.h" #include "WebGLObjectModel.h"
#include "WebGLStrongTypes.h" #include "WebGLStrongTypes.h"

View File

@ -6,8 +6,11 @@
#ifndef WEBGL_TRANSFORM_FEEDBACK_H_ #ifndef WEBGL_TRANSFORM_FEEDBACK_H_
#define WEBGL_TRANSFORM_FEEDBACK_H_ #define WEBGL_TRANSFORM_FEEDBACK_H_
#include <vector>
#include "mozilla/LinkedList.h" #include "mozilla/LinkedList.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "WebGLBuffer.h"
#include "WebGLContext.h"
#include "WebGLObjectModel.h" #include "WebGLObjectModel.h"
namespace mozilla { namespace mozilla {

View File

@ -7,6 +7,7 @@
#include "GLContext.h" #include "GLContext.h"
#include "WebGLBuffer.h" #include "WebGLBuffer.h"
#include "WebGLContext.h"
namespace mozilla { namespace mozilla {

View File

@ -7,6 +7,7 @@
#define WEBGL_VERTEX_ATTRIB_DATA_H_ #define WEBGL_VERTEX_ATTRIB_DATA_H_
#include "GLDefs.h" #include "GLDefs.h"
#include "WebGLBuffer.h"
#include "WebGLObjectModel.h" #include "WebGLObjectModel.h"
namespace mozilla { namespace mozilla {

View File

@ -42,7 +42,7 @@ EXPORTS.mozilla.dom += [
] ]
# Canvas 2D and common sources # Canvas 2D and common sources
UNIFIED_SOURCES += [ SOURCES += [
'CanvasImageCache.cpp', 'CanvasImageCache.cpp',
'CanvasRenderingContext2D.cpp', 'CanvasRenderingContext2D.cpp',
'CanvasRenderingContextHelper.cpp', 'CanvasRenderingContextHelper.cpp',
@ -60,7 +60,7 @@ SOURCES += [
] ]
# WebGL Sources # WebGL Sources
UNIFIED_SOURCES += [ SOURCES += [
'TexUnpackBlob.cpp', 'TexUnpackBlob.cpp',
'WebGL1Context.cpp', 'WebGL1Context.cpp',
'WebGL1ContextUniforms.cpp', 'WebGL1ContextUniforms.cpp',

View File

@ -22,7 +22,7 @@ EXPORTS.mozilla.dom += [
'Console.h', 'Console.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'Console.cpp', 'Console.cpp',
'ConsoleReportCollector.cpp', 'ConsoleReportCollector.cpp',
] ]

View File

@ -9,6 +9,9 @@
#include "mozilla/Services.h" #include "mozilla/Services.h"
#include "mozilla/StaticPtr.h" #include "mozilla/StaticPtr.h"
#include "nsComponentManagerUtils.h" #include "nsComponentManagerUtils.h"
#include "nsContentUtils.h"
#include "nsNSSComponent.h"
#include "nsString.h"
#include "nsXPCOMCIDInternal.h" #include "nsXPCOMCIDInternal.h"
#include "nsXPCOMPrivate.h" #include "nsXPCOMPrivate.h"
#include "nsIObserverService.h" #include "nsIObserverService.h"

View File

@ -7,6 +7,8 @@
#ifndef mozilla_dom_WebCryptoThreadPool_h #ifndef mozilla_dom_WebCryptoThreadPool_h
#define mozilla_dom_WebCryptoThreadPool_h #define mozilla_dom_WebCryptoThreadPool_h
#include "mozilla/Mutex.h"
#include "nsIObserver.h"
#include "nsIObserverService.h" #include "nsIObserverService.h"
#include "nsIThreadPool.h" #include "nsIThreadPool.h"

View File

@ -13,7 +13,7 @@ EXPORTS.mozilla.dom += [
'WebCryptoThreadPool.h' 'WebCryptoThreadPool.h'
] ]
UNIFIED_SOURCES += [ SOURCES += [
'CryptoBuffer.cpp', 'CryptoBuffer.cpp',
'CryptoKey.cpp', 'CryptoKey.cpp',
'KeyAlgorithmProxy.cpp', 'KeyAlgorithmProxy.cpp',

View File

@ -11,7 +11,7 @@ EXPORTS.mozilla.dom += [
'TextEncoder.h', 'TextEncoder.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'EncodingUtils.cpp', 'EncodingUtils.cpp',
'FallbackEncoding.cpp', 'FallbackEncoding.cpp',
'TextDecoder.cpp', 'TextDecoder.cpp',
@ -19,9 +19,8 @@ UNIFIED_SOURCES += [
] ]
FINAL_LIBRARY = 'xul' FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'/intl/locale', LOCAL_INCLUDES += ['/intl/locale']
]
props2arrays = '/intl/locale/props2arrays.py' props2arrays = '/intl/locale/props2arrays.py'
prefixes = ( prefixes = (

View File

@ -13,6 +13,7 @@
#include "mozilla/EventDispatcher.h" #include "mozilla/EventDispatcher.h"
#include "mozilla/EventListenerManager.h" #include "mozilla/EventListenerManager.h"
#include "mozilla/Likely.h" #include "mozilla/Likely.h"
#include "mozilla/Unused.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 "mozilla/EventListenerManager.h" #include "mozilla/EventListenerManager.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/EventTarget.h" #include "mozilla/dom/EventTarget.h"
#include "mozilla/dom/EventTargetBinding.h" #include "mozilla/dom/EventTargetBinding.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"

View File

@ -7,6 +7,7 @@
#ifndef mozilla_IMEContentObserver_h_ #ifndef mozilla_IMEContentObserver_h_
#define mozilla_IMEContentObserver_h_ #define mozilla_IMEContentObserver_h_
#include "ContentEventHandler.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"

View File

@ -18,6 +18,7 @@
#include "mozilla/TextComposition.h" #include "mozilla/TextComposition.h"
#include "mozilla/TextEvents.h" #include "mozilla/TextEvents.h"
#include "mozilla/Unused.h" #include "mozilla/Unused.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/HTMLFormElement.h" #include "mozilla/dom/HTMLFormElement.h"
#include "mozilla/dom/TabParent.h" #include "mozilla/dom/TabParent.h"

View File

@ -12,6 +12,7 @@
#include "mozilla/ErrorResult.h" #include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsPIDOMWindow.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {

View File

@ -16,6 +16,8 @@
namespace mozilla { namespace mozilla {
using namespace widget;
namespace dom { namespace dom {
/****************************************************************************** /******************************************************************************

View File

@ -76,7 +76,7 @@ EXPORTS.mozilla.dom += [
if CONFIG['MOZ_WEBSPEECH']: if CONFIG['MOZ_WEBSPEECH']:
EXPORTS.mozilla.dom += ['SpeechRecognitionError.h'] EXPORTS.mozilla.dom += ['SpeechRecognitionError.h']
UNIFIED_SOURCES += [ SOURCES += [
'AnimationEvent.cpp', 'AnimationEvent.cpp',
'AsyncEventDispatcher.cpp', 'AsyncEventDispatcher.cpp',
'BeforeAfterKeyboardEvent.cpp', 'BeforeAfterKeyboardEvent.cpp',
@ -97,6 +97,7 @@ UNIFIED_SOURCES += [
'EventDispatcher.cpp', 'EventDispatcher.cpp',
'EventListenerManager.cpp', 'EventListenerManager.cpp',
'EventListenerService.cpp', 'EventListenerService.cpp',
'EventStateManager.cpp',
'EventTarget.cpp', 'EventTarget.cpp',
'FocusEvent.cpp', 'FocusEvent.cpp',
'ImageCaptureError.cpp', 'ImageCaptureError.cpp',
@ -126,13 +127,8 @@ UNIFIED_SOURCES += [
'XULCommandEvent.cpp', 'XULCommandEvent.cpp',
] ]
# nsEventStateManager.cpp should be built separately because of Mac OS X headers.
SOURCES += [
'EventStateManager.cpp',
]
if CONFIG['MOZ_WEBSPEECH']: if CONFIG['MOZ_WEBSPEECH']:
UNIFIED_SOURCES += ['SpeechRecognitionError.cpp'] SOURCES += ['SpeechRecognitionError.cpp']
include('/ipc/chromium/chromium-config.mozbuild') include('/ipc/chromium/chromium-config.mozbuild')

View File

@ -8,11 +8,13 @@
#define mozilla_dom_FetchConsumer_h #define mozilla_dom_FetchConsumer_h
#include "Fetch.h" #include "Fetch.h"
#include "nsIInputStream.h"
#include "nsIObserver.h" #include "nsIObserver.h"
#include "nsWeakReference.h" #include "nsWeakReference.h"
#include "mozilla/dom/MutableBlobStorage.h" #include "mozilla/dom/MutableBlobStorage.h"
class nsIThread; class nsIThread;
class nsIInputStreamPump;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -2,6 +2,7 @@
#include "nsError.h" #include "nsError.h"
#include "nsIUnicodeDecoder.h" #include "nsIUnicodeDecoder.h"
#include "nsNetUtil.h"
#include "nsString.h" #include "nsString.h"
#include "mozilla/dom/EncodingUtils.h" #include "mozilla/dom/EncodingUtils.h"

View File

@ -8,6 +8,7 @@
#include "nsIContentPolicy.h" #include "nsIContentPolicy.h"
#include "nsIDocument.h" #include "nsIDocument.h"
#include "nsIHttpChannelInternal.h"
#include "nsStreamUtils.h" #include "nsStreamUtils.h"
#include "mozilla/ErrorResult.h" #include "mozilla/ErrorResult.h"

View File

@ -7,6 +7,7 @@
#include "InternalResponse.h" #include "InternalResponse.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "mozilla/dom/FetchTypes.h"
#include "mozilla/dom/InternalHeaders.h" #include "mozilla/dom/InternalHeaders.h"
#include "mozilla/dom/cache/CacheTypes.h" #include "mozilla/dom/cache/CacheTypes.h"
#include "mozilla/ipc/PBackgroundSharedTypes.h" #include "mozilla/ipc/PBackgroundSharedTypes.h"

View File

@ -12,6 +12,7 @@
#include "mozilla/dom/ResponseBinding.h" #include "mozilla/dom/ResponseBinding.h"
#include "mozilla/dom/ChannelInfo.h" #include "mozilla/dom/ChannelInfo.h"
#include "mozilla/dom/InternalHeaders.h"
#include "mozilla/UniquePtr.h" #include "mozilla/UniquePtr.h"
namespace mozilla { namespace mozilla {

View File

@ -7,6 +7,7 @@
#include "Request.h" #include "Request.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsNetUtil.h"
#include "nsPIDOMWindow.h" #include "nsPIDOMWindow.h"
#include "mozilla/ErrorResult.h" #include "mozilla/ErrorResult.h"
@ -15,14 +16,18 @@
#include "mozilla/dom/FetchUtil.h" #include "mozilla/dom/FetchUtil.h"
#include "mozilla/dom/Promise.h" #include "mozilla/dom/Promise.h"
#include "mozilla/dom/URL.h" #include "mozilla/dom/URL.h"
#include "mozilla/dom/WorkerPrivate.h"
#include "mozilla/Unused.h" #include "mozilla/Unused.h"
#include "WorkerPrivate.h" #include "WorkerPrivate.h"
#include "WorkerRunnable.h"
#include "WorkerScope.h"
#include "Workers.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
using namespace workers;
NS_IMPL_CYCLE_COLLECTING_ADDREF(Request) NS_IMPL_CYCLE_COLLECTING_ADDREF(Request)
NS_IMPL_CYCLE_COLLECTING_RELEASE(Request) NS_IMPL_CYCLE_COLLECTING_RELEASE(Request)
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(Request, mOwner, mHeaders) NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(Request, mOwner, mHeaders)
@ -237,14 +242,14 @@ GetRequestURLFromWorker(const GlobalObject& aGlobal, const nsAString& aInput,
} }
} }
class ReferrerSameOriginChecker final : public workers::WorkerMainThreadRunnable class ReferrerSameOriginChecker final : public WorkerMainThreadRunnable
{ {
public: public:
ReferrerSameOriginChecker(workers::WorkerPrivate* aWorkerPrivate, ReferrerSameOriginChecker(workers::WorkerPrivate* aWorkerPrivate,
const nsAString& aReferrerURL, const nsAString& aReferrerURL,
nsresult& aResult) nsresult& aResult)
: workers::WorkerMainThreadRunnable(aWorkerPrivate, : WorkerMainThreadRunnable(aWorkerPrivate,
NS_LITERAL_CSTRING("Fetch :: Referrer same origin check")), NS_LITERAL_CSTRING("Fetch :: Referrer same origin check")),
mReferrerURL(aReferrerURL), mReferrerURL(aReferrerURL),
mResult(aResult) mResult(aResult)
{ {

View File

@ -8,6 +8,7 @@
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsNetUtil.h"
#include "nsPIDOMWindow.h" #include "nsPIDOMWindow.h"
#include "mozilla/ErrorResult.h" #include "mozilla/ErrorResult.h"

View File

@ -19,17 +19,20 @@ EXPORTS.mozilla.dom += [
] ]
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
'ChannelInfo.cpp',
'Fetch.cpp', 'Fetch.cpp',
'FetchConsumer.cpp', 'FetchConsumer.cpp',
'Request.cpp',
'Response.cpp',
]
SOURCES += [
'ChannelInfo.cpp',
'FetchDriver.cpp', 'FetchDriver.cpp',
'FetchUtil.cpp', 'FetchUtil.cpp',
'Headers.cpp', 'Headers.cpp',
'InternalHeaders.cpp', 'InternalHeaders.cpp',
'InternalRequest.cpp', 'InternalRequest.cpp',
'InternalResponse.cpp', 'InternalResponse.cpp',
'Request.cpp',
'Response.cpp',
] ]
IPDL_SOURCES += [ IPDL_SOURCES += [

View File

@ -18,7 +18,7 @@ EXPORTS.mozilla.dom += [
'MutableFileBase.h', 'MutableFileBase.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'ActorsChild.cpp', 'ActorsChild.cpp',
'ActorsParent.cpp', 'ActorsParent.cpp',
'FileHandleBase.cpp', 'FileHandleBase.cpp',

View File

@ -7,6 +7,7 @@
#include "mozilla/dom/FileSystemBase.h" #include "mozilla/dom/FileSystemBase.h"
#include "nsCharSeparatedTokenizer.h" #include "nsCharSeparatedTokenizer.h"
#include "FileSystemUtils.h"
#include "OSFileSystem.h" #include "OSFileSystem.h"
namespace mozilla { namespace mozilla {

View File

@ -9,12 +9,15 @@
#include "GetDirectoryListingTask.h" #include "GetDirectoryListingTask.h"
#include "GetFileOrDirectoryTask.h" #include "GetFileOrDirectoryTask.h"
#include "GetFilesTask.h"
#include "OSFileSystem.h"
#include "mozilla/AppProcessChecker.h" #include "mozilla/AppProcessChecker.h"
#include "mozilla/dom/ContentParent.h" #include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/FileSystemBase.h" #include "mozilla/dom/FileSystemBase.h"
#include "mozilla/dom/FileSystemSecurity.h" #include "mozilla/dom/FileSystemSecurity.h"
#include "mozilla/ipc/BackgroundParent.h" #include "mozilla/ipc/BackgroundParent.h"
#include "mozilla/Preferences.h"
#include "mozilla/Unused.h" #include "mozilla/Unused.h"
#include "nsProxyRelease.h" #include "nsProxyRelease.h"

View File

@ -8,6 +8,9 @@
#include "FileSystemUtils.h" #include "FileSystemUtils.h"
#include "mozilla/ClearOnShutdown.h" #include "mozilla/ClearOnShutdown.h"
#include "mozilla/StaticPtr.h" #include "mozilla/StaticPtr.h"
#include "mozilla/ipc/BackgroundParent.h"
using namespace mozilla::ipc;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -19,6 +19,8 @@
#include "mozilla/Unused.h" #include "mozilla/Unused.h"
#include "nsProxyRelease.h" #include "nsProxyRelease.h"
using namespace mozilla::ipc;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -5,6 +5,9 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */ * You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/FileSystemUtils.h" #include "mozilla/dom/FileSystemUtils.h"
#include "nsCharSeparatedTokenizer.h"
#include "nsString.h"
#include "nsTArray.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -7,6 +7,8 @@
#ifndef mozilla_dom_FileSystemUtils_h #ifndef mozilla_dom_FileSystemUtils_h
#define mozilla_dom_FileSystemUtils_h #define mozilla_dom_FileSystemUtils_h
#include "nsString.h"
class nsIFile; class nsIFile;
namespace mozilla { namespace mozilla {

View File

@ -16,10 +16,13 @@
#include "mozilla/dom/UnionTypes.h" #include "mozilla/dom/UnionTypes.h"
#include "mozilla/dom/ipc/BlobChild.h" #include "mozilla/dom/ipc/BlobChild.h"
#include "mozilla/dom/ipc/BlobParent.h" #include "mozilla/dom/ipc/BlobParent.h"
#include "mozilla/ipc/BackgroundParent.h"
#include "nsIFile.h" #include "nsIFile.h"
#include "nsISimpleEnumerator.h" #include "nsISimpleEnumerator.h"
#include "nsStringGlue.h" #include "nsStringGlue.h"
using namespace mozilla::ipc;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -14,9 +14,12 @@
#include "mozilla/dom/Promise.h" #include "mozilla/dom/Promise.h"
#include "mozilla/dom/ipc/BlobChild.h" #include "mozilla/dom/ipc/BlobChild.h"
#include "mozilla/dom/ipc/BlobParent.h" #include "mozilla/dom/ipc/BlobParent.h"
#include "mozilla/ipc/BackgroundParent.h"
#include "nsIFile.h" #include "nsIFile.h"
#include "nsStringGlue.h" #include "nsStringGlue.h"
using namespace mozilla::ipc;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -5,8 +5,16 @@
* 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 "GetFilesHelper.h" #include "GetFilesHelper.h"
#include "FileSystemUtils.h"
#include "mozilla/dom/ContentChild.h" #include "mozilla/dom/ContentChild.h"
#include "mozilla/dom/ContentParent.h" #include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/Directory.h"
#include "mozilla/dom/Promise.h"
#include "mozilla/dom/UnionTypes.h"
#include "mozilla/dom/ipc/BlobParent.h"
#include "nsContentUtils.h"
#include "nsNetCID.h"
#include "nsISimpleEnumerator.h"
#include "nsProxyRelease.h" #include "nsProxyRelease.h"
namespace mozilla { namespace mozilla {

View File

@ -9,9 +9,12 @@
#include "mozilla/Mutex.h" #include "mozilla/Mutex.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "mozilla/dom/File.h"
#include "nsClassHashtable.h"
#include "nsCycleCollectionTraversalCallback.h" #include "nsCycleCollectionTraversalCallback.h"
#include "nsTArray.h" #include "nsTArray.h"
#include "nsTHashtable.h" #include "nsTHashtable.h"
#include "nsThreadUtils.h"
class nsIGlobalObject; class nsIGlobalObject;

View File

@ -15,9 +15,12 @@
#include "mozilla/dom/Promise.h" #include "mozilla/dom/Promise.h"
#include "mozilla/dom/ipc/BlobChild.h" #include "mozilla/dom/ipc/BlobChild.h"
#include "mozilla/dom/ipc/BlobParent.h" #include "mozilla/dom/ipc/BlobParent.h"
#include "mozilla/ipc/BackgroundParent.h"
#include "nsIFile.h" #include "nsIFile.h"
#include "nsStringGlue.h" #include "nsStringGlue.h"
using namespace mozilla::ipc;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -19,7 +19,7 @@ EXPORTS.mozilla.dom += [
'OSFileSystem.h', 'OSFileSystem.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'Directory.cpp', 'Directory.cpp',
'FileSystemBase.cpp', 'FileSystemBase.cpp',
'FileSystemRequestParent.cpp', 'FileSystemRequestParent.cpp',

View File

@ -20,7 +20,6 @@
#include "mozilla/StaticPtr.h" #include "mozilla/StaticPtr.h"
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include "nsGlobalWindow.h"
#include "nsIDOMEvent.h" #include "nsIDOMEvent.h"
#include "nsIDOMDocument.h" #include "nsIDOMDocument.h"
#include "nsIDOMWindow.h" #include "nsIDOMWindow.h"

View File

@ -7,11 +7,14 @@
#ifndef mozilla_dom_GamepadManager_h_ #ifndef mozilla_dom_GamepadManager_h_
#define mozilla_dom_GamepadManager_h_ #define mozilla_dom_GamepadManager_h_
#include "nsGlobalWindow.h"
#include "nsIIPCBackgroundChildCreateCallback.h" #include "nsIIPCBackgroundChildCreateCallback.h"
#include "nsIObserver.h" #include "nsIObserver.h"
// Needed for GamepadMappingType // Needed for GamepadMappingType
#include "mozilla/dom/GamepadBinding.h" #include "mozilla/dom/GamepadBinding.h"
#include "mozilla/dom/GamepadPoseState.h"
#include "mozilla/dom/GamepadServiceType.h" #include "mozilla/dom/GamepadServiceType.h"
#include "nsRefPtrHashtable.h"
class nsGlobalWindow; class nsGlobalWindow;

View File

@ -15,6 +15,7 @@
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
class GamepadChangeEvent;
class GamepadEventChannelParent; class GamepadEventChannelParent;
// Platform Service for building and transmitting IPDL messages // Platform Service for building and transmitting IPDL messages

View File

@ -2,6 +2,8 @@
#ifndef mozilla_dom_gamepad_GamepadPoseState_h_ #ifndef mozilla_dom_gamepad_GamepadPoseState_h_
#define mozilla_dom_gamepad_GamepadPoseState_h_ #define mozilla_dom_gamepad_GamepadPoseState_h_
#include "mozilla/TypedEnumBits.h"
namespace mozilla{ namespace mozilla{
namespace dom{ namespace dom{

View File

@ -22,6 +22,8 @@
#include "nsIObserver.h" #include "nsIObserver.h"
#include "nsIObserverService.h" #include "nsIObserverService.h"
using namespace mozilla::ipc;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

Some files were not shown because too many files have changed in this diff Show More