mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
moebius#73: DOM - window.requestIdleCallback - improvements (basic)
https://github.com/MoonchildProductions/moebius/pull/73
This commit is contained in:
parent
ec18bcca97
commit
da2320b2ef
11 changed files with 558 additions and 200 deletions
|
|
@ -41,7 +41,11 @@ public:
|
|||
// default main thread being used.
|
||||
nsresult InitTimer(nsIEventTarget* aTarget, uint32_t aDelay);
|
||||
|
||||
enum class Reason { eTimeoutOrInterval, eIdleCallbackTimeout };
|
||||
enum class Reason
|
||||
{
|
||||
eTimeoutOrInterval,
|
||||
eIdleCallbackTimeout,
|
||||
};
|
||||
|
||||
#ifdef DEBUG
|
||||
bool HasRefCntOne() const;
|
||||
|
|
@ -62,6 +66,8 @@ public:
|
|||
// True if this is a repeating/interval timer
|
||||
bool mIsInterval;
|
||||
|
||||
// Used to allow several reasons for setting a timeout, where each
|
||||
// 'Reason' value is using a possibly overlapping set of id:s.
|
||||
Reason mReason;
|
||||
|
||||
// Returned as value of setTimeout()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue