| Index: mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl b/mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
|
| similarity index 67%
|
| rename from mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
|
| rename to mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
|
| index 397a12054624925bf573cdbca83aa26e2878f910..f54e0969278450a2582db5b664e5c609c0ac63ab 100644
|
| --- a/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
|
| @@ -1,21 +1,5 @@
|
| -// 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/public/js/bindings/codec",
|
| - "mojo/public/js/bindings/validator",
|
| -{%- for import in imports %}
|
| - "{{import.module.path}}",
|
| -{%- endfor %}
|
| - ], function(codec, validator
|
| -{%- for import in imports -%}
|
| - , {{import.unique_name}}
|
| -{%- endfor -%}
|
| -) {
|
| -
|
| {#--- Constants #}
|
| -{% for constant in module.constants %}
|
| +{%- for constant in module.constants %}
|
| var {{constant.name}} = {{constant.value|expression_to_text}};
|
| {%- endfor %}
|
|
|
| @@ -52,6 +36,3 @@ define("{{module.path}}", [
|
| exports.{{interface.name}}.client = {{interface.client}};
|
| {%- endif %}
|
| {%- endfor %}
|
| -
|
| - return exports;
|
| -});
|
|
|