summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/animation/ElementAnimation.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/animation/ElementAnimation.idl')
-rw-r--r--chromium/third_party/WebKit/Source/core/animation/ElementAnimation.idl10
1 files changed, 8 insertions, 2 deletions
diff --git a/chromium/third_party/WebKit/Source/core/animation/ElementAnimation.idl b/chromium/third_party/WebKit/Source/core/animation/ElementAnimation.idl
index e191d950bc0..f524939ba45 100644
--- a/chromium/third_party/WebKit/Source/core/animation/ElementAnimation.idl
+++ b/chromium/third_party/WebKit/Source/core/animation/ElementAnimation.idl
@@ -28,6 +28,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// http://www.w3.org/TR/web-animations/#idl-def-Element
+// FIXME: move to Animatable
+// http://dev.w3.org/fxtf/web-animations/#idl-def-Animatable
+
partial interface Element {
- [RuntimeEnabled=WebAnimationsAPI] void animate(sequence<Dictionary> keyframes, optional double duration);
-}; \ No newline at end of file
+ // FIXME: needs support for union types http://crbug.com/240176
+ // AnimationPlayer animate((AnimationEffect or sequence<Dictionary>)? effect, optional (double or Dictionary) timing);
+ [Custom, RaisesException] AnimationPlayer animate(object effect, optional object timing);
+};