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

Unified Diff: Source/core/frame/DOMWindow.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/dom/ScriptedIdleTaskController.cpp ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMWindow.h
diff --git a/Source/core/frame/DOMWindow.h b/Source/core/frame/DOMWindow.h
index e5a8dadd68e1b15a1f2e70d76fce7fdcfb3cfa5f..1ef1cc9dd235aa52f66b3e5abac9988903c7fc10 100644
--- a/Source/core/frame/DOMWindow.h
+++ b/Source/core/frame/DOMWindow.h
@@ -28,6 +28,7 @@ class Element;
class Frame;
class FrameRequestCallback;
class History;
+class IdleRequestCallback;
class LocalDOMWindow;
class MediaQueryList;
class Navigator;
@@ -168,6 +169,10 @@ public:
virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0;
virtual void cancelAnimationFrame(int id) = 0;
+ // Idle callback extensions
+ virtual int requestIdleCallback(IdleRequestCallback*, double timeoutMillis) = 0;
+ virtual void cancelIdleCallback(int id) = 0;
+
void captureEvents() { }
void releaseEvents() { }
« no previous file with comments | « Source/core/dom/ScriptedIdleTaskController.cpp ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698