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

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

Issue 844433003: Revert "Generate some of the C++ bindings for mojom tagged unions." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
(Empty)
1 {%- set class_name = union.name ~ "_Data" %}
2
3 // static
4 {{class_name}}* {{class_name}}::New(mojo::internal::Buffer* buf) {
5 return new (buf->Allocate(sizeof({{class_name}}))) {{class_name}}();
6 }
7
8 // static
9 bool {{class_name}}::Validate(const void* data,
10 mojo::internal::BoundsChecker* bounds_checker) {
11 // TODO(azani): Implement validation.
12 return true;
13 }
14
15 {{class_name}}::{{class_name}}() {
16 }
17
18 void {{class_name}}::EncodePointersAndHandles(
19 std::vector<mojo::Handle>* handles) {
20 // TODO(azani): Implement pointers and handles.
21 }
22
23 void {{class_name}}::DecodePointersAndHandles(
24 std::vector<mojo::Handle>* handles) {
25 // TODO(azani): Implement pointers and handles.
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698