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

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

Issue 100573003: [Mojo] Move JS bindings out of public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « mojo/mojo_public.gypi ('k') | mojo/public/bindings/js/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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([ 5 define([
6 "mojo/public/bindings/js/core", 6 "mojo/apps/js/bindings/core",
7 "mojo/public/bindings/js/codec", 7 "mojo/apps/js/bindings/codec",
abarth-chromium 2013/12/03 07:13:26 The one odd thing with this arrangement is this re
8 ], function(core, codec) { 8 ], function(core, codec) {
9 {%- for struct in structs %} 9 {%- for struct in structs %}
10 10
11 function {{struct.name}}() { 11 function {{struct.name}}() {
12 {%- for packed_field in struct.packed.packed_fields %} 12 {%- for packed_field in struct.packed.packed_fields %}
13 this.{{packed_field.field.name}} = {{packed_field.field|default_value}}; 13 this.{{packed_field.field.name}} = {{packed_field.field|default_value}};
14 {%- endfor %} 14 {%- endfor %}
15 } 15 }
16 16
17 {{struct.name}}.encodedSize = codec.kStructHeaderSize + {{struct.packed|payloa d_size}}; 17 {{struct.name}}.encodedSize = codec.kStructHeaderSize + {{struct.packed|payloa d_size}};
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 var exports = {}; 116 var exports = {};
117 {%- for struct in structs if struct.exported %} 117 {%- for struct in structs if struct.exported %}
118 exports.{{struct.name}} = {{struct.name}}; 118 exports.{{struct.name}} = {{struct.name}};
119 {%- endfor %} 119 {%- endfor %}
120 {%- for interface in interfaces %} 120 {%- for interface in interfaces %}
121 exports.{{interface.name}}Proxy = {{interface.name}}Proxy; 121 exports.{{interface.name}}Proxy = {{interface.name}}Proxy;
122 exports.{{interface.name}}Stub = {{interface.name}}Stub; 122 exports.{{interface.name}}Stub = {{interface.name}}Stub;
123 {%- endfor %} 123 {%- endfor %}
124 return exports; 124 return exports;
125 }); 125 });
OLDNEW
« no previous file with comments | « mojo/mojo_public.gypi ('k') | mojo/public/bindings/js/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698