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

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

Issue 1119683003: Implement requestIdleCallback API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address Elliott's review comments 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
Index: Source/core/dom/IdleCallbackDeadline.idl
diff --git a/Source/core/input/InputDeviceCapabilitiesInit.idl b/Source/core/dom/IdleCallbackDeadline.idl
similarity index 51%
copy from Source/core/input/InputDeviceCapabilitiesInit.idl
copy to Source/core/dom/IdleCallbackDeadline.idl
index e7ae86debbf39f39be3b5ece4134d3d4289be0a2..a0d63eecc6017b40ada666a103a0864d603023bd 100644
--- a/Source/core/input/InputDeviceCapabilitiesInit.idl
+++ b/Source/core/dom/IdleCallbackDeadline.idl
@@ -3,7 +3,9 @@
// found in the LICENSE file.
[
- RuntimeEnabled=InputDeviceCapabilities,
-] dictionary InputDeviceCapabilitiesInit {
- boolean firesTouchEvents = false;
+ GarbageCollected,
+ RuntimeEnabled=RequestIdleCallback,
+] interface IdleCallbackDeadline {
+ double timeRemaining();
esprehn 2015/08/21 08:22:20 This should be a property I think.
rmcilroy 2015/08/21 11:21:52 Done (I'll also update the Spec as such).
+ readonly attribute boolean didTimeout;
};

Powered by Google App Engine
This is Rietveld 408576698