| Index: mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/mojom/sample/Request.java
|
| diff --git a/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/mojom/sample/Request.java b/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/mojom/sample/Request.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..584fec92a10208f95cede2ab5dc9bd45ad62d71b
|
| --- /dev/null
|
| +++ b/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/mojom/sample/Request.java
|
| @@ -0,0 +1,62 @@
|
| +// Copyright 2014 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.
|
| +
|
| +// This file is autogenerated by:
|
| +// mojo/public/tools/bindings/mojom_bindings_generator.py
|
| +// For:
|
| +// mojo/public/interfaces/bindings/tests/sample_factory.mojom
|
| +//
|
| +
|
| +package org.chromium.mojo.bindings.test.mojom.sample;
|
| +
|
| +public final class Request extends org.chromium.mojo.bindings.Struct {
|
| +
|
| + private static final int STRUCT_SIZE = 32;
|
| + private static final DataHeader DEFAULT_STRUCT_INFO = new DataHeader(STRUCT_SIZE, 4);
|
| +
|
| + public int x;
|
| + public org.chromium.mojo.system.MessagePipeHandle pipe;
|
| + public org.chromium.mojo.system.MessagePipeHandle[] morePipes;
|
| + public org.chromium.mojo.bindings.test.mojom.imported.ImportedInterface obj;
|
| +
|
| + public Request() {
|
| + super(STRUCT_SIZE);
|
| + pipe = org.chromium.mojo.system.InvalidHandle.INSTANCE;
|
| + }
|
| +
|
| + public static Request deserialize(org.chromium.mojo.bindings.Message message) {
|
| + return decode(new org.chromium.mojo.bindings.Decoder(message));
|
| + }
|
| +
|
| + public static Request decode(org.chromium.mojo.bindings.Decoder decoder0) {
|
| + if (decoder0 == null) {
|
| + return null;
|
| + }
|
| + Request result = new Request();
|
| + DataHeader mainDataHeader = decoder0.readDataHeader();
|
| + if (mainDataHeader.numFields > 0) {
|
| + result.x = decoder0.readInt(8);
|
| + }
|
| + if (mainDataHeader.numFields > 1) {
|
| + result.pipe = decoder0.readMessagePipeHandle(12);
|
| + }
|
| + if (mainDataHeader.numFields > 2) {
|
| + result.morePipes = decoder0.readMessagePipeHandles(16);
|
| + }
|
| + if (mainDataHeader.numFields > 3) {
|
| + result.obj = decoder0.readServiceInterface(24, org.chromium.mojo.bindings.test.mojom.imported.ImportedInterface.BUILDER);
|
| + }
|
| + return result;
|
| + }
|
| +
|
| + @Override
|
| + protected final void encode(org.chromium.mojo.bindings.Encoder encoder) {
|
| + org.chromium.mojo.bindings.Encoder encoder0 = encoder.getEncoderAtDataOffset(DEFAULT_STRUCT_INFO);
|
| + encoder0.encode(x, 8);
|
| + encoder0.encode(pipe, 12);
|
| + encoder0.encode(morePipes, 16);
|
| + encoder0.encode(obj, 24, org.chromium.mojo.bindings.test.mojom.imported.ImportedInterface.BUILDER);
|
| + }
|
| +}
|
| +
|
|
|