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

Unified Diff: Source/bindings/templates/callback_interface.h.tmpl

Issue 21006006: Add forEach() to CSSVariablesMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Python code generator changes Created 7 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/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(); }

Powered by Google App Engine
This is Rietveld 408576698