| 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 596a7c761c6c7d7606337cbb85d3606441a88495..d46f8eeac9ce86a90c5dc48f7c162ff9f61aac02 100644
|
| --- a/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| @@ -1,3 +1,4 @@
|
| +{%- set namespace_as_string = namespace|replace(".","::") %}
|
| {%- for method in interface.methods %}
|
| var k{{interface.name}}_{{method.name}}_Name = {{method.ordinal}};
|
| {%- endfor %}
|
| @@ -6,6 +7,8 @@
|
| this.receiver_ = receiver;
|
| }
|
|
|
| + {{interface.name}}Proxy.NAME_ = '{{namespace_as_string}}::{{interface.name}}';
|
| +
|
| {%- for method in interface.methods %}
|
| {{interface.name}}Proxy.prototype.{{method.name|stylize_method}} = function(
|
| {%- for parameter in method.parameters -%}
|
| @@ -51,6 +54,8 @@
|
| function {{interface.name}}Stub() {
|
| }
|
|
|
| + {{interface.name}}Stub.NAME_ = '{{namespace_as_string}}::{{interface.name}}';
|
| +
|
| {{interface.name}}Stub.prototype.accept = function(message) {
|
| var reader = new codec.MessageReader(message);
|
| switch (reader.messageName) {
|
|
|