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

Unified Diff: mojo/public/bindings/generators/js_templates/module.js.tmpl

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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/bindings/generators/js_templates/module.js.tmpl
diff --git a/mojo/public/bindings/generators/js_templates/module.js.tmpl b/mojo/public/bindings/generators/js_templates/module.js.tmpl
deleted file mode 100644
index 08c5a9721f6f616ce63b1f287c486fbe91e9c121..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/generators/js_templates/module.js.tmpl
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-define("{{module.path}}", [
- "mojo/bindings/js/core",
- "mojo/public/js/bindings/codec",
-{%- for import in imports %}
- "{{import.module.path}}",
-{%- endfor %}
- ], function(core, codec
-{%- for import in imports -%}
- , {{import.unique_name}}
-{%- endfor -%}
-) {
-
-{#--- Enums #}
-{% from "enum_definition.tmpl" import enum_def -%}
-{% for enum in enums %}
- var {{ enum_def(enum.name, enum, module) }}
-{%- 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 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}}Proxy = {{interface.name}}Proxy;
- exports.{{interface.name}}Stub = {{interface.name}}Stub;
-{%- endfor %}
- return exports;
-});

Powered by Google App Engine
This is Rietveld 408576698