Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 760cc7e

Browse files
committed
Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert
- Add missing include directives and forward declarations. - Remove some extra include directives. - Add missing namespace qualifications. - Move include directives out of namespace in toolkit/xre/GlobalSemaphore.h Differential Revision: https://phabricator.services.mozilla.com/D98894
1 parent b2f2b15 commit 760cc7e

93 files changed

Lines changed: 238 additions & 37 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dom/base/MessageManagerCallback.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@
77
#ifndef dom_base_MessageManagerCallback_h__
88
#define dom_base_MessageManagerCallback_h__
99

10+
#include "nsError.h"
1011
#include "nsStringFwd.h"
1112
#include "nsTArrayForwardDeclare.h"
1213

1314
namespace mozilla {
15+
16+
class ErrorResult;
17+
1418
namespace dom {
1519

20+
class ClonedMessageData;
21+
class ContentChild;
22+
class ContentParent;
1623
class ProcessMessageManager;
1724

1825
namespace ipc {

dom/base/Pose.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef mozilla_dom_Pose_h
88
#define mozilla_dom_Pose_h
99

10+
#include "js/RootingAPI.h"
11+
#include "nsCOMPtr.h"
1012
#include "nsWrapperCache.h"
1113

1214
namespace mozilla {

dom/base/TextInputProcessor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#define mozilla_dom_textinputprocessor_h_
99

1010
#include "mozilla/Attributes.h"
11+
#include "mozilla/BasicEvents.h"
1112
#include "mozilla/EventForwards.h"
1213
#include "mozilla/Maybe.h"
1314
#include "mozilla/TextEventDispatcher.h"

dom/base/nsGlobalWindowOuter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include "mozilla/dom/ImageBitmapSource.h"
5151
#include "mozilla/UniquePtr.h"
5252
#include "mozilla/dom/BrowsingContext.h"
53+
#include "X11UndefineNone.h"
5354

5455
class nsDocShell;
5556
class nsIArray;

dom/canvas/WebGLTexelConversions.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939

4040
namespace mozilla {
4141

42+
namespace gl {
43+
enum class OriginPos : uint8_t;
44+
}
45+
4246
bool ConvertImage(size_t width, size_t height, const void* srcBegin,
4347
size_t srcStride, gl::OriginPos srcOrigin,
4448
WebGLTexelFormat srcFormat, bool srcPremultiplied,

dom/events/DataTransferItem.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class ErrorResult;
1616

1717
namespace dom {
1818

19+
class DataTransfer;
1920
class FileSystemEntry;
2021
class FunctionStringCallback;
2122

dom/events/DataTransferItemList.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
#include "mozilla/dom/DataTransferItem.h"
1212
#include "mozilla/dom/FileList.h"
1313

14+
class nsIVariant;
15+
1416
namespace mozilla {
1517
namespace dom {
1618

19+
class DataTransfer;
1720
class DataTransferItem;
1821

1922
class DataTransferItemList final : public nsISupports, public nsWrapperCache {

dom/events/PendingFullscreenEvent.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#ifndef mozilla_PendingFullscreenEvent_h_
88
#define mozilla_PendingFullscreenEvent_h_
99

10+
#include "mozilla/dom/Document.h"
1011
#include "nsContentUtils.h"
1112

1213
namespace mozilla {

dom/file/MutableBlobStorage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "mozilla/RefPtr.h"
1111
#include "mozilla/Mutex.h"
1212
#include "nsCOMPtr.h"
13+
#include "nsString.h"
1314
#include "prio.h"
1415

1516
class nsIEventTarget;

dom/gamepad/Gamepad.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
namespace mozilla {
2626
namespace dom {
2727

28+
class GamepadHapticActuator;
29+
2830
// Per spec:
2931
// https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#remapping
3032
const int kStandardGamepadButtons = 17;

0 commit comments

Comments
 (0)