Skip to content

Commit b1d9633

Browse files
committed
Bug 1768189 - Part 11: Apply modernize-concat-nested-namespaces to dom/filesystem/compat/CallbackRunnables.h ... r=andi
Depends on D145744 Differential Revision: https://phabricator.services.mozilla.com/D145745
1 parent 48f10ba commit b1d9633

25 files changed

+50
-100
lines changed

dom/filesystem/compat/CallbackRunnables.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
class nsIGlobalObject;
1616

17-
namespace mozilla {
18-
namespace dom {
17+
namespace mozilla::dom {
1918

2019
class FileSystemEntriesCallback;
2120

@@ -114,7 +113,6 @@ class ErrorCallbackHelper {
114113
nsresult aError);
115114
};
116115

117-
} // namespace dom
118-
} // namespace mozilla
116+
} // namespace mozilla::dom
119117

120118
#endif // mozilla_dom_CallbackRunnables_h

dom/filesystem/compat/FileSystem.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
class nsIGlobalObject;
1616

17-
namespace mozilla {
18-
namespace dom {
17+
namespace mozilla::dom {
1918

2019
class FileSystemDirectoryEntry;
2120
class FileSystemEntry;
@@ -48,7 +47,6 @@ class FileSystem final : public nsISupports, public nsWrapperCache {
4847
nsString mName;
4948
};
5049

51-
} // namespace dom
52-
} // namespace mozilla
50+
} // namespace mozilla::dom
5351

5452
#endif // mozilla_dom_FileSystem_h

dom/filesystem/compat/FileSystemDirectoryEntry.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
#include "mozilla/dom/FileSystemEntry.h"
1111

12-
namespace mozilla {
13-
namespace dom {
12+
namespace mozilla::dom {
1413

1514
class Directory;
1615
class FileSystemDirectoryReader;
@@ -69,7 +68,6 @@ class FileSystemDirectoryEntry : public FileSystemEntry {
6968
RefPtr<Directory> mDirectory;
7069
};
7170

72-
} // namespace dom
73-
} // namespace mozilla
71+
} // namespace mozilla::dom
7472

7573
#endif // mozilla_dom_FileSystemDirectoryEntry_h

dom/filesystem/compat/FileSystemFileEntry.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
#include "mozilla/dom/FileSystemEntry.h"
1111

12-
namespace mozilla {
13-
namespace dom {
12+
namespace mozilla::dom {
1413

1514
class File;
1615
class FileCallback;
@@ -45,7 +44,6 @@ class FileSystemFileEntry final : public FileSystemEntry {
4544
RefPtr<File> mFile;
4645
};
4746

48-
} // namespace dom
49-
} // namespace mozilla
47+
} // namespace mozilla::dom
5048

5149
#endif // mozilla_dom_FileSystemFileEntry_h

dom/filesystem/compat/FileSystemRootDirectoryEntry.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
#include "mozilla/dom/FileSystemDirectoryEntry.h"
1111

