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

Unified Diff: third_party/WebKit/Source/core/frame/DOMWindow.h

Issue 1367023002: Replace timeout argument with IdleRequestOptions in requestIdleCallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rIC_histograms
Patch Set: Created 5 years, 3 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
Index: third_party/WebKit/Source/core/frame/DOMWindow.h
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.h b/third_party/WebKit/Source/core/frame/DOMWindow.h
index 1ef1cc9dd235aa52f66b3e5abac9988903c7fc10..ae786035d09e23820c793f09dc2c1651cea9ffe2 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.h
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.h
@@ -29,6 +29,7 @@ class Frame;
class FrameRequestCallback;
class History;
class IdleRequestCallback;
+class IdleRequestOptions;
class LocalDOMWindow;
class MediaQueryList;
class Navigator;
@@ -170,7 +171,7 @@ public:
virtual void cancelAnimationFrame(int id) = 0;
// Idle callback extensions
- virtual int requestIdleCallback(IdleRequestCallback*, double timeoutMillis) = 0;
+ virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) = 0;
virtual void cancelIdleCallback(int id) = 0;
void captureEvents() { }

Powered by Google App Engine
This is Rietveld 408576698