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

Unified Diff: Source/bindings/templates/interface.cpp

Issue 82693003: IDL compiler: [CustomToV8] interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/templates/interface.cpp
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp
index 5bcef7a3262e1c13e170d2e8ba259ebf3bc40a55..629158b55da7237ee6aca99559f9203c14285eef 100644
--- a/Source/bindings/templates/interface.cpp
+++ b/Source/bindings/templates/interface.cpp
@@ -432,7 +432,8 @@ ActiveDOMObject* {{v8_class_name}}::toActiveDOMObject(v8::Handle<v8::Object> wra
{##############################################################################}
-{% block create_wrapper_and_deref_object %}
+{% block create_wrapper %}
Nils Barth (inactive) 2013/11/22 06:10:48 Split block in two so that {% if %} statement line
+{% if not has_custom_to_v8 %}
v8::Handle<v8::Object> {{v8_class_name}}::createWrapper(PassRefPtr<{{cpp_class_name}}> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
ASSERT(impl);
@@ -458,6 +459,12 @@ v8::Handle<v8::Object> {{v8_class_name}}::createWrapper(PassRefPtr<{{cpp_class_n
return wrapper;
}
+{% endif %}
+{% endblock %}
+
+
+{##############################################################################}
+{% block deref_object %}
void {{v8_class_name}}::derefObject(void* object)
{
fromInternalPointer(object)->deref();

Powered by Google App Engine
This is Rietveld 408576698