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

Unified Diff: mojo/public/bindings/generators/cpp_templates/interface_macros.tmpl

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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: mojo/public/bindings/generators/cpp_templates/interface_macros.tmpl
diff --git a/mojo/public/bindings/generators/cpp_templates/interface_macros.tmpl b/mojo/public/bindings/generators/cpp_templates/interface_macros.tmpl
deleted file mode 100644
index 70b6091821503b248b9fc232ce196eeab0725e10..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/generators/cpp_templates/interface_macros.tmpl
+++ /dev/null
@@ -1,23 +0,0 @@
-{%- macro declare_params(parameters) %}
-{%- for param in parameters -%}
-{{param.kind|cpp_const_wrapper_type}} in_{{param.name}}
-{%- if not loop.last %}, {% endif %}
-{%- endfor %}
-{%- endmacro %}
-
-{%- macro declare_callback(method) -%}
-mojo::Callback<void(
-{%- for param in method.response_parameters -%}
-{{param.kind|cpp_result_type}}
-{%- if not loop.last %}, {% endif %}
-{%- endfor -%}
-)>
-{%- endmacro -%}
-
-{%- macro declare_request_params(method) -%}
-{{declare_params(method.parameters)}}
-{%- if method.response_parameters != None -%}
-{%- if method.parameters %}, {% endif %}
-const {{declare_callback(method)}}& callback
-{%- endif -%}
-{%- endmacro -%}

Powered by Google App Engine
This is Rietveld 408576698