 Chromium Code Reviews
 Chromium Code Reviews Issue 1119683003:
  Implement requestIdleCallback API  (Closed) 
  Base URL: svn://svn.chromium.org/blink/trunk
    
  
    Issue 1119683003:
  Implement requestIdleCallback API  (Closed) 
  Base URL: svn://svn.chromium.org/blink/trunk| Index: Source/core/dom/Document.h | 
| diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h | 
| index b52c7762a02bb2ae37948adb77c0d4c29be055d7..ca1c0f398ef9ff60caeef11024b3869294eca4af 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 LayoutPoint; | 
| class LiveNodeListBase; | 
| class Locale; | 
| @@ -145,6 +146,7 @@ class SVGUseElement; | 
| class ScriptRunner; | 
| class ScriptableDocumentParser; | 
| class ScriptedAnimationController; | 
| +class ScriptedIdleTaskController; | 
| class SecurityOrigin; | 
| class SegmentedString; | 
| class SelectorQueryCache; | 
| @@ -926,9 +928,13 @@ public: | 
| void cancelAnimationFrame(int id); | 
| void serviceScriptedAnimations(double monotonicAnimationStartTime); | 
| + int requestIdleCallback(IdleRequestCallback*, double timeout); | 
| 
Sami
2015/08/10 09:47:46
nit: timeoutMs/Millis/Milliseconds? (here and else
 
rmcilroy
2015/08/11 16:30:51
Done.
 | 
| + void cancelIdleCallback(int id); | 
| + | 
| EventTarget* errorEventTarget() final; | 
| void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallStack>) final; | 
| + | 
| 
jochen (gone - plz use gerrit)
2015/07/31 09:19:19
nit. remove
 
rmcilroy
2015/08/11 16:30:51
Done.
 | 
| void initDNSPrefetch(); | 
| bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } | 
| @@ -1067,6 +1073,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; | 
| @@ -1341,6 +1348,7 @@ private: | 
| unsigned m_writeRecursionDepth; | 
| RefPtrWillBeMember<ScriptedAnimationController> m_scriptedAnimationController; | 
| + RefPtrWillBeMember<ScriptedIdleTaskController> m_scriptedIdleTaskController; | 
| OwnPtr<MainThreadTaskRunner> m_taskRunner; | 
| OwnPtrWillBeMember<TextAutosizer> m_textAutosizer; |