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

Unified Diff: Source/bindings/core/v8/WrapCanvasContext.h

Issue 795833004: Use dictionaries for context creation attributes. Eliminate custom bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years 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
« no previous file with comments | « Source/bindings/core/v8/WebGLAny.cpp ('k') | Source/bindings/core/v8/WrapCanvasContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/WrapCanvasContext.h
diff --git a/Source/bindings/core/v8/WrapCanvasContext.h b/Source/bindings/core/v8/WrapCanvasContext.h
new file mode 100644
index 0000000000000000000000000000000000000000..614e82476bf209721fbff561f9fdbba55c47c46e
--- /dev/null
+++ b/Source/bindings/core/v8/WrapCanvasContext.h
@@ -0,0 +1,22 @@
+// Copyright 2014 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 WrapCanvasContext_h
+#define WrapCanvasContext_h
+
+#include "bindings/core/v8/ScriptValue.h"
+#include "wtf/PassRefPtr.h"
+
+namespace blink {
+
+class CanvasRenderingContext2D;
+class HTMLCanvasElement;
+class WebGLRenderingContext;
+
+ScriptValue wrapCanvasContext(ScriptState*, HTMLCanvasElement*, PassRefPtrWillBeRawPtr<CanvasRenderingContext2D> value);
+ScriptValue wrapCanvasContext(ScriptState*, HTMLCanvasElement*, PassRefPtrWillBeRawPtr<WebGLRenderingContext> value);
+
+} // namespace blink
+
+#endif // WebGLAny_h
« no previous file with comments | « Source/bindings/core/v8/WebGLAny.cpp ('k') | Source/bindings/core/v8/WrapCanvasContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698