12-
namespace mozilla {
13-
namespace dom {
12+
namespace mozilla::dom {
1413

1514
class FileSystemRootDirectoryEntry final : public FileSystemDirectoryEntry {
1615
public:
@@ -44,7 +43,6 @@ class FileSystemRootDirectoryEntry final : public FileSystemDirectoryEntry {
4443
Sequence<RefPtr<FileSystemEntry>> mEntries;
4544
};
4645

47-
} // namespace dom
48-
} // namespace mozilla
46+
} // namespace mozilla::dom
4947

5048
#endif // mozilla_dom_FileSystemRootDirectoryEntry_h

dom/filesystem/compat/FileSystemRootDirectoryReader.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
#include "FileSystemDirectoryReader.h"
1111

12-
namespace mozilla {
13-
namespace dom {
12+
namespace mozilla::dom {
1413

1514
class FileSystemRootDirectoryReader final : public FileSystemDirectoryReader {
1615
public:
@@ -34,7 +33,6 @@ class FileSystemRootDirectoryReader final : public FileSystemDirectoryReader {
3433
bool mAlreadyRead;
3534
};
3635

37-
} // namespace dom
38-
} // namespace mozilla
36+
} // namespace mozilla::dom
3937

4038
#endif // mozilla_dom_FileSystemRootDirectoryReader_h

dom/flex/Flex.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313

1414
class nsFlexContainerFrame;
1515

16-
namespace mozilla {
17-
namespace dom {
16+
namespace mozilla::dom {
1817

1918
class Element;
2019
class FlexLineValues;
@@ -45,7 +44,6 @@ class Flex : public nsISupports, public nsWrapperCache {
4544
FlexPhysicalDirection mCrossAxisDirection;
4645
};
4746

48-
} // namespace dom
49-
} // namespace mozilla
47+
} // namespace mozilla::dom
5048

5149
#endif /* mozilla_dom_Flex_h */

dom/flex/FlexItemValues.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ struct ComputedFlexItemInfo;
1515

1616
class nsINode;
1717

18-
namespace mozilla {
19-
namespace dom {
18+
namespace mozilla::dom {
2019

2120
class DOMRectReadOnly;
2221

@@ -63,7 +62,6 @@ class FlexItemValues : public nsISupports, public nsWrapperCache {
6362
FlexItemClampState mClampState;
6463
};
6564

66-
} // namespace dom
67-
} // namespace mozilla
65+
} // namespace mozilla::dom
6866

6967
#endif /* mozilla_dom_FlexItemValues_h */

dom/flex/FlexLineValues.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313

1414
struct ComputedFlexLineInfo;
1515

16-
namespace mozilla {
17-
namespace dom {
16+
namespace mozilla::dom {
1817

1918
class Flex;
2019
class FlexItemValues;
@@ -54,7 +53,6 @@ class FlexLineValues : public nsISupports, public nsWrapperCache {
5453
nsTArray<RefPtr<FlexItemValues>> mItems;
5554
};
5655

57-
} // namespace dom
58-
} // namespace mozilla
56+
} // namespace mozilla::dom
5957

6058
#endif /* mozilla_dom_FlexLineValues_h */

dom/gamepad/Gamepad.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
#include "nsTArray.h"
2323
#include "nsWrapperCache.h"
2424

25-
namespace mozilla {
26-
namespace dom {
25+
namespace mozilla::dom {
2726

2827
class GamepadHapticActuator;
2928

@@ -141,7 +140,6 @@ class Gamepad final : public nsISupports, public nsWrapperCache {
141140
nsTHashMap<nsUint32HashKey, uint32_t> mTouchIdHash;
142141
};
143142

144-
} // namespace dom
145-
} // namespace mozilla
143+
} // namespace mozilla::dom
146144

147145
#endif // mozilla_dom_gamepad_Gamepad_h

dom/gamepad/GamepadButton.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#include "nsCOMPtr.h"
1212
#include "nsWrapperCache.h"
1313

14-
namespace mozilla {
15-
namespace dom {
14+
namespace mozilla::dom {
1615

1716
class GamepadButton : public nsISupports, public nsWrapperCache {
1817
public:
@@ -49,7 +48,6 @@ class GamepadButton : public nsISupports, public nsWrapperCache {
4948
bool mTouched;
5049
};
5150

52-
} // namespace dom
53-
} // namespace mozilla
51+
} // namespace mozilla::dom
5452

5553
#endif // mozilla_dom_gamepad_GamepadButton_h

dom/gamepad/GamepadHapticActuator.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#include "mozilla/dom/Gamepad.h"
1414
#include "mozilla/dom/GamepadHandle.h"
1515

16-
namespace mozilla {
17-
namespace dom {
16+
namespace mozilla::dom {
1817
class Promise;
1918

2019
class GamepadHapticActuator : public nsISupports, public nsWrapperCache {
@@ -47,7 +46,6 @@ class GamepadHapticActuator : public nsISupports, public nsWrapperCache {
4746
uint32_t mIndex;
4847
};
4948

50-
} // namespace dom
51-
} // namespace mozilla
49+
} // namespace mozilla::dom
5250

5351
#endif // mozilla_dom_gamepad_GamepadHapticActuator_h

dom/gamepad/GamepadLightIndicator.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#include "mozilla/dom/GamepadHandle.h"
1212
#include "nsWrapperCache.h"
1313

14-
namespace mozilla {
15-
namespace dom {
14+
namespace mozilla::dom {
1615

1716
class GamepadLightIndicator final : public nsISupports, public nsWrapperCache {
1817
public:
@@ -49,7 +48,6 @@ class GamepadLightIndicator final : public nsISupports, public nsWrapperCache {
4948
uint32_t mIndex;
5049
};
5150

52-
} // namespace dom
53-
} // namespace mozilla
51+
} // namespace mozilla::dom
5452

5553
#endif // mozilla_dom_gamepad_GamepadLightIndicator_h

dom/gamepad/GamepadMonitoring.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
#define mozilla_dom_GamepadMonitoring_h_
99
#include "mozilla/dom/GamepadHandle.h"
1010

11-
namespace mozilla {
12-
namespace dom {
11+
namespace mozilla::dom {
1312

1413
// These two functions are implemented in the platform specific service files
1514
// (linux/LinuxGamepad.cpp, cocoa/CocoaGamepad.cpp, etc)
@@ -20,7 +19,6 @@ void SetGamepadLightIndicatorColor(const Tainted<GamepadHandle>& aGamepadHandle,
2019
const uint8_t& aRed, const uint8_t& aGreen,
2120
const uint8_t& aBlue);
2221

23-
} // namespace dom
24-
} // namespace mozilla
22+
} // namespace mozilla::dom
2523

2624
#endif

dom/gamepad/GamepadPlatformService.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
#include "mozilla/Vector.h"
1717
#include "mozilla/WeakPtr.h"
1818

19-
namespace mozilla {
20-
namespace dom {
19+
namespace mozilla::dom {
2120

2221
class GamepadAdded;
2322
class GamepadEventChannelParent;
@@ -146,7 +145,6 @@ class GamepadPlatformService final {
146145
std::map<GamepadHandle, GamepadAdded> mGamepadAdded;
147146
};
148147

149-
} // namespace dom
150-
} // namespace mozilla
148+
} // namespace mozilla::dom
151149

152150
#endif

dom/gamepad/GamepadPose.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
#include "mozilla/dom/GamepadPoseState.h"
1313
#include "nsCOMPtr.h"
1414

15-
namespace mozilla {
16-
namespace dom {
15+
namespace mozilla::dom {
1716

1817
class GamepadPose final : public Pose {
1918
public:
@@ -53,7 +52,6 @@ class GamepadPose final : public Pose {
5352
GamepadPoseState mPoseState;
5453
};
5554

56-
} // namespace dom
57-
} // namespace mozilla
55+
} // namespace mozilla::dom
5856

5957
#endif // mozilla_dom_gamepad_GamepadPose_h

dom/gamepad/GamepadPoseState.h

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

10-
namespace mozilla {
11-
namespace dom {
10+
namespace mozilla::dom {
1211

1312
enum class GamepadCapabilityFlags : uint16_t {
1413
Cap_None = 0,
@@ -106,7 +105,6 @@ struct GamepadPoseState {
106105
}
107106
};
108107

109-
} // namespace dom
110-
} // namespace mozilla
108+
} // namespace mozilla::dom
111109

112110
#endif // mozilla_dom_gamepad_GamepadPoseState_h_

dom/gamepad/GamepadRemapping.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
#include "mozilla/dom/GamepadPoseState.h"
1313
#include "mozilla/dom/GamepadTouchState.h"
1414

15-
namespace mozilla {
16-
namespace dom {
15+
namespace mozilla::dom {
1716

1817
// GamepadId is (vendorId << 16) | productId)
1918
enum class GamepadId : uint32_t {
@@ -136,7 +135,6 @@ already_AddRefed<GamepadRemapper> GetGamepadRemapper(const uint16_t aVendorId,
136135
const uint16_t aProductId,
137136
bool& aUsingDefault);
138137

139-
} // namespace dom
140-
} // namespace mozilla
138+
} // namespace mozilla::dom
141139

142140
#endif // mozilla_dom_GamepadRemapping_h_

dom/gamepad/GamepadServiceTest.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#include "mozilla/dom/TypedArray.h"
1414
#include "mozilla/WeakPtr.h"
1515

16-
namespace mozilla {
17-
namespace dom {
16+
namespace mozilla::dom {
1817

1918
class GamepadChangeEvent;
2019
class GamepadManager;
@@ -110,7 +109,6 @@ class GamepadServiceTest final : public DOMEventTargetHelper,
110109
GamepadHandle GetHandleInSlot(uint32_t aHandleSlot) const;
111110
};
112111

113-
} // namespace dom
114-
} // namespace mozilla
112+
} // namespace mozilla::dom
115113

116114
#endif

dom/gamepad/GamepadTouch.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#include "mozilla/dom/GamepadTouchState.h"
1212
#include "nsWrapperCache.h"
1313

14-
namespace mozilla {
15-
namespace dom {
14+
namespace mozilla::dom {
1615

1716
class GamepadTouch final : public nsWrapperCache {
1817
public:
@@ -43,7 +42,6 @@ class GamepadTouch final : public nsWrapperCache {
4342
GamepadTouchState mTouchState;
4443
};
4544

46-
} // namespace dom
47-
} // namespace mozilla
45+
} // namespace mozilla::dom
4846

4947
#endif // mozilla_dom_gamepad_GamepadTouch_h

dom/gamepad/GamepadTouchState.h

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

10-
namespace mozilla {
11-
namespace dom {
10+
namespace mozilla::dom {
1211

1312
struct GamepadTouchState {
1413
uint32_t touchId;
@@ -38,7 +37,6 @@ struct GamepadTouchState {
3837
}
3938
};
4039

41-
} // namespace dom
42-
} // namespace mozilla
40+
} // namespace mozilla::dom
4341

4442
#endif // mozilla_dom_gamepad_GamepadTouchState_h_

0 commit comments

Comments
 (0)