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