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

Unified Diff: Source/web/WebRuntimeFeatures.cpp

Issue 1119683003: Implement requestIdleCallback API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add LayoutTest and fix minor spec violation Created 5 years, 5 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: Source/web/WebRuntimeFeatures.cpp
diff --git a/Source/web/WebRuntimeFeatures.cpp b/Source/web/WebRuntimeFeatures.cpp
index 2aae74be0ee51ab57018df14175fd7f49dabaeb4..8b640ac5fe3d62f979f695f315ef4f48006c5faf 100644
--- a/Source/web/WebRuntimeFeatures.cpp
+++ b/Source/web/WebRuntimeFeatures.cpp
@@ -202,6 +202,11 @@ void WebRuntimeFeatures::enableRequestAutocomplete(bool enable)
RuntimeEnabledFeatures::setRequestAutocompleteEnabled(enable);
}
+void WebRuntimeFeatures::RequestIdleCallback(bool enable)
+{
+ RuntimeEnabledFeatures::setRequestIdleCallbackEnabled(enable);
+}
+
void WebRuntimeFeatures::enableScreenOrientation(bool enable)
{
RuntimeEnabledFeatures::setScreenOrientationEnabled(enable);

Powered by Google App Engine
This is Rietveld 408576698