//
// Automatically generated by ipdlc.
// Edit at your own risk
//


#include "mozilla/GfxMessageUtils.h"
#include "mozilla/widget/HeadlessWidgetTypes.h"

#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "nsIFile.h"
#include "mozilla/ipc/Endpoint.h"
#include "mozilla/ipc/ProtocolMessageUtils.h"
#include "mozilla/ipc/ProtocolUtils.h"
#include "mozilla/ipc/ShmemMessageUtils.h"
#include "mozilla/ipc/TaintingIPCUtils.h"


//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct HeadlessCompositorWidgetInitData|
//
namespace mozilla {
namespace widget {
} // namespace widget
} // namespace mozilla

namespace IPC {
auto ParamTraits<::mozilla::widget::HeadlessCompositorWidgetInitData>::Write(
        IPC::MessageWriter* aWriter,
        const paramType& aVar) -> void
{
    IPC::WriteParam(aWriter, (aVar).InitialClientSize());
    // Sentinel = 'InitialClientSize'
    (aWriter)->WriteSentinel(1006307013);
}

auto ParamTraits<::mozilla::widget::HeadlessCompositorWidgetInitData>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
    auto maybe___InitialClientSize = IPC::ReadParam<::mozilla::LayoutDeviceIntSize>(aReader);
    if (!maybe___InitialClientSize) {
        aReader->FatalError("Error deserializing 'InitialClientSize' (LayoutDeviceIntSize) member of 'HeadlessCompositorWidgetInitData'");
        return {};

    }
    auto& _InitialClientSize = *maybe___InitialClientSize;
    // Sentinel = 'InitialClientSize'
    if ((!((aReader)->ReadSentinel(1006307013)))) {
        mozilla::ipc::SentinelReadError("Error deserializing 'InitialClientSize' (LayoutDeviceIntSize) member of 'HeadlessCompositorWidgetInitData'");
        return {};
    }
    IPC::ReadResult<paramType> result__{
            std::in_place,
            std::move(_InitialClientSize)};
    return result__;
}

} // namespace IPC
