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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp

Issue 2745823002: [animation-worklet] Implement registerAnimator in worklet scope (Closed)
Patch Set: Address nhiroki feedback Created 3 years, 7 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/modules/compositorworker/AnimatorDefinition.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp b/third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..225d14b74fd2bf915c44838c4d42fbaf58f60d87
--- /dev/null
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp
@@ -0,0 +1,27 @@
+// Copyright 2017 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.
+
+#include "modules/compositorworker/AnimatorDefinition.h"
+
+#include "core/dom/ExecutionContext.h"
+#include "modules/compositorworker/Animator.h"
+#include "platform/bindings/ScriptState.h"
+#include "platform/bindings/V8Binding.h"
+#include "platform/bindings/V8ObjectConstructor.h"
+
+namespace blink {
+
+AnimatorDefinition::AnimatorDefinition(v8::Isolate* isolate,
+ v8::Local<v8::Function> constructor,
+ v8::Local<v8::Function> animate)
+ : constructor_(isolate, constructor), animate_(isolate, animate) {}
+
+AnimatorDefinition::~AnimatorDefinition() {}
+
+v8::Local<v8::Function> AnimatorDefinition::ConstructorLocal(
+ v8::Isolate* isolate) {
+ return constructor_.NewLocal(isolate);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698