Index: Source/bindings/templates/callback_interface.h.tmpl |
diff --git a/Source/bindings/templates/callback_interface.h b/Source/bindings/templates/callback_interface.h.tmpl |
similarity index 93% |
rename from Source/bindings/templates/callback_interface.h |
rename to Source/bindings/templates/callback_interface.h.tmpl |
index 9eecbd1e28c038ede310be920b4bb3b528855a48..0fdeb8f96640751b9d62ab8c7d8246f6b3716920 100644 |
--- a/Source/bindings/templates/callback_interface.h |
+++ b/Source/bindings/templates/callback_interface.h.tmpl |
@@ -56,7 +56,8 @@ public: |
virtual ~{{v8_class_name}}(); |
{% for method in methods %} |
- virtual {{method.return_cpp_type}} {{method.name}}({{method.argument_declaration}}); |
+{% set this_value_param = 'ScriptValue thisValue, ' if method.call_with_this_handle else '' %} |
+ virtual {{method.return_cpp_type}} {{method.name}}({{this_value_param}}{{method.argument_declaration}}); |
haraken
2013/08/06 05:02:03
Ditto.
|
{% endfor %} |
virtual ScriptExecutionContext* scriptExecutionContext() const { return ContextLifecycleObserver::scriptExecutionContext(); } |