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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.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/dom/ScriptedIdleTaskController.h
diff --git a/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.h b/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.h
index 99061463da2252a467290549e1a0012dfc09d57a..4b3cb87476faa69e6e1259d31218f01d44f5a8e0 100644
--- a/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.h
+++ b/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.h
@@ -17,6 +17,7 @@ namespace blink {
class ExecutionContext;
class IdleRequestCallback;
+class IdleRequestOptions;
class ScriptedIdleTaskController : public RefCountedWillBeGarbageCollectedFinalized<ScriptedIdleTaskController>, public ActiveDOMObject {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScriptedIdleTaskController);
@@ -31,7 +32,7 @@ public:
using CallbackId = int;
- int registerCallback(IdleRequestCallback*, double timeoutMillis);
+ int registerCallback(IdleRequestCallback*, const IdleRequestOptions&);
void cancelCallback(CallbackId);
// ActiveDOMObject interface.

Powered by Google App Engine
This is Rietveld 408576698