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

Unified Diff: mojo/public/tools/bindings/generators/js_templates/module.js.tmpl

Issue 488173006: Integrate Mojo JS validation bindings with the Router (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final changes Created 6 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
« no previous file with comments | « mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
diff --git a/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl b/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
index a37a7a6efe43b2979e8ac0d599b2cd96ec71fa35..93fa537023dddb7683fe24bab0a297244c3b32e6 100644
--- a/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
+++ b/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
@@ -28,15 +28,15 @@ define("{{module.path}}", [
{#--- Struct definitions #}
{% for struct in structs %}
{%- include "struct_definition.tmpl" %}
-{%- endfor %}
+{%- endfor -%}
{#--- Interface definitions #}
-{%- for interface in interfaces %}
+{%- for interface in interfaces -%}
{%- include "interface_definition.tmpl" %}
{%- endfor %}
var exports = {};
-{% for constant in module.constants %}
+{%- for constant in module.constants %}
exports.{{constant.name}} = {{constant.name}};
{%- endfor %}
{%- for enum in enums %}
@@ -48,8 +48,6 @@ define("{{module.path}}", [
{%- for interface in interfaces %}
exports.{{interface.name}}Proxy = {{interface.name}}Proxy;
exports.{{interface.name}}Stub = {{interface.name}}Stub;
- exports.validate{{interface.name}}Request = validate{{interface.name}}Request;
- exports.validate{{interface.name}}Response = validate{{interface.name}}Response;
{%- endfor %}
return exports;
});
« no previous file with comments | « mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698