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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h

Issue 2186203002: [worklets] Add stub classes for window.animationWorklet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 5 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/WindowAnimationWorklet.h
diff --git a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h
similarity index 44%
copy from third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h
copy to third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h
index 404ec0330f6ca96d58ad2bf0aa19a5a203c725b9..e681aa616b62fc57bef746a8c89eed5ae568fcef 100644
--- a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h
+++ b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WindowPaintWorklet_h
-#define WindowPaintWorklet_h
+#ifndef WindowAnimationWorklet_h
+#define WindowAnimationWorklet_h
#include "core/frame/DOMWindowProperty.h"
#include "modules/ModulesExport.h"
@@ -14,25 +14,25 @@ namespace blink {
class DOMWindow;
class ExecutionContext;
-class PaintWorklet;
+class AnimationWorklet;
class Worklet;
-class MODULES_EXPORT WindowPaintWorklet final : public GarbageCollected<WindowPaintWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProperty {
- USING_GARBAGE_COLLECTED_MIXIN(WindowPaintWorklet);
+class MODULES_EXPORT WindowAnimationWorklet final : public GarbageCollected<WindowAnimationWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProperty {
+ USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet);
public:
- static WindowPaintWorklet& from(LocalDOMWindow&);
- static Worklet* paintWorklet(ExecutionContext*, DOMWindow&);
- PaintWorklet* paintWorklet(ExecutionContext*) const;
+ static WindowAnimationWorklet& from(LocalDOMWindow&);
+ static Worklet* animationWorklet(ExecutionContext*, DOMWindow&);
+ AnimationWorklet* animationWorklet(ExecutionContext*);
DECLARE_TRACE();
private:
- explicit WindowPaintWorklet(LocalDOMWindow&);
+ explicit WindowAnimationWorklet(LocalDOMWindow&);
static const char* supplementName();
- mutable Member<PaintWorklet> m_paintWorklet;
+ Member<AnimationWorklet> m_animationWorklet;
};
} // namespace blink
-#endif // WindowPaintWorklet_h
+#endif // WindowAnimationWorklet_h

Powered by Google App Engine
This is Rietveld 408576698