Chromium Code Reviews| Index: Source/core/animation/TimedItemTiming.idl |
| diff --git a/Source/core/animation/TimedItemTiming.idl b/Source/core/animation/TimedItemTiming.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3adda9733a35d9e8c85fa9f5bff02ab3f2da4c8b |
| --- /dev/null |
| +++ b/Source/core/animation/TimedItemTiming.idl |
| @@ -0,0 +1,22 @@ |
| +// 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, |
| +] interface TimedItemTiming { |
|
dstockwell
2014/02/12 08:02:28
interface Timing
rjwright
2014/02/13 01:04:49
Done.
|
| + // FIXME: None of these are readonly in the spec. They need setters. |
| + readonly attribute double delay; |
| + 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; |
| +}; |