Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Side by Side Diff: mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl

Issue 2796253002: Associated Message Validation (Closed)
Patch Set: Formatting. Add braces to if statements in validateMessageHeader Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 {%- if use_new_js_bindings %} 5 {%- if use_new_js_bindings %}
6 6
7 'use strict'; 7 'use strict';
8 8
9 (function() { 9 (function() {
10 var mojomId = '{{module.path}}'; 10 var mojomId = '{{module.path}}';
(...skipping 24 matching lines...) Expand all
35 {% include "module_definition.tmpl" %} 35 {% include "module_definition.tmpl" %}
36 })(); 36 })();
37 37
38 {%- else %} 38 {%- else %}
39 39
40 define("{{module.path}}", [ 40 define("{{module.path}}", [
41 {%- if module.path != 41 {%- if module.path !=
42 "mojo/public/interfaces/bindings/interface_control_messages.mojom" and 42 "mojo/public/interfaces/bindings/interface_control_messages.mojom" and
43 module.path != 43 module.path !=
44 "mojo/public/interfaces/bindings/pipe_control_messages.mojom" %} 44 "mojo/public/interfaces/bindings/pipe_control_messages.mojom" %}
45 "mojo/public/js/associated_bindings",
45 "mojo/public/js/bindings", 46 "mojo/public/js/bindings",
46 {%- endif %} 47 {%- endif %}
47 "mojo/public/js/codec", 48 "mojo/public/js/codec",
48 "mojo/public/js/core", 49 "mojo/public/js/core",
49 "mojo/public/js/validator", 50 "mojo/public/js/validator",
50 {%- for import in imports %} 51 {%- for import in imports %}
51 "{{import.module.path}}", 52 "{{import.module.path}}",
52 {%- endfor %} 53 {%- endfor %}
53 ], function( 54 ], function(
54 {%- if module.path != 55 {%- if module.path !=
55 "mojo/public/interfaces/bindings/interface_control_messages.mojom" and 56 "mojo/public/interfaces/bindings/interface_control_messages.mojom" and
56 module.path != 57 module.path !=
57 "mojo/public/interfaces/bindings/pipe_control_messages.mojom" -%} 58 "mojo/public/interfaces/bindings/pipe_control_messages.mojom" -%}
58 bindings, {% endif -%} 59 associatedBindings, bindings, {% endif -%}
59 codec, core, validator 60 codec, core, validator
60 {%- for import in imports -%} 61 {%- for import in imports -%}
61 , {{import.unique_name}} 62 , {{import.unique_name}}
62 {%- endfor -%} 63 {%- endfor -%}
63 ) { 64 ) {
64 65
65 {%- include "module_definition.tmpl" %} 66 {%- include "module_definition.tmpl" %}
66 67
67 return exports; 68 return exports;
68 }); 69 });
69 70
70 {%- endif %} 71 {%- endif %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698