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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/CSSPaintBinding.h

Issue 1839913002: Implement PaintWorkletGlobalScope#registerPaint() for the CSS Paint API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/bindings/core/v8/CSSPaintBinding.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/CSSPaintBinding.h b/third_party/WebKit/Source/bindings/core/v8/CSSPaintBinding.h
new file mode 100644
index 0000000000000000000000000000000000000000..0431f86df8e01dc31401645333e8b20d1875c2bc
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/core/v8/CSSPaintBinding.h
@@ -0,0 +1,29 @@
+// 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 CSSPaintBinding_h
+#define CSSPaintBinding_h
+
+#include "bindings/core/v8/ScopedPersistent.h"
+#include "wtf/Allocator.h"
+#include "wtf/PassOwnPtr.h"
+#include <v8.h>
+
+namespace blink {
+
+class CSSPaintBinding {
+ USING_FAST_MALLOC(CSSPaintBinding);
+public:
+ static PassOwnPtr<CSSPaintBinding> create(v8::Isolate*, v8::Local<v8::Function> constructor, v8::Local<v8::Function> paint);
+ ~CSSPaintBinding();
+
+private:
+ CSSPaintBinding(v8::Isolate*, v8::Local<v8::Function> constructor, v8::Local<v8::Function> paint);
+ ScopedPersistent<v8::Function> m_constructor;
+ ScopedPersistent<v8::Function> m_paint;
+};
+
+} // namespace blink
+
+#endif // CSSPaintBinding_h

Powered by Google App Engine
This is Rietveld 408576698