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

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

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl b/mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
deleted file mode 100644
index 64480817db287421a8265006f210ba62ea20b59f..0000000000000000000000000000000000000000
--- a/mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{#--- Constants #}
-{%- for constant in module.constants %}
- var {{constant.name}} = {{constant.value|expression_to_text}};
-{%- endfor %}
-
-{#--- Enums #}
-{%- from "enum_definition.tmpl" import enum_def %}
-{%- for enum in enums %}
- var {{ enum_def(enum.name, enum) }}
-{%- endfor %}
-
-{#--- Struct definitions #}
-{% for struct in structs %}
-{%- include "struct_definition.tmpl" %}
-{%- endfor -%}
-
-{#--- Interface definitions #}
-{%- for interface in interfaces -%}
-{%- include "interface_definition.tmpl" %}
-{%- endfor %}
-
- var exports = {};
-{%- for constant in module.constants %}
- exports.{{constant.name}} = {{constant.name}};
-{%- endfor %}
-{%- for enum in enums %}
- exports.{{enum.name}} = {{enum.name}};
-{%- endfor %}
-{%- for struct in structs if struct.exported %}
- exports.{{struct.name}} = {{struct.name}};
-{%- endfor %}
-{%- for interface in interfaces %}
- exports.{{interface.name}} = {{interface.name}};
-{#--- Interface Client #}
-{%- if interface.client in interfaces|map(attribute='name') %}
- exports.{{interface.name}}.client = {{interface.client}};
-{%- elif interface.client in imported_interfaces %}
- exports.{{interface.name}}.client = {{imported_interfaces[interface.client]}};
-{%- endif %}
-{%- endfor %}

Powered by Google App Engine
This is Rietveld 408576698