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

Unified Diff: third_party/WebKit/Source/core/animation/AnimationEffectTimingReadOnly.h

Issue 2379863003: Implement AnimationEffectTimingReadOnly interface (Closed)
Patch Set: Response to review, update formatting of new files Created 4 years, 2 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
Index: third_party/WebKit/Source/core/animation/AnimationEffectTimingReadOnly.h
diff --git a/third_party/WebKit/Source/core/animation/AnimationEffectTimingReadOnly.h b/third_party/WebKit/Source/core/animation/AnimationEffectTimingReadOnly.h
new file mode 100644
index 0000000000000000000000000000000000000000..eacd8b816f244ddd287116326abd87b4b0b4fa3a
--- /dev/null
+++ b/third_party/WebKit/Source/core/animation/AnimationEffectTimingReadOnly.h
@@ -0,0 +1,45 @@
+// Copyright 2016 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.
+
+#ifndef AnimationEffectTimingReadOnly_h
+#define AnimationEffectTimingReadOnly_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "core/CoreExport.h"
+#include "core/animation/AnimationEffectReadOnly.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class UnrestrictedDoubleOrString;
+
+class CORE_EXPORT AnimationEffectTimingReadOnly
+ : public GarbageCollected<AnimationEffectTimingReadOnly>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ static AnimationEffectTimingReadOnly* create(AnimationEffectReadOnly* parent);
+ double delay();
+ double endDelay();
+ String fill();
+ double iterationStart();
+ double iterations();
+ void duration(UnrestrictedDoubleOrString&);
+ double playbackRate();
+ String direction();
+ String easing();
+
+ virtual bool isAnimationEffectTiming() const { return false; }
+
+ DECLARE_VIRTUAL_TRACE();
+
+ protected:
+ Member<AnimationEffectReadOnly> m_parent;
+ explicit AnimationEffectTimingReadOnly(AnimationEffectReadOnly*);
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698