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

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

Issue 80153003: IDL compiler: [CustomLegacyCall] interfaces, cleanup header conditional spacing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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
« no previous file with comments | « Source/bindings/templates/callback_interface.h ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/templates/interface.h
diff --git a/Source/bindings/templates/interface.h b/Source/bindings/templates/interface.h
index 0443aaf2c68880e45e0ce6312927ede084be7003..92b5b28fb498cebbc70235d2bc32733ea68a62db 100644
--- a/Source/bindings/templates/interface.h
+++ b/Source/bindings/templates/interface.h
@@ -35,9 +35,7 @@
#ifndef {{v8_class_name}}_h
#define {{v8_class_name}}_h
-{% if conditional_string %}
-#if {{conditional_string}}
-{% endif %}
+{% filter conditional(conditional_string) %}
{% for filename in header_includes %}
#include "{{filename}}"
{% endfor %}
@@ -78,6 +76,9 @@ public:
{% endfilter %}
{% endif %}
{% endfor %}
+ {% if has_custom_legacy_call %}
+ static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&);
+ {% endif %}
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
static inline void* toInternalPointer({{cpp_class_name}}* impl)
{
@@ -187,9 +188,5 @@ inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<{{
}
}
-{% if conditional_string %}
-
-#endif // {{conditional_string}}
-{% endif %}
-
+{% endfilter %}
#endif // {{v8_class_name}}_h
« no previous file with comments | « Source/bindings/templates/callback_interface.h ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698