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

Side by Side Diff: sky/engine/core/animation/Timing.idl

Issue 760183003: Enable/Unprefix Animations & Transitions, add basic tests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: patch for landing Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 RuntimeEnabled=WebAnimationsAPI,
7 ImplementedAs=AnimationNodeTiming, 6 ImplementedAs=AnimationNodeTiming,
8 ] interface Timing { 7 ] interface Timing {
9 attribute double delay; 8 attribute double delay;
10 attribute double endDelay; 9 attribute double endDelay;
11 attribute DOMString fill; 10 attribute DOMString fill;
12 attribute double iterationStart; 11 attribute double iterationStart;
13 attribute double iterations; 12 attribute double iterations;
14 13
15 // FIXME: This uses a NamedPropertyGetter to implement the 'duration' attrib ute 14 // FIXME: This uses a NamedPropertyGetter to implement the 'duration' attrib ute
16 // because duration has a union type (which is tricky to do with an attribut e). 15 // because duration has a union type (which is tricky to do with an attribut e).
17 // Fix will be in a follow-up patch if there is a better solution. 16 // Fix will be in a follow-up patch if there is a better solution.
18 [NotEnumerable, ImplementedAs=getDuration] getter (double or DOMString) (DOM String name); 17 [NotEnumerable, ImplementedAs=getDuration] getter (double or DOMString) (DOM String name);
19 18
20 // FIXME: If the user calls animation.specified.duration = "" (empty string) then duration 19 // FIXME: If the user calls animation.specified.duration = "" (empty string) then duration
21 // gets set to 0 (This is correct behavior for IDL). Correct result is for d uration to 20 // gets set to 0 (This is correct behavior for IDL). Correct result is for d uration to
22 // be set to 'auto'. 21 // be set to 'auto'.
23 [TypeChecking=Interface, ImplementedAs=setDuration] setter double (DOMString name, double duration); 22 [TypeChecking=Interface, ImplementedAs=setDuration] setter double (DOMString name, double duration);
24 23
25 attribute double playbackRate; 24 attribute double playbackRate;
26 attribute DOMString direction; 25 attribute DOMString direction;
27 attribute DOMString easing; 26 attribute DOMString easing;
28 }; 27 };
OLDNEW
« no previous file with comments | « sky/engine/core/animation/ElementAnimation.idl ('k') | sky/engine/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698