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

#ifndef PAPZInputBridge_h
#define PAPZInputBridge_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"

namespace mozilla {
namespace layers {
class PAPZInputBridgeParent;
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace layers {
class PAPZInputBridgeChild;
} // namespace layers
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PAPZInputBridgeChild and PAPZInputBridgeParent
//
namespace mozilla {
namespace layers {
namespace PAPZInputBridge {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::layers::PAPZInputBridgeParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::layers::PAPZInputBridgeChild>* aChild);

nsresult
CreateEndpoints(
        mozilla::ipc::Endpoint<::mozilla::layers::PAPZInputBridgeParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::layers::PAPZInputBridgeChild>* aChild);

enum MessageType {
    PAPZInputBridgeStart = PAPZInputBridgeMsgStart << 16,
    Msg_ReceiveMultiTouchInputEvent__ID,
    Reply_ReceiveMultiTouchInputEvent__ID,
    Msg_ReceiveMouseInputEvent__ID,
    Reply_ReceiveMouseInputEvent__ID,
    Msg_ReceivePanGestureInputEvent__ID,
    Reply_ReceivePanGestureInputEvent__ID,
    Msg_ReceivePinchGestureInputEvent__ID,
    Reply_ReceivePinchGestureInputEvent__ID,
    Msg_ReceiveTapGestureInputEvent__ID,
    Reply_ReceiveTapGestureInputEvent__ID,
    Msg_ReceiveScrollWheelInputEvent__ID,
    Reply_ReceiveScrollWheelInputEvent__ID,
    Msg_ReceiveKeyboardInputEvent__ID,
    Reply_ReceiveKeyboardInputEvent__ID,
    Msg_UpdateWheelTransaction__ID,
    Msg_ProcessUnhandledEvent__ID,
    Reply_ProcessUnhandledEvent__ID,
    Msg_CallInputBlockCallback__ID,
    Msg_HandleTap__ID,
    PAPZInputBridgeEnd
};

mozilla::UniquePtr<IPC::Message>
Msg_ReceiveMultiTouchInputEvent(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_ReceiveMultiTouchInputEvent(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_ReceiveMouseInputEvent(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_ReceiveMouseInputEvent(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_ReceivePanGestureInputEvent(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_ReceivePanGestureInputEvent(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_ReceivePinchGestureInputEvent(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_ReceivePinchGestureInputEvent(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_ReceiveTapGestureInputEvent(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_ReceiveTapGestureInputEvent(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_ReceiveScrollWheelInputEvent(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_ReceiveScrollWheelInputEvent(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_ReceiveKeyboardInputEvent(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_ReceiveKeyboardInputEvent(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_UpdateWheelTransaction(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_ProcessUnhandledEvent(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_ProcessUnhandledEvent(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_CallInputBlockCallback(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_HandleTap(IPC::Message::routeid_t routingId);



} // namespace PAPZInputBridge
} // namespace layers
} // namespace mozilla

#endif // ifndef PAPZInputBridge_h
