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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index dff02f7249fa660d7e136ddbdfd24c7ad473be35..ad4c2357bf20cb8e656716cc9c49f43e894064a0 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5157,9 +5157,9 @@ ScriptedIdleTaskController& Document::ensureScriptedIdleTaskController()
return *m_scriptedIdleTaskController;
}
-int Document::requestIdleCallback(IdleRequestCallback* callback, double timeoutMillis)
+int Document::requestIdleCallback(IdleRequestCallback* callback, const IdleRequestOptions& options)
{
- return ensureScriptedIdleTaskController().registerCallback(callback, timeoutMillis);
+ return ensureScriptedIdleTaskController().registerCallback(callback, options);
}
void Document::cancelIdleCallback(int id)
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/IdleRequestOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698