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 != | 6 {%- if module.path != "mojo/public/interfaces/bindings/interface_control_message
s.mojom" %} |
7 "mojo/public/interfaces/bindings/interface_control_messages.mojom" and | |
8 module.path != | |
9 "mojo/public/interfaces/bindings/pipe_control_messages.mojom" %} | |
10 "mojo/public/js/bindings", | 7 "mojo/public/js/bindings", |
11 {%- endif %} | 8 {%- endif %} |
12 "mojo/public/js/codec", | 9 "mojo/public/js/codec", |
13 "mojo/public/js/core", | 10 "mojo/public/js/core", |
14 "mojo/public/js/validator", | 11 "mojo/public/js/validator", |
15 {%- for import in imports %} | 12 {%- for import in imports %} |
16 "{{import.module.path}}", | 13 "{{import.module.path}}", |
17 {%- endfor %} | 14 {%- endfor %} |
18 ], function( | 15 ], function( |
19 {%- if module.path != | 16 {%- if module.path != "mojo/public/interfaces/bindings/interface_control_message
s.mojom" -%} |
20 "mojo/public/interfaces/bindings/interface_control_messages.mojom" and | |
21 module.path != | |
22 "mojo/public/interfaces/bindings/pipe_control_messages.mojom" -%} | |
23 bindings, {% endif -%} | 17 bindings, {% endif -%} |
24 codec, core, validator | 18 codec, core, validator |
25 {%- for import in imports -%} | 19 {%- for import in imports -%} |
26 , {{import.unique_name}} | 20 , {{import.unique_name}} |
27 {%- endfor -%} | 21 {%- endfor -%} |
28 ) { | 22 ) { |
29 | 23 |
30 {%- include "module_definition.tmpl" %} | 24 {%- include "module_definition.tmpl" %} |
31 | 25 |
32 return exports; | 26 return exports; |
33 }); | 27 }); |
OLD | NEW |