| Index: mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl b/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| index 62f03ae7e9f7e449f75fab8f3664eb32fc2e5200..ca2a0eab3b4190c53387af651b0152b794c29b72 100644
|
| --- a/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| @@ -157,6 +157,16 @@ params.{{parameter.name}}{% if not loop.last %}, {% endif -%}
|
| {%- endif %}
|
| }
|
|
|
| + {{interface.name}}Stub.prototype.validators = [
|
| + validate{{interface.name}}Request
|
| + ];
|
| +
|
| + {{interface.name}}Proxy.prototype.validators = [
|
| +{%- if interface|has_callbacks %}
|
| + validate{{interface.name}}Response
|
| +{%- endif %}
|
| + ];
|
| +
|
| {#--- Enums #}
|
| {% from "enum_definition.tmpl" import enum_def -%}
|
| {% for enum in interface.enums %}
|
| @@ -168,4 +178,4 @@ params.{{parameter.name}}{% if not loop.last %}, {% endif -%}
|
| {% for constant in interface.constants %}
|
| {{interface.name}}Proxy.{{constant.name}} = {{constant.value|expression_to_text}};
|
| {{interface.name}}Stub.{{constant.name}} = {{interface.name}}Proxy.{{constant.name}};
|
| -{% endfor %}
|
| +{%- endfor %}
|
|
|