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

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

Issue 2369833002: Introduce KeyframeEffectReadOnly interface (Closed)
Patch Set: Use short form of copyright message Created 4 years, 3 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/KeyframeEffectReadOnly.h
diff --git a/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h b/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h
new file mode 100644
index 0000000000000000000000000000000000000000..60cb59d7c38755912eb4e50fb23804650478232e
--- /dev/null
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h
@@ -0,0 +1,44 @@
+// 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 KeyframeEffectReadOnly_h
+#define KeyframeEffectReadOnly_h
+
+#include "core/CoreExport.h"
+#include "core/animation/AnimationEffectReadOnly.h"
+#include "core/animation/EffectModel.h"
+
+namespace blink {
+
+class KeyframeEffectOptions;
+class DictionarySequenceOrDictionary;
+class Element;
+class ExceptionState;
+class ExecutionContext;
+class SampledEffect;
+
+// Represents the effect of an Animation on an Element's properties.
+// http://w3c.github.io/web-animations/#the-keyframeeffect-interfaces
+class CORE_EXPORT KeyframeEffectReadOnly : public AnimationEffectReadOnly {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static KeyframeEffectReadOnly* create(ExecutionContext*, Element*, const DictionarySequenceOrDictionary& effectInput, double duration, ExceptionState&);
+ static KeyframeEffectReadOnly* create(ExecutionContext*, Element*, const DictionarySequenceOrDictionary& effectInput, const KeyframeEffectOptions& timingInput, ExceptionState&);
+ static KeyframeEffectReadOnly* create(ExecutionContext*, Element*, const DictionarySequenceOrDictionary& effectInput, ExceptionState&);
+
+ ~KeyframeEffectReadOnly() override {}
+
+ DECLARE_VIRTUAL_TRACE();
+
+protected:
+ KeyframeEffectReadOnly(Element*, EffectModel*, const Timing&, EventDelegate*);
+
+ Member<Element> m_target;
+ Member<EffectModel> m_model;
+ Member<SampledEffect> m_sampledEffect;
+};
+
+} // namespace blink
+
+#endif // KeyframeEffectReadOnly_h

Powered by Google App Engine
This is Rietveld 408576698