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 |