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

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

Issue 2676443005: Add interface versioning. Methods queryVersion and requireVersion. (Closed)
Patch Set: Created 3 years, 10 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.amd.tmpl
diff --git a/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl b/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl
index d725139db81955bff7d824ab1d2029c7d515d1a7..9d0ba1b2121e1c8fa62b2bf4c2e300de2412883a 100644
--- a/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl
+++ b/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl
@@ -3,14 +3,19 @@
// found in the LICENSE file.
define("{{module.path}}", [
+{%- if module.path != "mojo/public/interfaces/bindings/interface_control_messages.mojom" %}
"mojo/public/js/bindings",
+{%- endif %}
"mojo/public/js/codec",
"mojo/public/js/core",
"mojo/public/js/validator",
{%- for import in imports %}
"{{import.module.path}}",
{%- endfor %}
-], function(bindings, codec, core, validator
+], function(
+{%- if module.path != "mojo/public/interfaces/bindings/interface_control_messages.mojom" -%}
+bindings, {% endif -%}
+codec, core, validator
{%- for import in imports -%}
, {{import.unique_name}}
{%- endfor -%}
« mojo/public/js/tests/interface_ptr_unittest.js ('K') | « mojo/public/js/validator.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698