| 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..434d1eaff1eb2312a306b9285bf8be058b99fd15
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp
|
| @@ -0,0 +1,38 @@
|
| +// 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::Create(
|
| + v8::Isolate* isolate,
|
| + v8::Local<v8::Function> constructor,
|
| + v8::Local<v8::Function> animate) {
|
| + return new AnimatorDefinition(isolate, constructor, animate);
|
| +}
|
| +
|
| +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);
|
| +}
|
| +
|
| +v8::Local<v8::Function> AnimatorDefinition::AnimateLocal(v8::Isolate* isolate) {
|
| + return animate_.NewLocal(isolate);
|
| +}
|
| +
|
| +} // namespace blink
|
|
|