| OLD | NEW |
| (Empty) | |
| 1 // Copyright $YEAR The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef $HEADER_GUARD |
| 6 #define $HEADER_GUARD |
| 7 |
| 8 #include "mojo/public/bindings/lib/bindings.h" |
| 9 |
| 10 namespace $NAMESPACE { |
| 11 $FORWARDS |
| 12 #pragma pack(push, 1) |
| 13 |
| 14 class $CLASS { |
| 15 public: |
| 16 static $CLASS* New(mojo::Buffer* buf); |
| 17 |
| 18 $SETTERS |
| 19 |
| 20 $GETTERS |
| 21 |
| 22 private: |
| 23 friend class mojo::internal::ObjectTraits<$CLASS>; |
| 24 |
| 25 $CLASS(); |
| 26 ~$CLASS(); // NOT IMPLEMENTED |
| 27 |
| 28 mojo::internal::StructHeader _header_; |
| 29 $FIELDS |
| 30 }; |
| 31 |
| 32 MOJO_COMPILE_ASSERT(sizeof($CLASS) == $SIZE, bad_sizeof_$CLASS); |
| 33 |
| 34 #pragma pack(pop) |
| 35 |
| 36 } // namespace $NAMESPACE |
| 37 |
| 38 #endif // $HEADER_GUARD |
| OLD | NEW |