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

Side by Side Diff: mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl

Issue 799113004: Update mojo sdk to rev 59145288bae55b0fce4276b017df6a1117bcf00f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add mojo's ply to checklicenses whitelist Created 6 years 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 unified diff | Download patch
OLDNEW
1 {%- for method in interface.methods %} 1 {%- for method in interface.methods %}
2 var k{{interface.name}}_{{method.name}}_Name = {{method.ordinal}}; 2 var k{{interface.name}}_{{method.name}}_Name = {{method.ordinal}};
3 {%- endfor %} 3 {%- endfor %}
4 4
5 function {{interface.name}}Proxy(receiver) { 5 function {{interface.name}}Proxy(receiver) {
6 this.receiver_ = receiver; 6 connection.initProxyInstance(this, {{interface.name}}, receiver);
7 } 7 }
8 8
9 {{interface.name}}Proxy.prototype.getConnection$ = function() { 9 {{interface.name}}Proxy.prototype.getConnection$ = function() {
10 return connection.getProxyConnection(this, {{interface.name}}); 10 return connection.getProxyConnection(this, {{interface.name}});
11 } 11 }
12 12
13 {%- for method in interface.methods %} 13 {%- for method in interface.methods %}
14 {{interface.name}}Proxy.prototype.{{method.name|stylize_method}} = function( 14 {{interface.name}}Proxy.prototype.{{method.name|stylize_method}} = function(
15 {%- for parameter in method.parameters -%} 15 {%- for parameter in method.parameters -%}
16 {{parameter.name}}{% if not loop.last %}, {% endif %} 16 {{parameter.name}}{% if not loop.last %}, {% endif %}
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 {%- from "enum_definition.tmpl" import enum_def -%} 201 {%- from "enum_definition.tmpl" import enum_def -%}
202 {%- for enum in interface.enums %} 202 {%- for enum in interface.enums %}
203 {{ enum_def("%s.%s"|format(interface.name, enum.name), enum) }} 203 {{ enum_def("%s.%s"|format(interface.name, enum.name), enum) }}
204 {%- endfor %} 204 {%- endfor %}
205 {{interface.name}}Stub.prototype.validator = validate{{interface.name}}Request ; 205 {{interface.name}}Stub.prototype.validator = validate{{interface.name}}Request ;
206 {%- if interface|has_callbacks %} 206 {%- if interface|has_callbacks %}
207 {{interface.name}}Proxy.prototype.validator = validate{{interface.name}}Respon se; 207 {{interface.name}}Proxy.prototype.validator = validate{{interface.name}}Respon se;
208 {%- else %} 208 {%- else %}
209 {{interface.name}}Proxy.prototype.validator = null; 209 {{interface.name}}Proxy.prototype.validator = null;
210 {%- endif %} 210 {%- endif %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698