diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.h b/chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.h new file mode 100644 index 00000000000..900405f5bba --- /dev/null +++ b/chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.h @@ -0,0 +1,30 @@ +// Copyright 2018 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 THIRD_PARTY_BLINK_RENDERER_MODULES_ANIMATIONWORKLET_WORKLET_ANIMATION_OPTIONS_H_ +#define THIRD_PARTY_BLINK_RENDERER_MODULES_ANIMATIONWORKLET_WORKLET_ANIMATION_OPTIONS_H_ + +#include "third_party/blink/renderer/modules/modules_export.h" +#include "third_party/blink/renderer/platform/animation/compositor_animation.h" + +namespace blink { + +class SerializedScriptValue; + +class MODULES_EXPORT WorkletAnimationOptions final + : public cc::AnimationOptions { + public: + explicit WorkletAnimationOptions(scoped_refptr<SerializedScriptValue>); + std::unique_ptr<cc::AnimationOptions> Clone() const override; + + scoped_refptr<SerializedScriptValue> GetData() { return data_; }; + ~WorkletAnimationOptions() override; + + private: + scoped_refptr<SerializedScriptValue> data_; +}; + +} // namespace blink + +#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_ANIMATIONWORKLET_WORKLET_ANIMATION_OPTIONS_H_ |