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

Unified Diff: third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h

Issue 1818223002: Introduce PaintWorkletGlobalScope, rename renderWorklet attribute to paintWorklet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix interface listing order. Created 4 years, 9 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/csspaint/WindowPaintWorklet.h
diff --git a/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h b/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h
similarity index 38%
rename from third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h
rename to third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h
index fe4589ebf8192f1550d166ecd440059fc271c8ad..c69127a2ad8b2c4a672055544ef1b82c47f85326 100644
--- a/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h
+++ b/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.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 DOMWindowWorklet_h
-#define DOMWindowWorklet_h
+#ifndef WindowPaintWorklet_h
+#define WindowPaintWorklet_h
#include "core/frame/DOMWindowProperty.h"
#include "platform/Supplementable.h"
@@ -13,26 +13,27 @@ namespace blink {
class DOMWindow;
class ExecutionContext;
+class PaintWorklet;
class Worklet;
-class DOMWindowWorklet final : public NoBaseWillBeGarbageCollected<DOMWindowWorklet>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowProperty {
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowWorklet);
- DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowWorklet);
- USING_FAST_MALLOC_WILL_BE_REMOVED(DOMWindowWorklet);
+class WindowPaintWorklet final : public NoBaseWillBeGarbageCollected<WindowPaintWorklet>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowProperty {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WindowPaintWorklet);
+ DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(WindowPaintWorklet);
+ USING_FAST_MALLOC_WILL_BE_REMOVED(WindowPaintWorklet);
public:
- static DOMWindowWorklet& from(LocalDOMWindow&);
- static Worklet* renderWorklet(ExecutionContext*, DOMWindow&);
- Worklet* renderWorklet(ExecutionContext*) const;
+ static WindowPaintWorklet& from(LocalDOMWindow&);
+ static Worklet* paintWorklet(ExecutionContext*, DOMWindow&);
+ PaintWorklet* paintWorklet(ExecutionContext*) const;
DECLARE_TRACE();
private:
- explicit DOMWindowWorklet(LocalDOMWindow&);
+ explicit WindowPaintWorklet(LocalDOMWindow&);
static const char* supplementName();
- mutable PersistentWillBeMember<Worklet> m_renderWorklet;
+ mutable PersistentWillBeMember<PaintWorklet> m_paintWorklet;
};
} // namespace blink
-#endif // DOMWindowWorklet_h
+#endif // WindowPaintWorklet_h

Powered by Google App Engine
This is Rietveld 408576698