diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-04-19 13:35:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-19 13:35:14 +0200 |
commit | 493d7334f885bd4e79eedcba5037c7c4b65c8fc5 (patch) | |
tree | 69e364c791717f2b0bdf2994531a7b045f273542 /dom/base/Timeout.h | |
parent | d7df65954a585e97ccee21fa9cb50cb116efddcc (diff) | |
parent | b873b2495a4408c43368bbf5a5e1e8f9966e0593 (diff) | |
download | UXP-493d7334f885bd4e79eedcba5037c7c4b65c8fc5.tar UXP-493d7334f885bd4e79eedcba5037c7c4b65c8fc5.tar.gz UXP-493d7334f885bd4e79eedcba5037c7c4b65c8fc5.tar.lz UXP-493d7334f885bd4e79eedcba5037c7c4b65c8fc5.tar.xz UXP-493d7334f885bd4e79eedcba5037c7c4b65c8fc5.zip |
Merge pull request #207 from janekptacijarabaci/js_dom_window_requestIdleCallback_1
moebius#73: DOM - window.requestIdleCallback - improvements
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 e929f3dd1..42e2f57f5 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() |