OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 [ |
| 6 RuntimeEnabled=WebAnimationsAPI, |
| 7 ImplementedAs=TimedItemTiming, |
| 8 ] interface Timing { |
| 9 // FIXME: None of these are readonly in the spec. They need setters. |
| 10 readonly attribute double delay; |
| 11 readonly attribute double endDelay; |
| 12 readonly attribute DOMString fill; |
| 13 readonly attribute double iterationStart; |
| 14 readonly attribute double iterations; |
| 15 |
| 16 // FIXME: This uses a NamedPropertyGetter to implement the 'duration' attrib
ute |
| 17 // because duration has a union type (which is tricky to do with an attribut
e). |
| 18 // Fix will be in a follow-up patch if there is a better solution. |
| 19 [NotEnumerable, ImplementedAs=duration] getter (double or DOMString) (DOMStr
ing name); |
| 20 |
| 21 readonly attribute double playbackRate; |
| 22 readonly attribute DOMString direction; |
| 23 readonly attribute DOMString easing; |
| 24 }; |
OLD | NEW |