| Index: mojo/public/cpp/bindings/gen/sample_service.mojom-internal.h
|
| diff --git a/mojo/public/cpp/bindings/gen/sample_service.mojom-internal.h b/mojo/public/cpp/bindings/gen/sample_service.mojom-internal.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cb416cab5ec3dd24c1023600b3116f2b234e819c
|
| --- /dev/null
|
| +++ b/mojo/public/cpp/bindings/gen/sample_service.mojom-internal.h
|
| @@ -0,0 +1,183 @@
|
| +// 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_PUBLIC_INTERFACES_BINDINGS_TESTS_SAMPLE_SERVICE_MOJOM_INTERNAL_H_
|
| +#define MOJO_PUBLIC_INTERFACES_BINDINGS_TESTS_SAMPLE_SERVICE_MOJOM_INTERNAL_H_
|
| +
|
| +#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
|
| +#include "mojo/public/cpp/bindings/lib/buffer.h"
|
| +#include "mojo/public/interfaces/bindings/tests/sample_import.mojom-internal.h"
|
| +#include "mojo/public/interfaces/bindings/tests/sample_import2.mojom-internal.h"
|
| +namespace sample {
|
| +
|
| +class Bar;
|
| +class Foo;
|
| +class DefaultsTestInner;
|
| +class DefaultsTest;
|
| +class StructWithHoleV1;
|
| +class StructWithHoleV2;
|
| +
|
| +namespace internal {
|
| +
|
| +#pragma pack(push, 1)
|
| +
|
| +class Bar_Data {
|
| + public:
|
| + static Bar_Data* New(mojo::internal::Buffer* buf);
|
| +
|
| + mojo::internal::StructHeader header_;
|
| +
|
| + uint8_t alpha;
|
| + uint8_t beta;
|
| + uint8_t gamma;
|
| + uint8_t pad2_[1];
|
| + int32_t type;
|
| +
|
| + void EncodePointersAndHandles(std::vector<mojo::Handle>* handles);
|
| + bool DecodePointersAndHandles(mojo::Message* message);
|
| +
|
| + private:
|
| + Bar_Data();
|
| + ~Bar_Data(); // NOT IMPLEMENTED
|
| +};
|
| +MOJO_COMPILE_ASSERT(sizeof(Bar_Data) == 16,
|
| + bad_sizeof_Bar_Data);
|
| +
|
| +class Foo_Data {
|
| + public:
|
| + static Foo_Data* New(mojo::internal::Buffer* buf);
|
| +
|
| + mojo::internal::StructHeader header_;
|
| +
|
| + int32_t x;
|
| + int32_t y;
|
| + uint8_t a : 1;
|
| + uint8_t b : 1;
|
| + uint8_t c : 1;
|
| + uint8_t pad4_[3];
|
| + mojo::MessagePipeHandle source;
|
| + mojo::internal::StructPointer<internal::Bar_Data> bar;
|
| + mojo::internal::ArrayPointer<uint8_t> data;
|
| + mojo::internal::ArrayPointer<internal::Bar_Data*> extra_bars;
|
| + mojo::internal::StringPointer name;
|
| + mojo::internal::ArrayPointer<mojo::DataPipeConsumerHandle> input_streams;
|
| + mojo::internal::ArrayPointer<mojo::DataPipeProducerHandle> output_streams;
|
| + mojo::internal::ArrayPointer<mojo::internal::Array_Data<bool>*> array_of_array_of_bools;
|
| + mojo::internal::ArrayPointer<mojo::internal::Array_Data<mojo::internal::Array_Data<mojo::internal::String_Data*>*>*> multi_array_of_strings;
|
| +
|
| + void EncodePointersAndHandles(std::vector<mojo::Handle>* handles);
|
| + bool DecodePointersAndHandles(mojo::Message* message);
|
| +
|
| + private:
|
| + Foo_Data();
|
| + ~Foo_Data(); // NOT IMPLEMENTED
|
| +};
|
| +MOJO_COMPILE_ASSERT(sizeof(Foo_Data) == 88,
|
| + bad_sizeof_Foo_Data);
|
| +
|
| +class DefaultsTestInner_Data {
|
| + public:
|
| + static DefaultsTestInner_Data* New(mojo::internal::Buffer* buf);
|
| +
|
| + mojo::internal::StructHeader header_;
|
| +
|
| + int32_t x;
|
| + uint8_t padfinal_[4];
|
| +
|
| + void EncodePointersAndHandles(std::vector<mojo::Handle>* handles);
|
| + bool DecodePointersAndHandles(mojo::Message* message);
|
| +
|
| + private:
|
| + DefaultsTestInner_Data();
|
| + ~DefaultsTestInner_Data(); // NOT IMPLEMENTED
|
| +};
|
| +MOJO_COMPILE_ASSERT(sizeof(DefaultsTestInner_Data) == 16,
|
| + bad_sizeof_DefaultsTestInner_Data);
|
| +
|
| +class DefaultsTest_Data {
|
| + public:
|
| + static DefaultsTest_Data* New(mojo::internal::Buffer* buf);
|
| +
|
| + mojo::internal::StructHeader header_;
|
| +
|
| + int8_t a0;
|
| + uint8_t a1;
|
| + int16_t a2;
|
| + uint16_t a3;
|
| + uint8_t a11 : 1;
|
| + uint8_t a12 : 1;
|
| + uint8_t pad5_[1];
|
| + int32_t a4;
|
| + uint32_t a5;
|
| + int64_t a6;
|
| + uint64_t a7;
|
| + int32_t a8;
|
| + int32_t a9;
|
| + int32_t a10;
|
| + float a13;
|
| + double a14;
|
| + double a15;
|
| + double a16;
|
| + double a17;
|
| + mojo::internal::StructPointer<internal::DefaultsTestInner_Data> a18;
|
| + mojo::internal::ArrayPointer<uint8_t> a19;
|
| + mojo::internal::StringPointer a20;
|
| +
|
| + void EncodePointersAndHandles(std::vector<mojo::Handle>* handles);
|
| + bool DecodePointersAndHandles(mojo::Message* message);
|
| +
|
| + private:
|
| + DefaultsTest_Data();
|
| + ~DefaultsTest_Data(); // NOT IMPLEMENTED
|
| +};
|
| +MOJO_COMPILE_ASSERT(sizeof(DefaultsTest_Data) == 112,
|
| + bad_sizeof_DefaultsTest_Data);
|
| +
|
| +class StructWithHoleV1_Data {
|
| + public:
|
| + static StructWithHoleV1_Data* New(mojo::internal::Buffer* buf);
|
| +
|
| + mojo::internal::StructHeader header_;
|
| +
|
| + int32_t v1;
|
| + uint8_t pad0_[4];
|
| + int64_t v2;
|
| +
|
| + void EncodePointersAndHandles(std::vector<mojo::Handle>* handles);
|
| + bool DecodePointersAndHandles(mojo::Message* message);
|
| +
|
| + private:
|
| + StructWithHoleV1_Data();
|
| + ~StructWithHoleV1_Data(); // NOT IMPLEMENTED
|
| +};
|
| +MOJO_COMPILE_ASSERT(sizeof(StructWithHoleV1_Data) == 24,
|
| + bad_sizeof_StructWithHoleV1_Data);
|
| +
|
| +class StructWithHoleV2_Data {
|
| + public:
|
| + static StructWithHoleV2_Data* New(mojo::internal::Buffer* buf);
|
| +
|
| + mojo::internal::StructHeader header_;
|
| +
|
| + int32_t v1;
|
| + int32_t v3;
|
| + int64_t v2;
|
| +
|
| + void EncodePointersAndHandles(std::vector<mojo::Handle>* handles);
|
| + bool DecodePointersAndHandles(mojo::Message* message);
|
| +
|
| + private:
|
| + StructWithHoleV2_Data();
|
| + ~StructWithHoleV2_Data(); // NOT IMPLEMENTED
|
| +};
|
| +MOJO_COMPILE_ASSERT(sizeof(StructWithHoleV2_Data) == 24,
|
| + bad_sizeof_StructWithHoleV2_Data);
|
| +
|
| +
|
| +#pragma pack(pop)
|
| +
|
| +} // namespace internal
|
| +} // namespace sample
|
| +
|
| +#endif // MOJO_PUBLIC_INTERFACES_BINDINGS_TESTS_SAMPLE_SERVICE_MOJOM_INTERNAL_H_
|
|
|