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

Unified Diff: core/animation/Timing.idl

Issue 206333004: Update IDL to 1847 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Add new files Created 6 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/animation/Timeline.idl ('k') | core/clipboard/Clipboard.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/animation/Timing.idl
diff --git a/core/animation/Timing.idl b/core/animation/Timing.idl
new file mode 100644
index 0000000000000000000000000000000000000000..9da75c59cee76e63c23fa01ea3d43ff5d69f26d7
--- /dev/null
+++ b/core/animation/Timing.idl
@@ -0,0 +1,28 @@
+// 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,
+ ImplementedAs=TimedItemTiming,
+] interface Timing {
+ attribute double delay;
+ attribute double endDelay;
+ attribute DOMString fill;
+ attribute double iterationStart;
+ 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=getDuration] getter (double or DOMString) (DOMString name);
+
+ // FIXME: If the user calls animation.specified.duration = "" (empty string) then duration
+ // gets set to 0 (This is correct behavior for IDL). Correct result is for duration to
+ // be set to 'auto'.
+ [StrictTypeChecking, ImplementedAs=setDuration] setter double (DOMString name, double duration);
+
+ attribute double playbackRate;
+ attribute DOMString direction;
+ attribute DOMString easing;
+};
« no previous file with comments | « core/animation/Timeline.idl ('k') | core/clipboard/Clipboard.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698