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

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

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.h
diff --git a/mojo/public/bindings/sample/generated/sample_bar.h b/mojo/public/bindings/sample/generated/sample_bar.h
deleted file mode 100644
index d6ca18956538431a4d27e63077b0f5ec1c090d32..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/sample/generated/sample_bar.h
+++ /dev/null
@@ -1,44 +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.
-
-#ifndef MOJO_GENERATED_BINDINGS_SAMPLE_BAR_H_
-#define MOJO_GENERATED_BINDINGS_SAMPLE_BAR_H_
-
-#include "mojo/public/bindings/lib/bindings.h"
-
-namespace sample {
-
-#pragma pack(push, 1)
-
-class Bar {
- public:
- static Bar* New(mojo::Buffer* buf);
-
- void set_alpha(uint8_t alpha) { alpha_ = alpha; }
- void set_beta(uint8_t beta) { beta_ = beta; }
- void set_gamma(uint8_t gamma) { gamma_ = gamma; }
-
- uint8_t alpha() const { return alpha_; }
- uint8_t beta() const { return beta_; }
- uint8_t gamma() const { return gamma_; }
-
- private:
- friend class mojo::internal::ObjectTraits<Bar>;
-
- Bar();
- ~Bar(); // NOT IMPLEMENTED
-
- mojo::internal::StructHeader _header_;
- uint8_t alpha_;
- uint8_t beta_;
- uint8_t gamma_;
- uint8_t _pad0_[5];
-};
-MOJO_COMPILE_ASSERT(sizeof(Bar) == 16, bad_sizeof_Bar);
-
-#pragma pack(pop)
-
-} // namespace sample
-
-#endif // MOJO_GENERATED_BINDINGS_SAMPLE_BAR_H_

Powered by Google App Engine
This is Rietveld 408576698