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

#ifndef HeadlessWidgetTypes_h
#define HeadlessWidgetTypes_h

#include "mozilla/Attributes.h"
#include "IPCMessageStart.h"
#include "mozilla/RefPtr.h"
#include "nsString.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "mozilla/MozPromise.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/ipc/ByteBuf.h"
#include "mozilla/ipc/FileDescriptor.h"
#include "mozilla/ipc/IPCForwards.h"
#include "mozilla/ipc/Shmem.h"

// Headers for typedefs
#include "Units.h"
#include "mozilla/ipc/IPDLStructMember.h"


//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct HeadlessCompositorWidgetInitData|
//
namespace mozilla {
namespace widget {
class HeadlessCompositorWidgetInitData final
{
private:
    typedef ::mozilla::LayoutDeviceIntSize LayoutDeviceIntSize;

public:
#ifdef __clang__
#  pragma clang diagnostic push
#  if __has_warning("-Wdefaulted-function-deleted")
#    pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
#  endif
#endif
    HeadlessCompositorWidgetInitData() = default;
#ifdef __clang__
#  pragma clang diagnostic pop
#endif

    MOZ_IMPLICIT HeadlessCompositorWidgetInitData(const LayoutDeviceIntSize& _InitialClientSize) :
        InitialClientSize_(_InitialClientSize)
    {
    }

    MOZ_IMPLICIT HeadlessCompositorWidgetInitData(LayoutDeviceIntSize&& _InitialClientSize) :
        InitialClientSize_(std::move(_InitialClientSize))
    {
    }

    LayoutDeviceIntSize&
    InitialClientSize()
    {
        return InitialClientSize_;
    }
    const LayoutDeviceIntSize&
    InitialClientSize() const
    {
        return InitialClientSize_;
    }

private:
    ::mozilla::ipc::IPDLStructMember<LayoutDeviceIntSize> InitialClientSize_;
};
} // namespace widget
} // namespace mozilla

namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::HeadlessCompositorWidgetInitData>
{
    typedef ::mozilla::widget::HeadlessCompositorWidgetInitData paramType;
    static void
    Write(
            IPC::MessageWriter* aWriter,
            const paramType& aVar);
    static IPC::ReadResult<paramType>
    Read(IPC::MessageReader* aReader);
};
} // namespace IPC

#endif // ifndef HeadlessWidgetTypes_h
