OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 define("{{module.path}}", [ | 5 define("{{module.path}}", [ |
6 {%- if module.path != "mojo/public/interfaces/bindings/interface_control_message
s.mojom" %} | 6 {%- if module.path != "mojo/public/interfaces/bindings/interface_control_message
s.mojom" %} |
7 "mojo/public/js/bindings", | 7 "mojo/public/js/bindings", |
8 {%- endif %} | 8 {%- endif %} |
9 "mojo/public/js/codec", | 9 "mojo/public/js/codec", |
10 "mojo/public/js/core", | |
11 "mojo/public/js/validator", | 10 "mojo/public/js/validator", |
12 {%- for import in imports %} | 11 {%- for import in imports %} |
13 "{{import.module.path}}", | 12 "{{import.module.path}}", |
14 {%- endfor %} | 13 {%- endfor %} |
15 ], function( | 14 ], function( |
16 {%- if module.path != "mojo/public/interfaces/bindings/interface_control_message
s.mojom" -%} | 15 {%- if module.path != "mojo/public/interfaces/bindings/interface_control_message
s.mojom" -%} |
17 bindings, {% endif -%} | 16 bindings, {% endif -%} |
18 codec, core, validator | 17 codec, validator |
19 {%- for import in imports -%} | 18 {%- for import in imports -%} |
20 , {{import.unique_name}} | 19 , {{import.unique_name}} |
21 {%- endfor -%} | 20 {%- endfor -%} |
22 ) { | 21 ) { |
23 | 22 |
24 {%- include "module_definition.tmpl" %} | 23 {%- include "module_definition.tmpl" %} |
25 | 24 |
26 return exports; | 25 return exports; |
27 }); | 26 }); |
OLD | NEW |