summaryrefslogtreecommitdiff
path: root/chromium/mojo/public/tools/bindings/generators/js_templates/lite/mojom-lite.js.tmpl
blob: a02c7a32077ae616237bee61d50a57305a058e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2018 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.
'use strict';

{% if generate_closure_exports -%}
goog.require('mojo.internal');
{%- if interfaces %}
goog.require('mojo.internal.interfaceSupport');
{%- endif %}
{% for kind in module.imported_kinds.values() %}
goog.require('{{kind|lite_js_import_name}}');
{%- endfor %}
{% else %}
mojo.internal.exportModule('{{module.namespace}}');
{% endif %}

{% include "lite/module_definition.tmpl" %}