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

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

Issue 468713002: JavaScript bindings for Mojo message validation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Binding generator simplification for Arrays 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
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 db570cd79dfb26dfdc27bb42348e587ce771a6a3..a37a7a6efe43b2979e8ac0d599b2cd96ec71fa35 100644
--- a/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
+++ b/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
@@ -4,10 +4,11 @@
define("{{module.path}}", [
"mojo/public/js/bindings/codec",
+ "mojo/public/js/bindings/validator",
{%- for import in imports %}
"{{import.module.path}}",
{%- endfor %}
- ], function(codec
+ ], function(codec, validator
{%- for import in imports -%}
, {{import.unique_name}}
{%- endfor -%}
@@ -47,6 +48,8 @@ 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;
yzshen1 2014/08/14 18:02:22 80 chars?
hansmuller 2014/08/14 23:51:46 The existing templates don't strictly adhere to 80
{%- endfor %}
return exports;
});

Powered by Google App Engine
This is Rietveld 408576698