Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Unified Diff: Source/core/dom/Document.h

Issue 1119683003: Implement requestIdleCallback API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index a1404801f5b8a1f0953c4c519c3ce72dec6eebce..06d11412b547afa6c44ebf02e7659dca081286f8 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -122,6 +122,7 @@ class HTMLImportsController;
class HTMLLinkElement;
class HTMLScriptElement;
class HitTestRequest;
+class IdleRequestCallback;
class InputDeviceCapabilities;
class LayoutPoint;
class LiveNodeListBase;
@@ -146,6 +147,7 @@ class SVGUseElement;
class ScriptRunner;
class ScriptableDocumentParser;
class ScriptedAnimationController;
+class ScriptedIdleTaskController;
class SecurityOrigin;
class SegmentedString;
class SelectorQueryCache;
@@ -914,6 +916,9 @@ public:
void cancelAnimationFrame(int id);
void serviceScriptedAnimations(double monotonicAnimationStartTime);
+ int requestIdleCallback(IdleRequestCallback*, double timeoutMillis);
+ void cancelIdleCallback(int id);
+
EventTarget* errorEventTarget() final;
void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallStack>) final;
@@ -1065,6 +1070,7 @@ private:
bool isElementNode() const = delete; // This will catch anyone doing an unnecessary check.
ScriptedAnimationController& ensureScriptedAnimationController();
+ ScriptedIdleTaskController& ensureScriptedIdleTaskController();
SecurityContext& securityContext() final { return *this; }
EventQueue* eventQueue() const final;
@@ -1333,6 +1339,7 @@ private:
unsigned m_writeRecursionDepth;
RefPtrWillBeMember<ScriptedAnimationController> m_scriptedAnimationController;
+ RefPtrWillBeMember<ScriptedIdleTaskController> m_scriptedIdleTaskController;
OwnPtrWillBeMember<MainThreadTaskRunner> m_taskRunner;
OwnPtrWillBeMember<TextAutosizer> m_textAutosizer;
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698