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

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

Issue 1866623002: Hook up CSSPaintValue::image to CSS Paint API callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments + rebase. Created 4 years, 8 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/PaintWorklet.h
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h
index ce46711b717c3a016cd7c899a8ba3efa78d78189..b4f66a1fee2f2713ea0eb8f19da8afa6c39a5403 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h
@@ -5,25 +5,32 @@
#ifndef PaintWorklet_h
#define PaintWorklet_h
+#include "modules/ModulesExport.h"
#include "modules/worklet/Worklet.h"
#include "platform/heap/Handle.h"
namespace blink {
-class PaintWorklet final : public Worklet {
+class CSSPaintDefinition;
+class CSSPaintImageGeneratorImpl;
+class PaintWorkletGlobalScope;
+
+class MODULES_EXPORT PaintWorklet final : public Worklet {
WTF_MAKE_NONCOPYABLE(PaintWorklet);
public:
static PaintWorklet* create(LocalFrame*, ExecutionContext*);
~PaintWorklet() override;
- WorkletGlobalScope* workletGlobalScope() const final { return m_paintWorkletGlobalScope.get(); }
+ WorkletGlobalScope* workletGlobalScope() const final;
+ CSSPaintDefinition* findDefinition(const String& name);
+ void addPendingGenerator(const String& name, CSSPaintImageGeneratorImpl*);
DECLARE_VIRTUAL_TRACE();
private:
PaintWorklet(LocalFrame*, ExecutionContext*);
- Member<WorkletGlobalScope> m_paintWorkletGlobalScope;
+ Member<PaintWorkletGlobalScope> m_paintWorkletGlobalScope;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/csspaint/Geometry.idl ('k') | third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698