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

Unified Diff: Source/core/animation/Timing.idl

Issue 152853003: Web Animations API: Bindings for TimedItem.specified with readonly attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix timed-item-specified-getters.html (mashed in rebase) Created 6 years, 10 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/animation/TimedItemTiming.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Timing.idl
diff --git a/Source/core/animation/Timing.idl b/Source/core/animation/Timing.idl
new file mode 100644
index 0000000000000000000000000000000000000000..eeecf57ffddad29d71f39719f6b056663de73b5f
--- /dev/null
+++ b/Source/core/animation/Timing.idl
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[
+ RuntimeEnabled=WebAnimationsAPI,
+ ImplementedAs=TimedItemTiming,
+] interface Timing {
+ // FIXME: None of these are readonly in the spec. They need setters.
+ readonly attribute double delay;
+ readonly attribute double endDelay;
+ readonly attribute DOMString fill;
+ readonly attribute double iterationStart;
+ readonly attribute double iterations;
+
+ // FIXME: This uses a NamedPropertyGetter to implement the 'duration' attribute
+ // because duration has a union type (which is tricky to do with an attribute).
+ // Fix will be in a follow-up patch if there is a better solution.
+ [NotEnumerable, ImplementedAs=duration] getter (double or DOMString) (DOMString name);
+
+ readonly attribute double playbackRate;
+ readonly attribute DOMString direction;
+ readonly attribute DOMString easing;
+};
« no previous file with comments | « Source/core/animation/TimedItemTiming.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698