mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
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:
parent
167125cf34
commit
2e5d583a8d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user