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

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

Issue 1119683003: Implement requestIdleCallback API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 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
« no previous file with comments | « Source/core/dom/IdleCallbackDeadline.cpp ('k') | Source/core/dom/IdleRequestCallback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/IdleCallbackDeadline.idl
diff --git a/Source/modules/nfc/NFC.idl b/Source/core/dom/IdleCallbackDeadline.idl
similarity index 52%
copy from Source/modules/nfc/NFC.idl
copy to Source/core/dom/IdleCallbackDeadline.idl
index 6deb627fa84205671648c544f8726599b00fd583..57fb6687a936c33110af01f3dec4307a995a7b15 100644
--- a/Source/modules/nfc/NFC.idl
+++ b/Source/core/dom/IdleCallbackDeadline.idl
@@ -2,12 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://w3c.github.io/web-nfc/#idl-def-NFC
-
[
GarbageCollected,
- ActiveDOMObject,
- RuntimeEnabled=WebNFC,
-] interface NFC {
- [CallWith=ScriptState] Promise<NFCAdapter> requestAdapter ();
+ RuntimeEnabled=RequestIdleCallback,
+] interface IdleCallbackDeadline {
+ readonly attribute double timeRemaining;
+ readonly attribute boolean didTimeout;
};
« no previous file with comments | « Source/core/dom/IdleCallbackDeadline.cpp ('k') | Source/core/dom/IdleRequestCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698