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

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

Issue 2891193002: Mojo JS bindings: switch all mojo/ layout tests to use the new mode. (Closed)
Patch Set: . Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 {#--- Constants #} 1 {#--- Constants #}
2 {%- for constant in module.constants %} 2 {%- for constant in module.constants %}
3 var {{constant.name}} = {{constant.value|expression_to_text}}; 3 var {{constant.name}} = {{constant.value|expression_to_text}};
4 {%- endfor %} 4 {%- endfor %}
5 5
6 {#--- Enums #} 6 {#--- Enums #}
7 {%- from "enum_definition.tmpl" import enum_def %} 7 {%- from "enum_definition.tmpl" import enum_def %}
8 {%- for enum in enums %} 8 {%- for enum in enums %}
9 var {{ enum_def(enum.name, enum) }} 9 var {{ enum_def(enum.name, enum) }}
10 {%- endfor %} 10 {%- endfor %}
(...skipping 28 matching lines...) Expand all
39 {%- endfor %} 39 {%- endfor %}
40 {%- for struct in structs if struct.exported %} 40 {%- for struct in structs if struct.exported %}
41 exports.{{struct.name}} = {{struct.name}}; 41 exports.{{struct.name}} = {{struct.name}};
42 {%- endfor %} 42 {%- endfor %}
43 {%- for union in unions %} 43 {%- for union in unions %}
44 exports.{{union.name}} = {{union.name}}; 44 exports.{{union.name}} = {{union.name}};
45 {%- endfor %} 45 {%- endfor %}
46 {%- for interface in interfaces %} 46 {%- for interface in interfaces %}
47 exports.{{interface.name}} = {{interface.name}}; 47 exports.{{interface.name}} = {{interface.name}};
48 exports.{{interface.name}}Ptr = {{interface.name}}Ptr; 48 exports.{{interface.name}}Ptr = {{interface.name}}Ptr;
49 exports.Associated{{interface.name}}Ptr = Associated{{interface.name}}Ptr; 49 exports.{{interface.name}}AssociatedPtr = {{interface.name}}AssociatedPtr;
50 {%- endfor %} 50 {%- endfor %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698