Chromium Code Reviews| 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_messag es.mojom" %} | |
|
yzshen1
2017/02/11 01:11:30
nit: we don't have style guide for tmpl files, but
wangjimmy
2017/02/13 20:43:07
Done.
| |
| 6 "mojo/public/js/bindings", | 7 "mojo/public/js/bindings", |
| 8 {%- endif %} | |
| 7 "mojo/public/js/codec", | 9 "mojo/public/js/codec", |
| 8 "mojo/public/js/core", | 10 "mojo/public/js/core", |
| 9 "mojo/public/js/validator", | 11 "mojo/public/js/validator", |
| 10 {%- for import in imports %} | 12 {%- for import in imports %} |
| 11 "{{import.module.path}}", | 13 "{{import.module.path}}", |
| 12 {%- endfor %} | 14 {%- endfor %} |
| 13 ], function(bindings, codec, core, validator | 15 ], function( |
| 16 {%- if module.path != "mojo/public/interfaces/bindings/interface_control_messag es.mojom" -%} | |
| 17 bindings, {% endif -%} | |
| 18 codec, core, validator | |
| 14 {%- for import in imports -%} | 19 {%- for import in imports -%} |
| 15 , {{import.unique_name}} | 20 , {{import.unique_name}} |
| 16 {%- endfor -%} | 21 {%- endfor -%} |
| 17 ) { | 22 ) { |
| 18 | 23 |
| 19 {%- include "module_definition.tmpl" %} | 24 {%- include "module_definition.tmpl" %} |
| 20 | 25 |
| 21 return exports; | 26 return exports; |
| 22 }); | 27 }); |
| OLD | NEW |