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

Unified Diff: Source/core/dom/IdleRequestCallback.idl

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/core/dom/IdleRequestCallback.idl
diff --git a/Source/modules/background_sync/SyncRegistrationOptions.idl b/Source/core/dom/IdleRequestCallback.idl
similarity index 52%
copy from Source/modules/background_sync/SyncRegistrationOptions.idl
copy to Source/core/dom/IdleRequestCallback.idl
index 6e1abbcb4db81dfa3d24b171962b870c4c0b7f68..4fcaa8e043d7b13991fa6f06e63e37c47581068c 100644
--- a/Source/modules/background_sync/SyncRegistrationOptions.idl
+++ b/Source/core/dom/IdleRequestCallback.idl
@@ -3,7 +3,8 @@
// found in the LICENSE file.
[
- RuntimeEnabled=BackgroundSyncV2,
-] dictionary SyncRegistrationOptions {
- DOMString tag;
+ GarbageCollected,
+ RuntimeEnabled=RequestIdleCallback,
+] callback interface IdleRequestCallback {
+ void handleEvent(IdleCallbackDeadline deadline);
};

Powered by Google App Engine
This is Rietveld 408576698