blob: b7214753baeb91dc971a49637eacf688540a035a [file] [log] [blame]
// 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 AnimationWorklet_h
#define AnimationWorklet_h
#include "core/workers/Worklet.h"
#include "modules/ModulesExport.h"
#include "platform/heap/Handle.h"
namespace blink {
class LocalFrame;
class MODULES_EXPORT AnimationWorklet final : public Worklet {
WTF_MAKE_NONCOPYABLE(AnimationWorklet);
public:
static AnimationWorklet* Create(LocalFrame*);
~AnimationWorklet() override;
DECLARE_VIRTUAL_TRACE();
private:
explicit AnimationWorklet(LocalFrame*);
// Implements Worklet.
bool NeedsToCreateGlobalScope() final;
WorkletGlobalScopeProxy* CreateGlobalScope() final;
};
} // namespace blink
#endif // AnimationWorklet_h