Bug 1723050 - Part 30: Replace typedef by using in dom/vr/ r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D121328
This commit is contained in:
Kagami Sascha Rosylight 2021-08-09 13:37:30 +00:00
parent 167125cf34
commit 2e5d583a8d

View File

@ -73,16 +73,16 @@ class XRRequestSessionPermissionRequest final
NS_IMETHOD Cancel(void) override;
NS_IMETHOD Allow(JS::HandleValue choices) override;
typedef std::function<void()> AllowCallback;
typedef std::function<void()> AllowAnySiteCallback;
typedef std::function<void()> CancelCallback;
using AllowCallback = std::function<void()>;
using AllowAnySiteCallback = std::function<void()>;
using CancelCallback = std::function<void()>;
static already_AddRefed<XRRequestSessionPermissionRequest> Create(
nsPIDOMWindowInner* aWindow, AllowCallback&& aAllowCallback,
AllowAnySiteCallback&& aAllowAnySiteCallback,
CancelCallback&& aCancelCallback);
typedef MozPromise<bool, bool, true> AutoGrantDelayPromise;
using AutoGrantDelayPromise = MozPromise<bool, bool, true>;
RefPtr<AutoGrantDelayPromise> MaybeDelayAutomaticGrants();
private: