2014-07-16 04:02:31 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://dev.w3.org/fxtf/web-animations/#the-animatable-interface
|
|
|
|
*
|
|
|
|
* Copyright © 2014 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2016-01-29 04:37:52 +03:00
|
|
|
dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
|
|
|
|
DOMString id = "";
|
|
|
|
};
|
|
|
|
|
2016-03-22 03:33:02 +03:00
|
|
|
dictionary AnimationFilter {
|
|
|
|
boolean subtree = false;
|
|
|
|
};
|
|
|
|
|
2014-07-16 04:02:31 +04:00
|
|
|
[NoInterfaceObject]
|
|
|
|
interface Animatable {
|
2016-04-18 03:16:04 +03:00
|
|
|
[Func="nsDocument::IsElementAnimateEnabled", Throws]
|
2016-05-13 03:40:52 +03:00
|
|
|
Animation animate(object? keyframes,
|
2016-09-08 23:38:53 +03:00
|
|
|
optional UnrestrictedDoubleOrKeyframeAnimationOptions options);
|
2015-03-20 21:20:32 +03:00
|
|
|
[Func="nsDocument::IsWebAnimationsEnabled"]
|
2016-03-22 03:33:02 +03:00
|
|
|
sequence<Animation> getAnimations(optional AnimationFilter filter);
|
2014-07-16 04:02:31 +04:00
|
|
|
};
|