2016-06-28 01:25:00 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "mozilla/dom/GamepadPlatformService.h"
|
|
|
|
|
|
|
|
#include "mozilla/dom/GamepadEventChannelParent.h"
|
2020-10-28 15:29:56 +03:00
|
|
|
#include "mozilla/dom/GamepadMonitoring.h"
|
2020-10-07 20:25:26 +03:00
|
|
|
#include "mozilla/dom/GamepadTestChannelParent.h"
|
2016-06-28 01:25:00 +03:00
|
|
|
#include "mozilla/ipc/BackgroundParent.h"
|
|
|
|
#include "mozilla/Mutex.h"
|
2016-08-23 07:09:32 +03:00
|
|
|
#include "mozilla/Unused.h"
|
2016-06-28 01:25:00 +03:00
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsHashKeys.h"
|
|
|
|
|
|
|
|
using namespace mozilla::ipc;
|
|
|
|
|
2020-11-04 20:04:01 +03:00
|
|
|
namespace mozilla::dom {
|
2016-06-28 01:25:00 +03:00
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// This is the singleton instance of GamepadPlatformService, can be called
|
|
|
|
// by both background and monitor thread.
|
2020-12-17 21:21:06 +03:00
|
|
|
StaticRefPtr<GamepadPlatformService> gGamepadPlatformServiceSingleton;
|
2016-06-28 01:25:00 +03:00
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
2020-12-03 01:32:30 +03:00
|
|
|
// static
|
|
|
|
GamepadMonitoringState& GamepadMonitoringState::GetSingleton() {
|
|
|
|
static GamepadMonitoringState sInstance{};
|
|
|
|
return sInstance;
|
2020-10-07 20:25:26 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 01:32:30 +03:00
|
|
|
void GamepadMonitoringState::AddObserver(GamepadTestChannelParent* aParent) {
|
2020-10-07 20:25:26 +03:00
|
|
|
AssertIsOnBackgroundThread();
|
|
|
|
MOZ_ASSERT(aParent);
|
2020-12-03 01:32:30 +03:00
|
|
|
MOZ_ALWAYS_TRUE(mObservers.append(aParent));
|
2020-10-07 20:25:26 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 01:32:30 +03:00
|
|
|
void GamepadMonitoringState::RemoveObserver(GamepadTestChannelParent* aParent) {
|
2020-10-07 20:25:26 +03:00
|
|
|
AssertIsOnBackgroundThread();
|
|
|
|
MOZ_ASSERT(aParent);
|
2020-12-03 01:32:30 +03:00
|
|
|
|
|
|
|
WeakPtr<GamepadTestChannelParent>* observer = nullptr;
|
|
|
|
|
|
|
|
for (auto& item : mObservers) {
|
|
|
|
if (item == aParent) {
|
|
|
|
observer = &item;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
MOZ_ASSERT(
|
|
|
|
observer,
|
|
|
|
"Attempted to remove a GamepadTestChannelParent that was never added");
|
|
|
|
|
|
|
|
std::swap(*observer, mObservers.back());
|
|
|
|
mObservers.popBack();
|
2020-10-07 20:25:26 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 01:32:30 +03:00
|
|
|
bool GamepadMonitoringState::IsMonitoring() const {
|
2020-10-07 20:25:26 +03:00
|
|
|
AssertIsOnBackgroundThread();
|
|
|
|
return mIsMonitoring;
|
|
|
|
}
|
|
|
|
|
2020-12-03 01:32:30 +03:00
|
|
|
void GamepadMonitoringState::Set(bool aIsMonitoring) {
|
2020-10-07 20:25:26 +03:00
|
|
|
AssertIsOnBackgroundThread();
|
|
|
|
|
|
|
|
if (mIsMonitoring != aIsMonitoring) {
|
|
|
|
mIsMonitoring = aIsMonitoring;
|
|
|
|
for (auto& observer : mObservers) {
|
2020-10-09 19:42:53 +03:00
|
|
|
// Since each GamepadTestChannelParent removes itself in its dtor, this
|
|
|
|
// should never be nullptr
|
|
|
|
MOZ_RELEASE_ASSERT(observer);
|
2020-10-07 20:25:26 +03:00
|
|
|
observer->OnMonitoringStateChanged(aIsMonitoring);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
GamepadPlatformService::GamepadPlatformService()
|
2020-12-03 02:06:05 +03:00
|
|
|
: mNextGamepadHandleValue(1),
|
2021-03-04 01:13:56 +03:00
|
|
|
mMutex("mozilla::dom::GamepadPlatformService") {}
|
2016-06-28 01:25:00 +03:00
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
GamepadPlatformService::~GamepadPlatformService() { Cleanup(); }
|
2016-06-28 01:25:00 +03:00
|
|
|
|
|
|
|
// static
|
2016-06-28 01:27:00 +03:00
|
|
|
already_AddRefed<GamepadPlatformService>
|
2016-06-28 01:25:00 +03:00
|
|
|
GamepadPlatformService::GetParentService() {
|
|
|
|
// GamepadPlatformService can only be accessed in parent process
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
2020-12-15 23:16:02 +03:00
|
|
|
if (!gGamepadPlatformServiceSingleton) {
|
2020-12-17 21:21:06 +03:00
|
|
|
// Only Background Thread can create new GamepadPlatformService instance.
|
|
|
|
if (IsOnBackgroundThread()) {
|
|
|
|
gGamepadPlatformServiceSingleton = new GamepadPlatformService();
|
|
|
|
} else {
|
|
|
|
return nullptr;
|
|
|
|
}
|
2020-12-15 23:16:02 +03:00
|
|
|
}
|
2020-12-17 21:21:06 +03:00
|
|
|
RefPtr<GamepadPlatformService> service(gGamepadPlatformServiceSingleton);
|
|
|
|
return service.forget();
|
2016-06-28 01:25:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
template <class T>
|
2020-12-17 21:21:06 +03:00
|
|
|
void GamepadPlatformService::NotifyGamepadChange(GamepadHandle aHandle,
|
|
|
|
const T& aInfo) {
|
2016-06-28 01:25:00 +03:00
|
|
|
// This method is called by monitor populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
|
|
|
|
2017-07-17 06:44:39 +03:00
|
|
|
GamepadChangeEventBody body(aInfo);
|
2020-12-03 02:06:05 +03:00
|
|
|
GamepadChangeEvent e(aHandle, body);
|
2016-10-23 20:32:00 +03:00
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
// mChannelParents may be accessed by background thread in the
|
|
|
|
// same time, we use mutex to prevent possible race condtion
|
|
|
|
MutexAutoLock autoLock(mMutex);
|
|
|
|
|
2016-06-28 01:25:00 +03:00
|
|
|
for (uint32_t i = 0; i < mChannelParents.Length(); ++i) {
|
|
|
|
mChannelParents[i]->DispatchUpdateEvent(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-03 02:06:05 +03:00
|
|
|
GamepadHandle GamepadPlatformService::AddGamepad(
|
2016-06-28 01:25:00 +03:00
|
|
|
const char* aID, GamepadMappingType aMapping, GamepadHand aHand,
|
2020-12-17 21:21:06 +03:00
|
|
|
uint32_t aNumButtons, uint32_t aNumAxes, uint32_t aHaptics,
|
2019-05-30 01:15:23 +03:00
|
|
|
uint32_t aNumLightIndicator, uint32_t aNumTouchEvents) {
|
2016-06-28 01:25:00 +03:00
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
|
|
|
|
2020-12-03 02:06:05 +03:00
|
|
|
GamepadHandle gamepadHandle{mNextGamepadHandleValue++,
|
|
|
|
GamepadHandleKind::GamepadPlatformManager};
|
2017-07-17 06:44:39 +03:00
|
|
|
|
2021-03-04 01:13:56 +03:00
|
|
|
// Only VR controllers has displayID, we give 0 to the general gamepads.
|
|
|
|
GamepadAdded a(NS_ConvertUTF8toUTF16(nsDependentCString(aID)), aMapping,
|
|
|
|
aHand, 0, aNumButtons, aNumAxes, aHaptics, aNumLightIndicator,
|
|
|
|
aNumTouchEvents);
|
2017-02-02 09:33:18 +03:00
|
|
|
|
2021-03-04 01:13:56 +03:00
|
|
|
mGamepadAdded.emplace(gamepadHandle, a);
|
|
|
|
NotifyGamepadChange<GamepadAdded>(gamepadHandle, a);
|
2020-12-03 02:06:05 +03:00
|
|
|
return gamepadHandle;
|
2016-06-28 01:25:00 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 02:06:05 +03:00
|
|
|
void GamepadPlatformService::RemoveGamepad(GamepadHandle aHandle) {
|
2016-06-28 01:25:00 +03:00
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
2021-03-04 01:13:56 +03:00
|
|
|
GamepadRemoved a;
|
|
|
|
NotifyGamepadChange<GamepadRemoved>(aHandle, a);
|
|
|
|
mGamepadAdded.erase(aHandle);
|
2016-06-28 01:25:00 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 02:06:05 +03:00
|
|
|
void GamepadPlatformService::NewButtonEvent(GamepadHandle aHandle,
|
2020-12-03 01:36:35 +03:00
|
|
|
uint32_t aButton, bool aPressed,
|
|
|
|
bool aTouched, double aValue) {
|
2016-06-28 01:25:00 +03:00
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
2021-03-04 01:13:56 +03:00
|
|
|
GamepadButtonInformation a(aButton, aValue, aPressed, aTouched);
|
|
|
|
NotifyGamepadChange<GamepadButtonInformation>(aHandle, a);
|
2016-06-28 01:25:00 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 02:06:05 +03:00
|
|
|
void GamepadPlatformService::NewButtonEvent(GamepadHandle aHandle,
|
2020-12-03 01:36:35 +03:00
|
|
|
uint32_t aButton, bool aPressed,
|
|
|
|
double aValue) {
|
2019-07-15 10:36:36 +03:00
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
|
|
|
// When only a digital button is available the value will be synthesized.
|
2020-12-03 02:06:05 +03:00
|
|
|
NewButtonEvent(aHandle, aButton, aPressed, aPressed, aValue);
|
2019-07-15 10:36:36 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 02:06:05 +03:00
|
|
|
void GamepadPlatformService::NewButtonEvent(GamepadHandle aHandle,
|
2020-12-03 01:36:35 +03:00
|
|
|
uint32_t aButton, bool aPressed,
|
|
|
|
bool aTouched) {
|
2017-04-07 04:35:13 +03:00
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
|
|
|
// When only a digital button is available the value will be synthesized.
|
2020-12-03 02:06:05 +03:00
|
|
|
NewButtonEvent(aHandle, aButton, aPressed, aTouched, aPressed ? 1.0L : 0.0L);
|
2017-04-07 04:35:13 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 02:06:05 +03:00
|
|
|
void GamepadPlatformService::NewButtonEvent(GamepadHandle aHandle,
|
2020-12-03 01:36:35 +03:00
|
|
|
uint32_t aButton, bool aPressed) {
|
2016-06-28 01:25:00 +03:00
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
|
|
|
// When only a digital button is available the value will be synthesized.
|
2020-12-03 02:06:05 +03:00
|
|
|
NewButtonEvent(aHandle, aButton, aPressed, aPressed, aPressed ? 1.0L : 0.0L);
|
2016-06-28 01:25:00 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 02:06:05 +03:00
|
|
|
void GamepadPlatformService::NewAxisMoveEvent(GamepadHandle aHandle,
|
2020-12-03 01:36:35 +03:00
|
|
|
uint32_t aAxis, double aValue) {
|
2016-06-28 01:25:00 +03:00
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
2021-03-04 01:13:56 +03:00
|
|
|
GamepadAxisInformation a(aAxis, aValue);
|
|
|
|
NotifyGamepadChange<GamepadAxisInformation>(aHandle, a);
|
2016-06-28 01:25:00 +03:00
|
|
|
}
|
|
|
|
|
2019-05-30 01:15:23 +03:00
|
|
|
void GamepadPlatformService::NewLightIndicatorTypeEvent(
|
2020-12-03 02:06:05 +03:00
|
|
|
GamepadHandle aHandle, uint32_t aLight, GamepadLightIndicatorType aType) {
|
2019-05-30 01:15:23 +03:00
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
2021-03-04 01:13:56 +03:00
|
|
|
GamepadLightIndicatorTypeInformation a(aLight, aType);
|
|
|
|
NotifyGamepadChange<GamepadLightIndicatorTypeInformation>(aHandle, a);
|
2019-05-30 01:15:23 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 02:06:05 +03:00
|
|
|
void GamepadPlatformService::NewPoseEvent(GamepadHandle aHandle,
|
2019-05-30 01:15:23 +03:00
|
|
|
const GamepadPoseState& aState) {
|
2017-02-02 10:00:51 +03:00
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
2021-03-04 01:13:56 +03:00
|
|
|
GamepadPoseInformation a(aState);
|
|
|
|
NotifyGamepadChange<GamepadPoseInformation>(aHandle, a);
|
2017-02-02 10:00:51 +03:00
|
|
|
}
|
|
|
|
|
2019-05-30 01:15:23 +03:00
|
|
|
void GamepadPlatformService::NewMultiTouchEvent(
|
2020-12-03 02:06:05 +03:00
|
|
|
GamepadHandle aHandle, uint32_t aTouchArrayIndex,
|
2019-05-30 01:15:23 +03:00
|
|
|
const GamepadTouchState& aState) {
|
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
|
|
|
|
2021-03-04 01:13:56 +03:00
|
|
|
GamepadTouchInformation a(aTouchArrayIndex, aState);
|
|
|
|
NotifyGamepadChange<GamepadTouchInformation>(aHandle, a);
|
2016-06-28 01:25:00 +03:00
|
|
|
}
|
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
void GamepadPlatformService::ResetGamepadIndexes() {
|
|
|
|
// This method is called by monitor thread populated in
|
|
|
|
// platform-dependent backends
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess());
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread());
|
|
|
|
mNextGamepadHandleValue = 1;
|
2020-12-03 01:36:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void GamepadPlatformService::AddChannelParent(
|
2020-12-17 21:21:06 +03:00
|
|
|
GamepadEventChannelParent* aParent) {
|
2016-06-28 01:25:00 +03:00
|
|
|
// mChannelParents can only be modified once GamepadEventChannelParent
|
|
|
|
// is created or removed in Background thread
|
|
|
|
AssertIsOnBackgroundThread();
|
|
|
|
MOZ_ASSERT(aParent);
|
2020-12-17 21:21:06 +03:00
|
|
|
MOZ_ASSERT(!mChannelParents.Contains(aParent));
|
2016-06-28 01:25:00 +03:00
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
// We use mutex here to prevent race condition with monitor thread
|
2020-12-15 23:16:02 +03:00
|
|
|
{
|
2020-12-17 21:21:06 +03:00
|
|
|
MutexAutoLock autoLock(mMutex);
|
|
|
|
mChannelParents.AppendElement(aParent);
|
|
|
|
|
|
|
|
// For a new GamepadEventChannel, we have to send the exising GamepadAdded
|
|
|
|
// to it to make it can have the same amount of gamepads with others.
|
2021-03-04 01:13:56 +03:00
|
|
|
if (mChannelParents.Length() > 1) {
|
|
|
|
for (const auto& evt : mGamepadAdded) {
|
|
|
|
GamepadChangeEventBody body(evt.second);
|
|
|
|
GamepadChangeEvent e(evt.first, body);
|
|
|
|
aParent->DispatchUpdateEvent(e);
|
2020-12-17 21:21:06 +03:00
|
|
|
}
|
2020-12-15 23:16:02 +03:00
|
|
|
}
|
|
|
|
}
|
2020-10-07 20:25:26 +03:00
|
|
|
|
2020-12-03 01:36:35 +03:00
|
|
|
StartGamepadMonitoring();
|
2020-12-17 21:21:06 +03:00
|
|
|
|
2020-12-03 01:32:30 +03:00
|
|
|
GamepadMonitoringState::GetSingleton().Set(true);
|
2016-10-23 20:32:00 +03:00
|
|
|
}
|
|
|
|
|
2016-06-28 01:25:00 +03:00
|
|
|
void GamepadPlatformService::RemoveChannelParent(
|
|
|
|
GamepadEventChannelParent* aParent) {
|
|
|
|
// mChannelParents can only be modified once GamepadEventChannelParent
|
|
|
|
// is created or removed in Background thread
|
|
|
|
AssertIsOnBackgroundThread();
|
|
|
|
MOZ_ASSERT(aParent);
|
2020-12-17 21:21:06 +03:00
|
|
|
MOZ_ASSERT(mChannelParents.Contains(aParent));
|
2020-12-15 03:01:19 +03:00
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
// We use mutex here to prevent race condition with monitor thread
|
2020-12-15 23:16:02 +03:00
|
|
|
{
|
2020-12-17 21:21:06 +03:00
|
|
|
MutexAutoLock autoLock(mMutex);
|
|
|
|
mChannelParents.RemoveElement(aParent);
|
|
|
|
if (!mChannelParents.IsEmpty()) {
|
2020-12-15 23:16:02 +03:00
|
|
|
return;
|
|
|
|
}
|
2020-08-07 16:32:17 +03:00
|
|
|
}
|
|
|
|
|
2020-12-03 01:32:30 +03:00
|
|
|
GamepadMonitoringState::GetSingleton().Set(false);
|
2020-12-17 21:21:06 +03:00
|
|
|
|
2020-08-07 16:27:55 +03:00
|
|
|
StopGamepadMonitoring();
|
2020-12-17 21:21:06 +03:00
|
|
|
ResetGamepadIndexes();
|
|
|
|
MaybeShutdown();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GamepadPlatformService::MaybeShutdown() {
|
|
|
|
// This method is invoked in MaybeStopGamepadMonitoring when
|
|
|
|
// an IPDL channel is going to be destroyed
|
|
|
|
AssertIsOnBackgroundThread();
|
2020-12-15 23:16:02 +03:00
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
// We have to release gGamepadPlatformServiceSingleton ouside
|
|
|
|
// the mutex as well as making upcoming GetParentService() call
|
|
|
|
// recreate new singleton, so we use this RefPtr to temporarily
|
|
|
|
// hold the reference, postponing the release process until this
|
|
|
|
// method ends.
|
|
|
|
RefPtr<GamepadPlatformService> kungFuDeathGrip;
|
2020-12-15 03:01:19 +03:00
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
bool isChannelParentEmpty;
|
|
|
|
{
|
|
|
|
MutexAutoLock autoLock(mMutex);
|
|
|
|
isChannelParentEmpty = mChannelParents.IsEmpty();
|
|
|
|
if (isChannelParentEmpty) {
|
|
|
|
kungFuDeathGrip = gGamepadPlatformServiceSingleton;
|
|
|
|
gGamepadPlatformServiceSingleton = nullptr;
|
|
|
|
mGamepadAdded.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-06-28 01:25:00 +03:00
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
void GamepadPlatformService::Cleanup() {
|
|
|
|
// This method is called when GamepadPlatformService is
|
|
|
|
// successfully distructed in background thread
|
|
|
|
AssertIsOnBackgroundThread();
|
2016-06-28 01:25:00 +03:00
|
|
|
|
2020-12-17 21:21:06 +03:00
|
|
|
MutexAutoLock autoLock(mMutex);
|
|
|
|
mChannelParents.Clear();
|
2016-06-28 01:25:00 +03:00
|
|
|
}
|
|
|
|
|
2020-11-04 20:04:01 +03:00
|
|
|
} // namespace mozilla::dom
|