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

Unified Diff: Source/bindings/tests/results/V8TestInterfaceConstructor4.cpp

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced and sent out to the code review. Created 6 years, 4 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: Source/bindings/tests/results/V8TestInterfaceConstructor4.cpp
diff --git a/Source/bindings/tests/results/V8TestInterfaceConstructor4.cpp b/Source/bindings/tests/results/V8TestInterfaceConstructor4.cpp
index 81d0fc5a9360999a1c99e41634f3d267b5719d4b..4de47044b06dc1843a47a2e288ee826b4b0490d8 100644
--- a/Source/bindings/tests/results/V8TestInterfaceConstructor4.cpp
+++ b/Source/bindings/tests/results/V8TestInterfaceConstructor4.cpp
@@ -38,6 +38,14 @@ namespace blink {
const WrapperTypeInfo V8TestInterfaceConstructor4::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceConstructor4::domTemplate, V8TestInterfaceConstructor4::refObject, V8TestInterfaceConstructor4::derefObject, V8TestInterfaceConstructor4::createPersistentHandle, 0, 0, 0, V8TestInterfaceConstructor4::installConditionallyEnabledMethods, V8TestInterfaceConstructor4::installConditionallyEnabledProperties, 0, WrapperTypeObjectPrototype, RefCountedObject };
+// The definition of TestInterfaceConstructor4's WrapperTypeInfo. If TestInterfaceConstructor4 inherits
+// from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the
+// class definition. Otherwise, you have to write NotScriptWrappable in the IDL
+// file as an extended attribute in order to let IDL compiler know that
+// TestInterfaceConstructor4 doesn't inherit from ScriptWrappable. Note that
+// NotScriptWrappable is inheritable.
+const WrapperTypeInfo& TestInterfaceConstructor4::s_wrapperTypeInfo = V8TestInterfaceConstructor4::wrapperTypeInfo;
+
namespace TestInterfaceConstructor4V8Internal {
template <typename T> void V8_USE(T) { }

Powered by Google App Engine
This is Rietveld 408576698