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

Unified Diff: mojo/public/bindings/generators/cpp_templates/struct_implementation

Issue 65933002: Mojo: Unify the disparate source and header files into 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mistaken /n's Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/bindings/generators/cpp_templates/struct_implementation
diff --git a/mojo/public/bindings/generators/cpp_templates/struct_implementation b/mojo/public/bindings/generators/cpp_templates/struct_implementation
deleted file mode 100644
index 92e8fe97e2ae1fd2e0e001d392734c392985cb2e..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/generators/cpp_templates/struct_implementation
+++ /dev/null
@@ -1,9 +0,0 @@
-// static
-$CLASS* $CLASS::New(mojo::Buffer* buf) {
- return new (buf->Allocate(sizeof($CLASS))) $CLASS();
-}
-
-$CLASS::$CLASS() {
- _header_.num_bytes = sizeof(*this);
- _header_.num_fields = $NUM_FIELDS;
-}

Powered by Google App Engine
This is Rietveld 408576698