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

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl

Issue 2215323004: Mojo C++ bindings: inline Get*DataView() methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@85_6_transform
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl » ('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 {%- if variant -%} 5 {%- if variant -%}
6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%}
7 {%- else -%} 7 {%- else -%}
8 {%- set variant_path = module.path -%} 8 {%- set variant_path = module.path -%}
9 {%- endif %} 9 {%- endif %}
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 {%- else %} 122 {%- else %}
123 const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}} = {{cons tant|constant_value}}; 123 const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}} = {{cons tant|constant_value}};
124 {%- endif %} 124 {%- endif %}
125 {%- endfor %} 125 {%- endfor %}
126 {%- endfor %} 126 {%- endfor %}
127 127
128 {#--- Struct builder definitions #} 128 {#--- Struct builder definitions #}
129 {%- for struct in structs %} 129 {%- for struct in structs %}
130 {%- if not struct|is_native_only_kind %} 130 {%- if not struct|is_native_only_kind %}
131 {%- include "wrapper_class_definition.tmpl" %} 131 {%- include "wrapper_class_definition.tmpl" %}
132 {%- include "struct_data_view_definition.tmpl" %}
133 {%- endif %} 132 {%- endif %}
134 {%- endfor %} 133 {%- endfor %}
135 134
136 {#--- Union builder definitions #} 135 {#--- Union builder definitions #}
137 {%- for union in unions %} 136 {%- for union in unions %}
138 {%- include "wrapper_union_class_definition.tmpl" %} 137 {%- include "wrapper_union_class_definition.tmpl" %}
139 {%- endfor %} 138 {%- endfor %}
140 139
141 {#--- Interface definitions #} 140 {#--- Interface definitions #}
142 {%- for interface in interfaces %} 141 {%- for interface in interfaces %}
(...skipping 22 matching lines...) Expand all
165 {%- endfor %} 164 {%- endfor %}
166 165
167 } // namespace mojo 166 } // namespace mojo
168 167
169 168
170 #if defined(__clang__) 169 #if defined(__clang__)
171 #pragma clang diagnostic pop 170 #pragma clang diagnostic pop
172 #elif defined(_MSC_VER) 171 #elif defined(_MSC_VER)
173 #pragma warning(pop) 172 #pragma warning(pop)
174 #endif 173 #endif
OLDNEW
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698