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

Unified Diff: mojo/public/bindings/sample/generated/sample_bar.cc

Issue 60803002: Simpler bindings, fewer files! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move more to the .cc file 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/sample/generated/sample_bar.cc
diff --git a/mojo/public/bindings/sample/generated/sample_bar.cc b/mojo/public/bindings/sample/generated/sample_bar.cc
deleted file mode 100644
index e4f2daf6b257cfd368d55ece52e121fc90e414d3..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/sample/generated/sample_bar.cc
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/public/bindings/sample/generated/sample_bar.h"
-
-namespace sample {
-
-// static
-Bar* Bar::New(mojo::Buffer* buf) {
- return new (buf->Allocate(sizeof(Bar))) Bar();
-}
-
-Bar::Bar() {
- _header_.num_bytes = sizeof(*this);
- _header_.num_fields = 3;
-}
-
-} // namespace sample

Powered by Google App Engine
This is Rietveld 408576698