diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-18 15:15:49 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-18 15:15:49 +0200 |
commit | c559e3e30f79843f0096332334c81ee0d93029f8 (patch) | |
tree | 07ee668e9f82976e2d00912e818b632ea4470170 /dom/base/Timeout.h | |
parent | 29de8de78c3260aad1e7844933d5b3cf1033627c (diff) | |
download | uxp-c559e3e30f79843f0096332334c81ee0d93029f8.tar.gz |
moebius#73: DOM - window.requestIdleCallback - improvements (basic)
https://github.com/MoonchildProductions/moebius/pull/73
Diffstat (limited to 'dom/base/Timeout.h')
-rw-r--r-- | dom/base/Timeout.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dom/base/Timeout.h b/dom/base/Timeout.h index e929f3dd13..42e2f57f5b 100644 --- a/dom/base/Timeout.h +++ b/dom/base/Timeout.h @@ -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() |