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

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

Issue 2896773002: [DONT COMMIT] PaintWorklet: Move paintWorklet from 'window' to 'CSS' (Closed)
Patch Set: WIP Created 3 years, 6 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/CSSPaintWorklet.h
diff --git a/third_party/WebKit/Source/modules/csspaint/CSSPaintWorklet.h b/third_party/WebKit/Source/modules/csspaint/CSSPaintWorklet.h
new file mode 100644
index 0000000000000000000000000000000000000000..3e15d26d622f2f54e021d1e7f78027f11cd40a1a
--- /dev/null
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintWorklet.h
@@ -0,0 +1,26 @@
+// 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 CSSPaintWorklet_h
+#define CSSPaintWorklet_h
+
+#include "modules/ModulesExport.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class Document;
+class PaintWorklet;
+class ScriptState;
+class Worklet;
+
+class MODULES_EXPORT CSSPaintWorklet {
+ public:
+ static Worklet* paintWorklet(ScriptState*);
+ static PaintWorklet* paintWorklet(Document&);
+};
+
+} // namespace blink
+
+#endif // CSSPaintWorklet_h

Powered by Google App Engine
This is Rietveld 408576698