diff --git a/docshell/base/IHistory.h b/docshell/base/IHistory.h index bdaa85238a7..b913bed37e4 100644 --- a/docshell/base/IHistory.h +++ b/docshell/base/IHistory.h @@ -10,7 +10,6 @@ #include "nsISupports.h" class nsIURI; -class nsString; namespace mozilla { diff --git a/docshell/base/LoadContext.h b/docshell/base/LoadContext.h index 1ab5cba4144..22fd28583da 100644 --- a/docshell/base/LoadContext.h +++ b/docshell/base/LoadContext.h @@ -14,8 +14,6 @@ #include "nsIInterfaceRequestor.h" #include "nsILoadContext.h" -class mozIApplication; - namespace mozilla { /** diff --git a/docshell/base/nsDocShell.h b/docshell/base/nsDocShell.h index 317bd9628ef..a590c6d239d 100644 --- a/docshell/base/nsDocShell.h +++ b/docshell/base/nsDocShell.h @@ -88,7 +88,6 @@ class nsIURIFixup; class nsIURILoader; class nsIWebBrowserFind; class nsIWidget; -class ProfilerMarkerTracing; /* load commands were moved to nsIDocShell.h */ /* load types were moved to nsDocShellLoadTypes.h */ diff --git a/docshell/base/nsILinkHandler.h b/docshell/base/nsILinkHandler.h index 862a6bcb52c..797b3fe1340 100644 --- a/docshell/base/nsILinkHandler.h +++ b/docshell/base/nsILinkHandler.h @@ -13,7 +13,6 @@ class nsIContent; class nsIDocShell; class nsIInputStream; class nsIRequest; -class nsString; // Interface ID for nsILinkHandler #define NS_ILINKHANDLER_IID \ diff --git a/gfx/2d/2D.h b/gfx/2d/2D.h index 4a7c6f022d1..9bae3a3f61a 100644 --- a/gfx/2d/2D.h +++ b/gfx/2d/2D.h @@ -44,7 +44,6 @@ struct ID2D1Device; struct IDWriteRenderingParams; class GrContext; -struct GrGLInterface; struct CGContext; typedef struct CGContext *CGContextRef; diff --git a/gfx/2d/DrawTargetD2D1.h b/gfx/2d/DrawTargetD2D1.h index 447a3e230e7..eb8010d3dbe 100644 --- a/gfx/2d/DrawTargetD2D1.h +++ b/gfx/2d/DrawTargetD2D1.h @@ -23,8 +23,6 @@ namespace mozilla { namespace gfx { class SourceSurfaceD2D1; -class GradientStopsD2D; -class ScaledFontDWrite; const int32_t kLayerCacheSize1 = 5; diff --git a/gfx/2d/PathCairo.h b/gfx/2d/PathCairo.h index 898181242c7..0f315bb3cff 100644 --- a/gfx/2d/PathCairo.h +++ b/gfx/2d/PathCairo.h @@ -13,7 +13,6 @@ namespace mozilla { namespace gfx { -class DrawTargetCairo; class PathCairo; class PathBuilderCairo : public PathBuilder diff --git a/gfx/2d/QuartzSupport.h b/gfx/2d/QuartzSupport.h index a85c8e2d902..60a5b9c299e 100644 --- a/gfx/2d/QuartzSupport.h +++ b/gfx/2d/QuartzSupport.h @@ -20,7 +20,6 @@ CGColorSpaceRef CreateSystemColorSpace(); // Manages a CARenderer -struct _CGLPBufferObject; struct _CGLContextObject; enum AllowOfflineRendererEnum { ALLOW_OFFLINE_RENDERER, DISALLOW_OFFLINE_RENDERER }; diff --git a/gfx/2d/ScaledFontBase.h b/gfx/2d/ScaledFontBase.h index 93f4441be3a..4251828b0ad 100644 --- a/gfx/2d/ScaledFontBase.h +++ b/gfx/2d/ScaledFontBase.h @@ -21,8 +21,6 @@ #include "cairo.h" #endif -class gfxFont; - namespace mozilla { namespace gfx { diff --git a/gfx/2d/SourceSurfaceSkia.h b/gfx/2d/SourceSurfaceSkia.h index de57602b415..d13d3873759 100644 --- a/gfx/2d/SourceSurfaceSkia.h +++ b/gfx/2d/SourceSurfaceSkia.h @@ -11,8 +11,6 @@ #include "skia/SkCanvas.h" #include "skia/SkBitmap.h" -class GrContext; - namespace mozilla { namespace gfx { diff --git a/gfx/gl/AndroidSurfaceTexture.h b/gfx/gl/AndroidSurfaceTexture.h index d128656228a..3b1ca1a1fbd 100644 --- a/gfx/gl/AndroidSurfaceTexture.h +++ b/gfx/gl/AndroidSurfaceTexture.h @@ -18,8 +18,6 @@ #include "SurfaceTexture.h" #include "AndroidNativeWindow.h" -class gfxASurface; - namespace mozilla { namespace gfx { class Matrix4x4; diff --git a/gfx/gl/GLContext.h b/gfx/gl/GLContext.h index 4fbb585c978..4656ddcc955 100644 --- a/gfx/gl/GLContext.h +++ b/gfx/gl/GLContext.h @@ -51,10 +51,6 @@ #include "gfx2DGlue.h" #include "GeckoProfiler.h" -class nsIntRegion; -class nsIRunnable; -class nsIThread; - namespace android { class GraphicBuffer; } diff --git a/gfx/gl/TextureImageCGL.h b/gfx/gl/TextureImageCGL.h index 3f3e4908e1e..395252f6be4 100644 --- a/gfx/gl/TextureImageCGL.h +++ b/gfx/gl/TextureImageCGL.h @@ -11,8 +11,6 @@ #include "nsAutoPtr.h" #include "nsSize.h" -class gfxASurface; - namespace mozilla { namespace gl { diff --git a/gfx/layers/Compositor.h b/gfx/layers/Compositor.h index 031c285b572..5faa7f0d66d 100644 --- a/gfx/layers/Compositor.h +++ b/gfx/layers/Compositor.h @@ -120,7 +120,6 @@ namespace layers { struct Effect; struct EffectChain; class Image; -class ISurfaceAllocator; class Layer; class TextureSource; class DataTextureSource; diff --git a/gfx/layers/CopyableCanvasLayer.h b/gfx/layers/CopyableCanvasLayer.h index 6ed1510af94..c3c2ceb1008 100644 --- a/gfx/layers/CopyableCanvasLayer.h +++ b/gfx/layers/CopyableCanvasLayer.h @@ -21,9 +21,12 @@ #include "nsISupportsImpl.h" // for MOZ_COUNT_CTOR, etc namespace mozilla { -namespace layers { -class CanvasClientWebGL; +namespace gl { +class SharedSurface; +} + +namespace layers { /** * A shared CanvasLayer implementation that supports copying diff --git a/gfx/layers/ImageContainer.h b/gfx/layers/ImageContainer.h index fc93fc2d763..fb26e05d077 100644 --- a/gfx/layers/ImageContainer.h +++ b/gfx/layers/ImageContainer.h @@ -95,7 +95,6 @@ typedef void* HANDLE; namespace mozilla { -class CrossProcessMutex; namespace layers { @@ -103,8 +102,6 @@ class ImageClient; class SharedPlanarYCbCrImage; class TextureClient; class CompositableClient; -class CompositableForwarder; -class SurfaceDescriptor; class GrallocImage; struct ImageBackendData diff --git a/gfx/layers/LayerTreeInvalidation.h b/gfx/layers/LayerTreeInvalidation.h index 1d6b2af0fe7..d262480380a 100644 --- a/gfx/layers/LayerTreeInvalidation.h +++ b/gfx/layers/LayerTreeInvalidation.h @@ -10,8 +10,6 @@ #include "mozilla/UniquePtr.h" // for UniquePtr #include "mozilla/gfx/Point.h" -class nsPresContext; - namespace mozilla { namespace layers { diff --git a/gfx/layers/Layers.h b/gfx/layers/Layers.h index 962c7bcc4cc..c02cb07b477 100644 --- a/gfx/layers/Layers.h +++ b/gfx/layers/Layers.h @@ -57,11 +57,9 @@ namespace mozilla { class ComputedTimingFunction; class FrameLayerBuilder; class StyleAnimationValue; -class WebGLContext; namespace gl { class GLContext; -class SharedSurface; } namespace gfx { @@ -78,7 +76,6 @@ class Animation; class AnimationData; class AsyncPanZoomController; class ClientLayerManager; -class CommonLayerAttributes; class Layer; class LayerMetricsWrapper; class PaintedLayer; @@ -95,10 +92,7 @@ class ShadowableLayer; class ShadowLayerForwarder; class LayerManagerComposite; class SpecificLayerAttributes; -class SurfaceDescriptor; class Compositor; -struct TextureFactoryIdentifier; -struct EffectMask; namespace layerscope { class LayersPacket; diff --git a/gfx/layers/LayersTypes.h b/gfx/layers/LayersTypes.h index d79c438987f..d8d3eda9eb0 100644 --- a/gfx/layers/LayersTypes.h +++ b/gfx/layers/LayersTypes.h @@ -26,7 +26,6 @@ # define MOZ_LAYERS_LOG_IF_SHADOWABLE(layer, _args) \ do { if (layer->AsShadowableLayer()) { PR_LOG(LayerManager::GetLog(), PR_LOG_DEBUG, _args); } } while (0) #else -struct PRLogModuleInfo; # define MOZ_LAYERS_LOG(_args) # define MOZ_LAYERS_LOG_IF_SHADOWABLE(layer, _args) #endif // if defined(DEBUG) || defined(PR_LOGGING) diff --git a/gfx/layers/apz/src/APZCTreeManager.h b/gfx/layers/apz/src/APZCTreeManager.h index 09c6722f920..5403e1fa477 100644 --- a/gfx/layers/apz/src/APZCTreeManager.h +++ b/gfx/layers/apz/src/APZCTreeManager.h @@ -41,7 +41,6 @@ enum AllowedTouchBehavior { class Layer; class AsyncPanZoomController; class CompositorParent; -class APZPaintLogHelper; class OverscrollHandoffChain; struct OverscrollHandoffState; class LayerMetricsWrapper; diff --git a/gfx/layers/apz/src/InputQueue.h b/gfx/layers/apz/src/InputQueue.h index a268992bdab..eb216497c79 100644 --- a/gfx/layers/apz/src/InputQueue.h +++ b/gfx/layers/apz/src/InputQueue.h @@ -20,7 +20,6 @@ class ScrollWheelInput; namespace layers { class AsyncPanZoomController; -class OverscrollHandoffChain; class CancelableBlockState; class TouchBlockState; class WheelBlockState; diff --git a/gfx/layers/apz/util/ActiveElementManager.h b/gfx/layers/apz/util/ActiveElementManager.h index 65d4287f419..addac185e88 100644 --- a/gfx/layers/apz/util/ActiveElementManager.h +++ b/gfx/layers/apz/util/ActiveElementManager.h @@ -9,7 +9,6 @@ #include "nsCOMPtr.h" #include "nsISupportsImpl.h" -class inIDOMUtils; class CancelableTask; namespace mozilla { diff --git a/gfx/layers/apz/util/ChromeProcessController.h b/gfx/layers/apz/util/ChromeProcessController.h index 24df410fc2e..19e301d1f3e 100644 --- a/gfx/layers/apz/util/ChromeProcessController.h +++ b/gfx/layers/apz/util/ChromeProcessController.h @@ -22,7 +22,6 @@ namespace mozilla { namespace layers { class APZEventState; -class CompositorParent; // A ChromeProcessController is attached to the root of a compositor's layer // tree. diff --git a/gfx/layers/basic/BasicCanvasLayer.h b/gfx/layers/basic/BasicCanvasLayer.h index 50e405fe923..b7326b5a56c 100644 --- a/gfx/layers/basic/BasicCanvasLayer.h +++ b/gfx/layers/basic/BasicCanvasLayer.h @@ -13,8 +13,6 @@ #include "nsDebug.h" // for NS_ASSERTION #include "nsRegion.h" // for nsIntRegion -class gfxContext; - namespace mozilla { namespace layers { diff --git a/gfx/layers/basic/BasicCompositor.h b/gfx/layers/basic/BasicCompositor.h index 07b0061ad88..0fdb7819af6 100644 --- a/gfx/layers/basic/BasicCompositor.h +++ b/gfx/layers/basic/BasicCompositor.h @@ -11,8 +11,6 @@ #include "mozilla/gfx/2D.h" #include "nsAutoPtr.h" -class gfxContext; - namespace mozilla { namespace layers { diff --git a/gfx/layers/basic/BasicImplData.h b/gfx/layers/basic/BasicImplData.h index 6e73da76dc6..202ba1b8fb0 100644 --- a/gfx/layers/basic/BasicImplData.h +++ b/gfx/layers/basic/BasicImplData.h @@ -15,7 +15,6 @@ namespace mozilla { namespace layers { class ReadbackProcessor; -class SurfaceDescriptor; /** * This is the ImplData for all Basic layers. It also exposes methods diff --git a/gfx/layers/basic/BasicLayers.h b/gfx/layers/basic/BasicLayers.h index 8bf6e81940d..8f709757d7b 100644 --- a/gfx/layers/basic/BasicLayers.h +++ b/gfx/layers/basic/BasicLayers.h @@ -20,18 +20,15 @@ #include "nsRegion.h" // for nsIntRegion #include "nscore.h" // for nsAString, etc -class gfxPattern; class nsIWidget; namespace mozilla { namespace layers { -class BasicShadowableLayer; class ImageFactory; class ImageLayer; class PaintLayerContext; class ReadbackLayer; -class ReadbackProcessor; /** * This is a cairo/Thebes-only, main-thread-only implementation of layers. diff --git a/gfx/layers/basic/BasicLayersImpl.h b/gfx/layers/basic/BasicLayersImpl.h index c6f29ba0340..b9ae4b0ad6c 100644 --- a/gfx/layers/basic/BasicLayersImpl.h +++ b/gfx/layers/basic/BasicLayersImpl.h @@ -25,7 +25,6 @@ class DrawTarget; namespace layers { class AutoMoz2DMaskData; -class BasicContainerLayer; class Layer; class AutoSetOperator { diff --git a/gfx/layers/client/ClientPaintedLayer.h b/gfx/layers/client/ClientPaintedLayer.h index b8f2b749616..54a6e9476a9 100644 --- a/gfx/layers/client/ClientPaintedLayer.h +++ b/gfx/layers/client/ClientPaintedLayer.h @@ -18,8 +18,6 @@ #include "nsRegion.h" // for nsIntRegion #include "mozilla/layers/PLayerTransaction.h" // for PaintedLayerAttributes -class gfxContext; - namespace mozilla { namespace layers { diff --git a/gfx/layers/client/ClientTiledPaintedLayer.h b/gfx/layers/client/ClientTiledPaintedLayer.h index 57999a2badd..40b0ed467d2 100644 --- a/gfx/layers/client/ClientTiledPaintedLayer.h +++ b/gfx/layers/client/ClientTiledPaintedLayer.h @@ -12,8 +12,6 @@ #include "nsDebug.h" // for NS_RUNTIMEABORT #include "nsRegion.h" // for nsIntRegion -class gfxContext; - namespace mozilla { namespace layers { diff --git a/gfx/layers/client/CompositableClient.h b/gfx/layers/client/CompositableClient.h index 14f451badc2..75a88991bf0 100644 --- a/gfx/layers/client/CompositableClient.h +++ b/gfx/layers/client/CompositableClient.h @@ -27,7 +27,6 @@ class BufferTextureClient; class ImageBridgeChild; class CompositableForwarder; class CompositableChild; -class SurfaceDescriptor; class PCompositableChild; /** diff --git a/gfx/layers/client/ContentClient.h b/gfx/layers/client/ContentClient.h index 5778ec98dd9..f23ddcb80aa 100644 --- a/gfx/layers/client/ContentClient.h +++ b/gfx/layers/client/ContentClient.h @@ -28,8 +28,6 @@ #include "nsRegion.h" // for nsIntRegion #include "nsTArray.h" // for nsTArray -class gfxContext; - namespace mozilla { namespace gfx { class DrawTarget; @@ -37,7 +35,6 @@ class DrawTarget; namespace layers { -class BasicLayerManager; class PaintedLayer; /** diff --git a/gfx/layers/client/TextureClient.h b/gfx/layers/client/TextureClient.h index b6355fd6a0b..ae609566682 100644 --- a/gfx/layers/client/TextureClient.h +++ b/gfx/layers/client/TextureClient.h @@ -29,7 +29,6 @@ #include "nsISupportsImpl.h" // for TextureImage::AddRef, etc #include "GfxTexturesReporter.h" -class gfxReusableSurfaceWrapper; class gfxImageSurface; namespace mozilla { @@ -47,11 +46,9 @@ class SharedSurface; namespace layers { class AsyncTransactionTracker; -class ContentClient; class CompositableForwarder; class ISurfaceAllocator; class CompositableClient; -class PlanarYCbCrImage; struct PlanarYCbCrData; class Image; class PTextureChild; diff --git a/gfx/layers/client/TiledContentClient.h b/gfx/layers/client/TiledContentClient.h index b54b0a95efd..41156efb839 100644 --- a/gfx/layers/client/TiledContentClient.h +++ b/gfx/layers/client/TiledContentClient.h @@ -41,7 +41,6 @@ namespace mozilla { namespace layers { -class BasicTileDescriptor; class ClientTiledPaintedLayer; class ClientLayerManager; diff --git a/gfx/layers/composite/CompositableHost.h b/gfx/layers/composite/CompositableHost.h index 3624ceb2696..52e1e1cec2a 100644 --- a/gfx/layers/composite/CompositableHost.h +++ b/gfx/layers/composite/CompositableHost.h @@ -37,9 +37,7 @@ class DataSourceSurface; namespace layers { class Layer; -class SurfaceDescriptor; class Compositor; -class ISurfaceAllocator; class ThebesBufferData; class TiledLayerComposer; class CompositableParentManager; diff --git a/gfx/layers/composite/ContentHost.h b/gfx/layers/composite/ContentHost.h index cb7854ed2b1..2723a4df530 100644 --- a/gfx/layers/composite/ContentHost.h +++ b/gfx/layers/composite/ContentHost.h @@ -42,7 +42,6 @@ class Compositor; class ThebesBufferData; class TiledLayerComposer; struct EffectChain; -class TextureImageTextureSourceOGL; struct TexturedEffect; diff --git a/gfx/layers/composite/FPSCounter.h b/gfx/layers/composite/FPSCounter.h index 2a493d3e4f0..f1a3cd58610 100644 --- a/gfx/layers/composite/FPSCounter.h +++ b/gfx/layers/composite/FPSCounter.h @@ -16,13 +16,9 @@ #include "prio.h" // for NSPR file i/o namespace mozilla { -namespace gl { -class GLContext; -} namespace layers { class DataTextureSource; -class ShaderProgramOGL; class Compositor; // Dump the FPS histogram every 10 seconds or kMaxFrameFPS diff --git a/gfx/layers/composite/ImageHost.h b/gfx/layers/composite/ImageHost.h index 5bd4930a5b9..3c23d653ffd 100644 --- a/gfx/layers/composite/ImageHost.h +++ b/gfx/layers/composite/ImageHost.h @@ -31,7 +31,6 @@ class Matrix4x4; namespace layers { class Compositor; -class ISurfaceAllocator; struct EffectChain; /** diff --git a/gfx/layers/composite/LayerManagerComposite.h b/gfx/layers/composite/LayerManagerComposite.h index 34b851079af..f7f477cf7f3 100644 --- a/gfx/layers/composite/LayerManagerComposite.h +++ b/gfx/layers/composite/LayerManagerComposite.h @@ -43,11 +43,6 @@ namespace gfx { class DrawTarget; } -namespace gl { -class GLContext; -class TextureImage; -} - namespace layers { class CanvasLayerComposite; @@ -60,7 +55,6 @@ class ImageLayer; class ImageLayerComposite; class LayerComposite; class RefLayerComposite; -class SurfaceDescriptor; class PaintedLayerComposite; class TiledLayerComposer; class TextRenderer; diff --git a/gfx/layers/composite/TextureHost.h b/gfx/layers/composite/TextureHost.h index c734a64a121..68e8093385d 100644 --- a/gfx/layers/composite/TextureHost.h +++ b/gfx/layers/composite/TextureHost.h @@ -30,8 +30,6 @@ #include "mozilla/layers/AtomicRefCountedWithFinalize.h" #include "mozilla/gfx/Rect.h" -class gfxReusableSurfaceWrapper; - namespace mozilla { namespace gl { class SharedSurface; @@ -43,7 +41,6 @@ class Shmem; namespace layers { class Compositor; -class CompositableHost; class CompositableParentManager; class SurfaceDescriptor; class SharedSurfaceDescriptor; diff --git a/gfx/layers/composite/TiledContentHost.h b/gfx/layers/composite/TiledContentHost.h index 6281aa9e3a8..13a89a20797 100644 --- a/gfx/layers/composite/TiledContentHost.h +++ b/gfx/layers/composite/TiledContentHost.h @@ -31,8 +31,6 @@ #include #endif -class gfxReusableSurfaceWrapper; - namespace mozilla { namespace gfx { class Matrix4x4; diff --git a/gfx/layers/d3d11/TextureD3D11.h b/gfx/layers/d3d11/TextureD3D11.h index 906ff1e7059..c47830dc5b4 100644 --- a/gfx/layers/d3d11/TextureD3D11.h +++ b/gfx/layers/d3d11/TextureD3D11.h @@ -14,8 +14,6 @@ #include #include -class gfxD2DSurface; - namespace mozilla { namespace layers { diff --git a/gfx/layers/d3d9/DeviceManagerD3D9.h b/gfx/layers/d3d9/DeviceManagerD3D9.h index 18419aba22e..b773e2195a6 100644 --- a/gfx/layers/d3d9/DeviceManagerD3D9.h +++ b/gfx/layers/d3d9/DeviceManagerD3D9.h @@ -18,7 +18,6 @@ namespace mozilla { namespace layers { class DeviceManagerD3D9; -class LayerD3D9; class Nv3DVUtils; class Layer; class TextureSourceD3D9; diff --git a/gfx/layers/ipc/CompositableForwarder.h b/gfx/layers/ipc/CompositableForwarder.h index 3f08962b94c..63a283403f2 100644 --- a/gfx/layers/ipc/CompositableForwarder.h +++ b/gfx/layers/ipc/CompositableForwarder.h @@ -26,7 +26,6 @@ struct TextureFactoryIdentifier; class SurfaceDescriptor; class SurfaceDescriptorTiles; class ThebesBufferData; -class ClientTiledLayerBuffer; class PTextureChild; /** diff --git a/gfx/layers/ipc/CompositableTransactionParent.h b/gfx/layers/ipc/CompositableTransactionParent.h index c9541c270e8..958923c87e9 100644 --- a/gfx/layers/ipc/CompositableTransactionParent.h +++ b/gfx/layers/ipc/CompositableTransactionParent.h @@ -18,7 +18,6 @@ namespace mozilla { namespace layers { class CompositableHost; -class PTextureChild; typedef std::vector EditReplyVector; diff --git a/gfx/layers/ipc/CompositorChild.h b/gfx/layers/ipc/CompositorChild.h index 09a9249ec51..78d2d0e167e 100644 --- a/gfx/layers/ipc/CompositorChild.h +++ b/gfx/layers/ipc/CompositorChild.h @@ -20,8 +20,6 @@ #include "ThreadSafeRefcountingWithMainThreadDestruction.h" #include "nsWeakReference.h" -class nsIObserver; - namespace mozilla { namespace dom { diff --git a/gfx/layers/ipc/CompositorParent.h b/gfx/layers/ipc/CompositorParent.h index e673d014b43..5e86a22be28 100644 --- a/gfx/layers/ipc/CompositorParent.h +++ b/gfx/layers/ipc/CompositorParent.h @@ -39,7 +39,6 @@ class CancelableTask; class MessageLoop; -class gfxContext; class nsIWidget; namespace mozilla { diff --git a/gfx/layers/ipc/ISurfaceAllocator.h b/gfx/layers/ipc/ISurfaceAllocator.h index e7f7a569729..afb3e344ab2 100644 --- a/gfx/layers/ipc/ISurfaceAllocator.h +++ b/gfx/layers/ipc/ISurfaceAllocator.h @@ -30,12 +30,6 @@ #define MOZ_HAVE_SURFACEDESCRIPTORGRALLOC #endif -class gfxSharedImageSurface; - -namespace base { -class Thread; -} - namespace mozilla { namespace ipc { class Shmem; @@ -47,8 +41,6 @@ class DataSourceSurface; namespace layers { class MaybeMagicGrallocBufferHandle; -class MemoryTextureClient; -class MemoryTextureHost; enum BufferCapabilities { DEFAULT_BUFFER_CAPS = 0, diff --git a/gfx/layers/ipc/ImageBridgeChild.h b/gfx/layers/ipc/ImageBridgeChild.h index 39fec3bd677..26ab9eff4aa 100644 --- a/gfx/layers/ipc/ImageBridgeChild.h +++ b/gfx/layers/ipc/ImageBridgeChild.h @@ -32,7 +32,6 @@ class Shmem; namespace layers { -class ClientTiledLayerBuffer; class AsyncTransactionTracker; class ImageClient; class ImageContainer; diff --git a/gfx/layers/ipc/ShadowLayerParent.h b/gfx/layers/ipc/ShadowLayerParent.h index 73029c5c28d..01d24df7303 100644 --- a/gfx/layers/ipc/ShadowLayerParent.h +++ b/gfx/layers/ipc/ShadowLayerParent.h @@ -18,7 +18,6 @@ namespace layers { class ContainerLayer; class Layer; -class LayerManager; class CanvasLayerComposite; class ColorLayerComposite; diff --git a/gfx/layers/ipc/ShadowLayerUtilsGralloc.h b/gfx/layers/ipc/ShadowLayerUtilsGralloc.h index 0200af9e86f..6a1aaed5d73 100644 --- a/gfx/layers/ipc/ShadowLayerUtilsGralloc.h +++ b/gfx/layers/ipc/ShadowLayerUtilsGralloc.h @@ -22,7 +22,6 @@ namespace layers { class MaybeMagicGrallocBufferHandle; class SurfaceDescriptor; -class TextureHost; struct GrallocBufferRef { base::ProcessId mOwner; diff --git a/gfx/layers/ipc/ShadowLayers.h b/gfx/layers/ipc/ShadowLayers.h index 81cf4bd34e7..fd59262da07 100644 --- a/gfx/layers/ipc/ShadowLayers.h +++ b/gfx/layers/ipc/ShadowLayers.h @@ -26,33 +26,16 @@ namespace mozilla { namespace layers { -class ClientTiledLayerBuffer; -class CanvasClient; -class CanvasLayerComposite; -class CanvasSurface; -class ColorLayerComposite; -class CompositableChild; -class ContainerLayerComposite; -class ContentClient; -class ContentClientRemote; class EditReply; -class ImageClient; -class ImageLayerComposite; class Layer; -class OptionalThebesBuffer; class PLayerChild; class PLayerTransactionChild; -class PLayerTransactionParent; class LayerTransactionChild; -class RefLayerComposite; class ShadowableLayer; -class ShmemTextureClient; class SurfaceDescriptor; class TextureClient; -class PaintedLayerComposite; class ThebesBuffer; class ThebesBufferData; -class TiledLayerComposer; class Transaction; diff --git a/gfx/layers/ipc/SharedPlanarYCbCrImage.h b/gfx/layers/ipc/SharedPlanarYCbCrImage.h index 7fa277bd1da..8c3d39cda6e 100644 --- a/gfx/layers/ipc/SharedPlanarYCbCrImage.h +++ b/gfx/layers/ipc/SharedPlanarYCbCrImage.h @@ -20,8 +20,6 @@ namespace layers { class BufferTextureClient; class ImageClient; -class ISurfaceAllocator; -class SurfaceDescriptor; class TextureClient; class SharedPlanarYCbCrImage : public PlanarYCbCrImage diff --git a/gfx/layers/ipc/SharedRGBImage.h b/gfx/layers/ipc/SharedRGBImage.h index 255fcda3bdf..d55f96e6244 100644 --- a/gfx/layers/ipc/SharedRGBImage.h +++ b/gfx/layers/ipc/SharedRGBImage.h @@ -16,17 +16,11 @@ #include "nsCOMPtr.h" // for already_AddRefed namespace mozilla { -namespace ipc { -class Shmem; -} - namespace layers { class BufferTextureClient; class ImageClient; -class ISurfaceAllocator; class TextureClient; -class SurfaceDescriptor; already_AddRefed CreateSharedRGBImage(ImageContainer* aImageContainer, nsIntSize aSize, diff --git a/gfx/layers/opengl/Composer2D.h b/gfx/layers/opengl/Composer2D.h index 698d2469ddc..78c34c4befd 100644 --- a/gfx/layers/opengl/Composer2D.h +++ b/gfx/layers/opengl/Composer2D.h @@ -27,11 +27,6 @@ */ namespace mozilla { - -namespace gfx { -class Matrix; -} - namespace layers { class Layer; diff --git a/gfx/layers/opengl/CompositorOGL.h b/gfx/layers/opengl/CompositorOGL.h index 94f7205ded7..2893a157e32 100644 --- a/gfx/layers/opengl/CompositorOGL.h +++ b/gfx/layers/opengl/CompositorOGL.h @@ -40,7 +40,6 @@ class nsIWidget; namespace mozilla { -class TimeStamp; namespace gfx { class Matrix4x4; diff --git a/gfx/layers/opengl/TextureClientOGL.h b/gfx/layers/opengl/TextureClientOGL.h index 9631d15b6cf..55d2e5e5ae2 100644 --- a/gfx/layers/opengl/TextureClientOGL.h +++ b/gfx/layers/opengl/TextureClientOGL.h @@ -20,8 +20,6 @@ namespace mozilla { namespace layers { -class CompositableForwarder; - class EGLImageTextureClient : public TextureClient { public: diff --git a/gfx/layers/opengl/TextureHostOGL.h b/gfx/layers/opengl/TextureHostOGL.h index 1859178ca4c..3aeb4d9becd 100644 --- a/gfx/layers/opengl/TextureHostOGL.h +++ b/gfx/layers/opengl/TextureHostOGL.h @@ -37,7 +37,6 @@ #endif #endif -class gfxReusableSurfaceWrapper; class nsIntRegion; namespace mozilla { @@ -54,7 +53,6 @@ namespace layers { class Compositor; class CompositorOGL; class TextureImageTextureSourceOGL; -class TextureSharedDataGonkOGL; class GLTextureSource; inline void ApplyFilterToBoundTexture(gl::GLContext* aGL, diff --git a/gfx/src/FilterSupport.h b/gfx/src/FilterSupport.h index 4441250a84a..44724ca81fa 100644 --- a/gfx/src/FilterSupport.h +++ b/gfx/src/FilterSupport.h @@ -158,7 +158,6 @@ enum AttributeName { class DrawTarget; class SourceSurface; -class FilterNode; struct FilterAttribute; enum class AttributeType { diff --git a/gfx/src/nsColor.h b/gfx/src/nsColor.h index ca6603fc32f..24769542e73 100644 --- a/gfx/src/nsColor.h +++ b/gfx/src/nsColor.h @@ -13,7 +13,6 @@ class nsAString; class nsString; -class nsCString; // A color is a 32 bit unsigned integer with four components: R, G, B // and A. diff --git a/gfx/src/nsITheme.h b/gfx/src/nsITheme.h index 1ef57a4f0a2..79572d30c48 100644 --- a/gfx/src/nsITheme.h +++ b/gfx/src/nsITheme.h @@ -15,13 +15,11 @@ #include "Units.h" struct nsRect; -struct nsFont; struct nsIntMargin; class nsPresContext; class nsRenderingContext; class nsDeviceContext; class nsIFrame; -class nsIContent; class nsIAtom; class nsIWidget; diff --git a/gfx/thebes/gfx2DGlue.h b/gfx/thebes/gfx2DGlue.h index 520c5409c9a..4c5e09518de 100644 --- a/gfx/thebes/gfx2DGlue.h +++ b/gfx/thebes/gfx2DGlue.h @@ -16,14 +16,6 @@ #include "mozilla/gfx/2D.h" #include "gfxColor.h" -namespace mozilla { -namespace gfx { -class DrawTarget; -class SourceSurface; -class ScaledFont; -} -} - namespace mozilla { namespace gfx { diff --git a/gfx/thebes/gfxAndroidPlatform.h b/gfx/thebes/gfxAndroidPlatform.h index edbf4a5d37f..2f63eedc4b2 100644 --- a/gfx/thebes/gfxAndroidPlatform.h +++ b/gfx/thebes/gfxAndroidPlatform.h @@ -12,8 +12,6 @@ #include "nsCOMPtr.h" #include "nsTArray.h" -class nsIMemoryReporter; - namespace mozilla { namespace dom { class FontListEntry; diff --git a/gfx/thebes/gfxBlur.h b/gfx/thebes/gfxBlur.h index bac188ba136..8400a813768 100644 --- a/gfx/thebes/gfxBlur.h +++ b/gfx/thebes/gfxBlur.h @@ -16,7 +16,6 @@ class gfxContext; struct gfxRect; struct gfxRGBA; -class gfxMatrix; namespace mozilla { namespace gfx { diff --git a/gfx/thebes/gfxDrawable.h b/gfx/thebes/gfxDrawable.h index 703aff4f99b..306771200e5 100644 --- a/gfx/thebes/gfxDrawable.h +++ b/gfx/thebes/gfxDrawable.h @@ -12,7 +12,6 @@ #include "GraphicsFilter.h" #include "mozilla/gfx/2D.h" -class gfxASurface; class gfxContext; class gfxPattern; diff --git a/gfx/thebes/gfxPattern.h b/gfx/thebes/gfxPattern.h index 5ceea203b6f..00837c71be2 100644 --- a/gfx/thebes/gfxPattern.h +++ b/gfx/thebes/gfxPattern.h @@ -17,8 +17,6 @@ #include "nsAutoPtr.h" #include "nsTArray.h" -class gfxContext; -class gfxASurface; struct gfxRGBA; typedef struct _cairo_pattern cairo_pattern_t; diff --git a/gfx/thebes/gfxPlatform.h b/gfx/thebes/gfxPlatform.h index d5efd2d36f1..17e1753dd4b 100644 --- a/gfx/thebes/gfxPlatform.h +++ b/gfx/thebes/gfxPlatform.h @@ -38,11 +38,9 @@ class nsIURI; class nsIAtom; class nsIObserver; class SRGBOverrideObserver; -struct gfxRGBA; namespace mozilla { namespace gl { -class GLContext; class SkiaGLGlue; } namespace gfx { diff --git a/gfx/thebes/gfxQtNativeRenderer.h b/gfx/thebes/gfxQtNativeRenderer.h index 393ce4a710c..1b58caa1a2a 100644 --- a/gfx/thebes/gfxQtNativeRenderer.h +++ b/gfx/thebes/gfxQtNativeRenderer.h @@ -11,8 +11,6 @@ #include "gfxXlibSurface.h" #include "mozilla/gfx/Rect.h" -class QRect; - /** * This class lets us take code that draws into an Xlib surface drawable and lets us * use it to draw into any Thebes context. The user should subclass this class, diff --git a/gfx/thebes/gfxWindowsPlatform.h b/gfx/thebes/gfxWindowsPlatform.h index 212e19598ee..81f77eb31b2 100644 --- a/gfx/thebes/gfxWindowsPlatform.h +++ b/gfx/thebes/gfxWindowsPlatform.h @@ -57,8 +57,6 @@ struct IDirect3DDevice9; struct ID3D11Device; struct IDXGIAdapter1; -class nsIMemoryReporter; - /** * Utility to get a Windows HDC from a Moz2D DrawTarget. If the DrawTarget is * not backed by a HDC this will get the HDC for the screen device context diff --git a/storage/src/StorageBaseStatementInternal.h b/storage/src/StorageBaseStatementInternal.h index 77793c6d1a6..20b289fc1bf 100644 --- a/storage/src/StorageBaseStatementInternal.h +++ b/storage/src/StorageBaseStatementInternal.h @@ -13,7 +13,6 @@ struct sqlite3; struct sqlite3_stmt; -class mozIStorageError; class mozIStorageBindingParamsArray; class mozIStorageBindingParams; class mozIStorageStatementCallback; diff --git a/storage/src/mozStorageAsyncStatement.h b/storage/src/mozStorageAsyncStatement.h index 72534d07704..565d6127030 100644 --- a/storage/src/mozStorageAsyncStatement.h +++ b/storage/src/mozStorageAsyncStatement.h @@ -19,7 +19,6 @@ #include "mozilla/Attributes.h" class nsIXPConnectJSObjectHolder; -struct sqlite3_stmt; namespace mozilla { namespace storage { diff --git a/storage/src/mozStorageAsyncStatementParams.h b/storage/src/mozStorageAsyncStatementParams.h index 71f53dab65b..f753c6399f5 100644 --- a/storage/src/mozStorageAsyncStatementParams.h +++ b/storage/src/mozStorageAsyncStatementParams.h @@ -11,8 +11,6 @@ #include "nsIXPCScriptable.h" #include "mozilla/Attributes.h" -class mozIStorageAsyncStatement; - namespace mozilla { namespace storage { diff --git a/storage/src/mozStorageConnection.h b/storage/src/mozStorageConnection.h index 647541679fc..ae1611aef74 100644 --- a/storage/src/mozStorageConnection.h +++ b/storage/src/mozStorageConnection.h @@ -27,7 +27,6 @@ #include "sqlite3.h" -struct PRLock; class nsIFile; class nsIFileURL; class nsIEventTarget; diff --git a/storage/src/mozStoragePrivateHelpers.h b/storage/src/mozStoragePrivateHelpers.h index 92bd2c6c1b5..718ad402c1b 100644 --- a/storage/src/mozStoragePrivateHelpers.h +++ b/storage/src/mozStoragePrivateHelpers.h @@ -19,8 +19,6 @@ #include "Variant.h" class mozIStorageCompletionCallback; -class mozIStorageBaseStatement; -class mozIStorageBindingParams; class nsIRunnable; namespace mozilla { diff --git a/widget/PuppetWidget.h b/widget/PuppetWidget.h index 602f7224c11..0a052982afa 100644 --- a/widget/PuppetWidget.h +++ b/widget/PuppetWidget.h @@ -24,8 +24,6 @@ #include "mozilla/Attributes.h" #include "mozilla/EventForwards.h" -class gfxASurface; - namespace mozilla { namespace dom { diff --git a/widget/android/AndroidBridge.h b/widget/android/AndroidBridge.h index 8e1aaf625d4..2ab5c1e89a5 100644 --- a/widget/android/AndroidBridge.h +++ b/widget/android/AndroidBridge.h @@ -36,8 +36,6 @@ // #define DEBUG_ANDROID_EVENTS // #define DEBUG_ANDROID_WIDGET -class nsWindow; -class nsIDOMMozSmsMessage; class nsIObserver; class Task; @@ -62,10 +60,6 @@ struct SmsFilterData; } // namespace mobilemessage } // namespace dom -namespace layers { -class CompositorParent; -} // namespace layers - // The order and number of the members in this structure must correspond // to the attrsAppearance array in GeckoAppShell.getSystemColors() typedef struct AndroidSystemColors { diff --git a/widget/android/AndroidJavaWrappers.h b/widget/android/AndroidJavaWrappers.h index 9f71e217a58..5868bb7b0e4 100644 --- a/widget/android/AndroidJavaWrappers.h +++ b/widget/android/AndroidJavaWrappers.h @@ -27,7 +27,6 @@ //#define FORCE_ALOG 1 class nsIAndroidDisplayport; -class nsIAndroidViewport; class nsIWidget; namespace mozilla { diff --git a/widget/android/GfxInfo.h b/widget/android/GfxInfo.h index b451cca40cf..d9e92e4509b 100644 --- a/widget/android/GfxInfo.h +++ b/widget/android/GfxInfo.h @@ -16,10 +16,6 @@ namespace mozilla { -namespace gl { -class GLContext; -} - namespace widget { class GfxInfo : public GfxInfoBase diff --git a/widget/cocoa/nsAppShell.h b/widget/cocoa/nsAppShell.h index ca0f90945f7..bf5b06a4943 100644 --- a/widget/cocoa/nsAppShell.h +++ b/widget/cocoa/nsAppShell.h @@ -11,8 +11,6 @@ #ifndef nsAppShell_h_ #define nsAppShell_h_ -class nsCocoaWindow; - #include "nsBaseAppShell.h" #include "nsTArray.h" diff --git a/widget/cocoa/nsChildView.h b/widget/cocoa/nsChildView.h index 4b8ea6ab257..c1f8c470983 100644 --- a/widget/cocoa/nsChildView.h +++ b/widget/cocoa/nsChildView.h @@ -33,7 +33,6 @@ #import #import -class gfxASurface; class nsChildView; class nsCocoaWindow; diff --git a/widget/cocoa/nsMenuBarX.h b/widget/cocoa/nsMenuBarX.h index a27d373b960..e0594bc1812 100644 --- a/widget/cocoa/nsMenuBarX.h +++ b/widget/cocoa/nsMenuBarX.h @@ -17,7 +17,6 @@ class nsMenuX; class nsMenuBarX; -class nsMenuItemX; class nsIWidget; class nsIContent; diff --git a/widget/cocoa/nsMenuGroupOwnerX.h b/widget/cocoa/nsMenuGroupOwnerX.h index caed9a50cc4..5972fa9ddc0 100644 --- a/widget/cocoa/nsMenuGroupOwnerX.h +++ b/widget/cocoa/nsMenuGroupOwnerX.h @@ -16,12 +16,10 @@ #include "nsString.h" -class nsMenuX; class nsMenuItemX; class nsChangeObserver; class nsIWidget; class nsIContent; -class nsIDocument; class nsMenuGroupOwnerX : public nsMenuObjectX, public nsIMutationObserver { diff --git a/widget/gonk/HwcComposer2D.h b/widget/gonk/HwcComposer2D.h index 0de54caf2cd..bb68ff6cf8b 100644 --- a/widget/gonk/HwcComposer2D.h +++ b/widget/gonk/HwcComposer2D.h @@ -38,7 +38,6 @@ namespace gl { namespace layers { class CompositorParent; -class ContainerLayer; class Layer; } diff --git a/widget/gonk/libdisplay/FramebufferSurface.h b/widget/gonk/libdisplay/FramebufferSurface.h index 0e4c2aa4023..f90dcd8dacf 100644 --- a/widget/gonk/libdisplay/FramebufferSurface.h +++ b/widget/gonk/libdisplay/FramebufferSurface.h @@ -28,7 +28,6 @@ namespace android { class Rect; class String8; -class HWComposer; #if ANDROID_VERSION >= 21 typedef IGraphicBufferConsumer StreamConsumer; diff --git a/widget/gonk/libdisplay/GonkDisplay.h b/widget/gonk/libdisplay/GonkDisplay.h index d90a0f96837..c5b33c650b9 100644 --- a/widget/gonk/libdisplay/GonkDisplay.h +++ b/widget/gonk/libdisplay/GonkDisplay.h @@ -21,10 +21,6 @@ namespace mozilla { -namespace layers { -class Layer; -} - typedef void * EGLDisplay; typedef void * EGLSurface; diff --git a/widget/gonk/nativewindow/GonkBufferQueueLL/GonkBufferQueueProducer.h b/widget/gonk/nativewindow/GonkBufferQueueLL/GonkBufferQueueProducer.h index 17f94c201c8..a1a22416add 100644 --- a/widget/gonk/nativewindow/GonkBufferQueueLL/GonkBufferQueueProducer.h +++ b/widget/gonk/nativewindow/GonkBufferQueueLL/GonkBufferQueueProducer.h @@ -23,8 +23,6 @@ namespace android { -class GonkBufferSlot; - class GonkBufferQueueProducer : public BnGraphicBufferProducer, private IBinder::DeathRecipient { public: diff --git a/widget/gonk/nsWindow.h b/widget/gonk/nsWindow.h index 934d470187a..1c3991a66ca 100644 --- a/widget/gonk/nsWindow.h +++ b/widget/gonk/nsWindow.h @@ -23,22 +23,8 @@ #include "Units.h" extern nsIntRect gScreenBounds; - -namespace mozilla { -namespace gl { -class GLContext; -} -namespace layers { -class LayersManager; -} -} - class ANativeWindowBuffer; -namespace android { -class FramebufferNativeWindow; -} - namespace widget { struct InputContext; struct InputContextAction; diff --git a/widget/gtk/nsPSPrinters.h b/widget/gtk/nsPSPrinters.h index e47b31eef57..b584ef715a2 100644 --- a/widget/gtk/nsPSPrinters.h +++ b/widget/gtk/nsPSPrinters.h @@ -10,8 +10,6 @@ #include "nsString.h" #include "nsTArray.h" -class nsCUPSShim; - class nsPSPrinterList { public: nsPSPrinterList(); diff --git a/widget/gtk/nsWindow.h b/widget/gtk/nsWindow.h index 355aadc8e69..cc2a0efcada 100644 --- a/widget/gtk/nsWindow.h +++ b/widget/gtk/nsWindow.h @@ -61,7 +61,6 @@ extern PRLogModuleInfo *gWidgetDrawLog; class gfxASurface; class gfxPattern; -class nsDragService; class nsPluginNativeWindowGtk; #if defined(MOZ_X11) && defined(MOZ_HAVE_SHAREDMEMORYSYSV) # define MOZ_HAVE_SHMIMAGE diff --git a/widget/nsBaseClipboard.h b/widget/nsBaseClipboard.h index 8ceafdb1301..538389ce96e 100644 --- a/widget/nsBaseClipboard.h +++ b/widget/nsBaseClipboard.h @@ -10,7 +10,6 @@ #include "nsITransferable.h" class nsITransferable; -class nsDataObj; class nsIClipboardOwner; class nsIWidget; diff --git a/widget/nsBaseDragService.h b/widget/nsBaseDragService.h index a86ff3c02d7..60713916da8 100644 --- a/widget/nsBaseDragService.h +++ b/widget/nsBaseDragService.h @@ -24,10 +24,8 @@ class nsIContent; class nsIDOMNode; -class nsIFrame; class nsPresContext; class nsIImageLoadingContent; -class nsICanvasElementExternal; namespace mozilla { namespace gfx { diff --git a/widget/nsIWidget.h b/widget/nsIWidget.h index 5b9e5772b67..74e752541f4 100644 --- a/widget/nsIWidget.h +++ b/widget/nsIWidget.h @@ -28,9 +28,6 @@ #include "Units.h" // forward declarations -class nsFontMetrics; -class nsDeviceContext; -struct nsFont; class nsIRollupListener; class imgIContainer; class nsIContent; diff --git a/widget/nsPrintOptionsImpl.h b/widget/nsPrintOptionsImpl.h index 262518b5ecf..8b2616907bc 100644 --- a/widget/nsPrintOptionsImpl.h +++ b/widget/nsPrintOptionsImpl.h @@ -15,7 +15,6 @@ #include "nsFont.h" class nsIPrintSettings; -class nsIWebBrowserPrint; /** * Class nsPrintOptions diff --git a/widget/nsTransferable.h b/widget/nsTransferable.h index da94ed27f66..135f0411d3e 100644 --- a/widget/nsTransferable.h +++ b/widget/nsTransferable.h @@ -14,7 +14,6 @@ #include "nsWeakPtr.h" class nsString; -class nsDataObj; // // DataStruct diff --git a/widget/qt/nsWindow.h b/widget/qt/nsWindow.h index f8d054bba2a..2675939eeb1 100644 --- a/widget/qt/nsWindow.h +++ b/widget/qt/nsWindow.h @@ -59,7 +59,6 @@ extern PRLogModuleInfo *gWidgetDrawLog; #endif /* MOZ_LOGGING */ -class nsIdleService; class QCloseEvent; class QFocusEvent; class QHideEvent; diff --git a/widget/windows/KeyboardLayout.h b/widget/windows/KeyboardLayout.h index 79979044c6e..4d57e3786a1 100644 --- a/widget/windows/KeyboardLayout.h +++ b/widget/windows/KeyboardLayout.h @@ -37,7 +37,6 @@ #define VK_OEM_CLEAR 0xFE class nsIIdleServiceInternal; -struct nsModifierKeyState; namespace mozilla { namespace widget { diff --git a/widget/windows/nsClipboard.h b/widget/windows/nsClipboard.h index 8037d340da3..b1157eb510e 100644 --- a/widget/windows/nsClipboard.h +++ b/widget/windows/nsClipboard.h @@ -12,7 +12,6 @@ #include class nsITransferable; -class nsIClipboardOwner; class nsIWidget; class nsIFile; struct IDataObject; diff --git a/widget/windows/nsDataObjCollection.h b/widget/windows/nsDataObjCollection.h index 5a1cd3315bd..35f1429dbfa 100644 --- a/widget/windows/nsDataObjCollection.h +++ b/widget/windows/nsDataObjCollection.h @@ -14,8 +14,6 @@ #include "nsDataObj.h" #include "mozilla/Attributes.h" -class CEnumFormatEtc; - #define MULTI_MIME "Mozilla/IDataObjectCollectionFormat" EXTERN_C const IID IID_IDataObjCollection; diff --git a/widget/windows/nsDragService.h b/widget/windows/nsDragService.h index 236910adae6..eb165da6e9d 100644 --- a/widget/windows/nsDragService.h +++ b/widget/windows/nsDragService.h @@ -10,11 +10,8 @@ #include #include -struct IDropSource; struct IDataObject; -class nsNativeDragTarget; class nsDataObjCollection; -class nsString; /** * Native Win32 DragService wrapper diff --git a/widget/windows/nsNativeDragTarget.h b/widget/windows/nsNativeDragTarget.h index 102f7c5901e..703fa96d888 100644 --- a/widget/windows/nsNativeDragTarget.h +++ b/widget/windows/nsNativeDragTarget.h @@ -20,8 +20,6 @@ class nsIDragService; class nsIWidget; -struct IDataObject; - /* * nsNativeDragTarget implements the IDropTarget interface and gets most of its * behavior from the associated adapter (m_dragDrop). diff --git a/widget/windows/nsTextStore.h b/widget/windows/nsTextStore.h index 88c1c67ef9c..4f1412b1e04 100644 --- a/widget/windows/nsTextStore.h +++ b/widget/windows/nsTextStore.h @@ -38,10 +38,6 @@ struct ITfDocumentMgr; struct ITfDisplayAttributeMgr; struct ITfCategoryMgr; class nsWindow; -#ifdef MOZ_METRO -class MetroWidget; -#endif -class TSFStaticSink; namespace mozilla { namespace widget { diff --git a/widget/windows/nsWindow.h b/widget/windows/nsWindow.h index 95d5f08d51e..1bc14a8594b 100644 --- a/widget/windows/nsWindow.h +++ b/widget/windows/nsWindow.h @@ -49,14 +49,12 @@ class nsNativeDragTarget; class nsIRollupListener; -class nsIFile; class nsIntRegion; class imgIContainer; namespace mozilla { namespace widget { class NativeKey; -class ModifierKeyState; struct MSGResult; } // namespace widget } // namespacw mozilla; diff --git a/xpcom/base/nsMemoryInfoDumper.h b/xpcom/base/nsMemoryInfoDumper.h index 39ed8f62ce7..6bba176f2de 100644 --- a/xpcom/base/nsMemoryInfoDumper.h +++ b/xpcom/base/nsMemoryInfoDumper.h @@ -10,8 +10,6 @@ #include "nsIMemoryInfoDumper.h" #include -class nsACString; - /** * This class facilitates dumping information about our memory usage to disk. * diff --git a/xpcom/build/Omnijar.h b/xpcom/build/Omnijar.h index 7d2688a4a0b..72277c85fef 100644 --- a/xpcom/build/Omnijar.h +++ b/xpcom/build/Omnijar.h @@ -13,8 +13,6 @@ #include "nsIFile.h" #include "nsZipArchive.h" -class nsIURI; - namespace mozilla { class Omnijar diff --git a/xpcom/build/nsXPCOMPrivate.h b/xpcom/build/nsXPCOMPrivate.h index 613ef3f0d80..4898abae3dd 100644 --- a/xpcom/build/nsXPCOMPrivate.h +++ b/xpcom/build/nsXPCOMPrivate.h @@ -14,7 +14,6 @@ class nsStringContainer; class nsCStringContainer; -class nsIComponentLoader; class nsPurpleBufferEntry; /** diff --git a/xpcom/components/ManifestParser.h b/xpcom/components/ManifestParser.h index 1f360930b94..2f63a8c69a1 100644 --- a/xpcom/components/ManifestParser.h +++ b/xpcom/components/ManifestParser.h @@ -13,8 +13,6 @@ #endif // !defined(MOZILLA_XPCOMRT_API) #include "mozilla/FileLocation.h" -class nsIFile; - void ParseManifest(NSLocationType aType, mozilla::FileLocation& aFile, char* aBuf, bool aChromeOnly, bool aXPTOnly = false); diff --git a/xpcom/ds/nsObserverList.h b/xpcom/ds/nsObserverList.h index 4e8c3e08431..c69025a9f9e 100644 --- a/xpcom/ds/nsObserverList.h +++ b/xpcom/ds/nsObserverList.h @@ -17,10 +17,6 @@ #include "nsISimpleEnumerator.h" #include "mozilla/Attributes.h" -namespace mozilla { -class ObserverServiceReporter; -} // namespace mozilla - struct ObserverRef { ObserverRef(const ObserverRef& aO) : isWeakRef(aO.isWeakRef), ref(aO.ref) {} diff --git a/xpcom/glue/nsCOMPtr.h b/xpcom/glue/nsCOMPtr.h index 8b3fad79c20..f3a5de4aca9 100644 --- a/xpcom/glue/nsCOMPtr.h +++ b/xpcom/glue/nsCOMPtr.h @@ -109,9 +109,6 @@ #endif namespace mozilla { - -struct unused_t; - namespace dom { template class OwningNonNull; } // namespace dom diff --git a/xpcom/reflect/xptinfo/ShimInterfaceInfo.h b/xpcom/reflect/xptinfo/ShimInterfaceInfo.h index ebc86f19c44..ecfa158605f 100644 --- a/xpcom/reflect/xptinfo/ShimInterfaceInfo.h +++ b/xpcom/reflect/xptinfo/ShimInterfaceInfo.h @@ -19,7 +19,6 @@ namespace mozilla { namespace dom { -struct ConstantSpec; struct NativePropertyHooks; } } diff --git a/xpcom/reflect/xptinfo/xptinfo.h b/xpcom/reflect/xptinfo/xptinfo.h index b107583352c..5e1981607ec 100644 --- a/xpcom/reflect/xptinfo/xptinfo.h +++ b/xpcom/reflect/xptinfo/xptinfo.h @@ -11,8 +11,6 @@ #include "nscore.h" #include "xpt_struct.h" -class nsIInterfaceInfoManager; - // Flyweight wrapper classes for xpt_struct.h structs. // Everything here is dependent upon - and sensitive to changes in - // xpcom/typelib/xpt/xpt_struct.h!