Copy as Markdown
Other Tools
//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/layers/PAPZInputBridgeParent.h"
#include "InputData.h"
#include "ipc/nsGUIEventIPC.h"
#include "mozilla/ProfilerLabels.h"
#include "mozilla/layers/APZInputBridge.h"
#include "mozilla/layers/APZInputBridgeParent.h"
#include "mozilla/layers/ScrollableLayerGuid.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"
namespace mozilla {
namespace layers {
auto PAPZInputBridgeParent::ProcessingError(
Result aCode,
const char* aReason) -> void
{
}
auto PAPZInputBridgeParent::ShouldContinueFromReplyTimeout() -> bool
{
return true;
}
MOZ_IMPLICIT PAPZInputBridgeParent::PAPZInputBridgeParent() :
mozilla::ipc::IToplevelProtocol("PAPZInputBridgeParent", kProtocolId, mozilla::ipc::ParentSide)
{
MOZ_COUNT_CTOR(PAPZInputBridgeParent);
}
PAPZInputBridgeParent::~PAPZInputBridgeParent()
{
MOZ_COUNT_DTOR(PAPZInputBridgeParent);
}
auto PAPZInputBridgeParent::ActorAlloc() -> void
{
MOZ_RELEASE_ASSERT(XRE_IsGPUProcess(), "Invalid process for `PAPZInputBridgeParent'");
AddRef();
}
auto PAPZInputBridgeParent::ActorDealloc() -> void
{
Release();
}
auto PAPZInputBridgeParent::ManagedProtocolIds() const -> mozilla::Span<mozilla::ipc::ProtocolId const>
{
return {};
}
auto PAPZInputBridgeParent::GetManagedActors(mozilla::ipc::ProtocolId aProtocol) -> UntypedManagedContainer*
{
switch (aProtocol) {
default:
return nullptr;
}
}
auto PAPZInputBridgeParent::SendCallInputBlockCallback(
const uint64_t& aInputBlockId,
const APZHandledResult& aHandledResult) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZInputBridge::Msg_CallInputBlockCallback(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aInputBlockId);
// Sentinel = 'aInputBlockId'
((&(writer__)))->WriteSentinel(595657994);
IPC::WriteParam((&(writer__)), aHandledResult);
// Sentinel = 'aHandledResult'
((&(writer__)))->WriteSentinel(675153297);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_CallInputBlockCallback", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZInputBridgeParent::SendHandleTap(
const GeckoContentController_TapType& aType,
const LayoutDevicePoint& point,
const Modifiers& aModifiers,
const ScrollableLayerGuid& aGuid,
const uint64_t& aInputBlockId,
const mozilla::Maybe<DoubleTapToZoomMetrics>& aDoubleTapToZoomMetrics) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZInputBridge::Msg_HandleTap(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aType);
// Sentinel = 'aType'
((&(writer__)))->WriteSentinel(99222020);
IPC::WriteParam((&(writer__)), point);
// Sentinel = 'point'
((&(writer__)))->WriteSentinel(108790315);
IPC::WriteParam((&(writer__)), aModifiers);
// Sentinel = 'aModifiers'
((&(writer__)))->WriteSentinel(358286340);
IPC::WriteParam((&(writer__)), aGuid);
// Sentinel = 'aGuid'
((&(writer__)))->WriteSentinel(94044651);
IPC::WriteParam((&(writer__)), aInputBlockId);
// Sentinel = 'aInputBlockId'
((&(writer__)))->WriteSentinel(595657994);
IPC::WriteParam((&(writer__)), aDoubleTapToZoomMetrics);
// Sentinel = 'aDoubleTapToZoomMetrics'
((&(writer__)))->WriteSentinel(1803225377);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_HandleTap", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZInputBridgeParent::DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) -> void
{
FatalError("unreached");
return;
}
auto PAPZInputBridgeParent::OnMessageReceived(const Message& msg__) -> PAPZInputBridgeParent::Result
{
switch (msg__.type()) {
case PAPZInputBridge::Msg_UpdateWheelTransaction__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_UpdateWheelTransaction", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aRefPoint = IPC::ReadParam<LayoutDeviceIntPoint>((&(reader__)));
if (!maybe__aRefPoint) {
FatalError("Error deserializing 'LayoutDeviceIntPoint'");
return MsgValueError;
}
auto& aRefPoint = *maybe__aRefPoint;
// Sentinel = 'aRefPoint'
if ((!(((&(reader__)))->ReadSentinel(285213577)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'");
return MsgValueError;
}
auto maybe__aEventMessage = IPC::ReadParam<EventMessage>((&(reader__)));
if (!maybe__aEventMessage) {
FatalError("Error deserializing 'EventMessage'");
return MsgValueError;
}
auto& aEventMessage = *maybe__aEventMessage;
// Sentinel = 'aEventMessage'
if ((!(((&(reader__)))->ReadSentinel(596772137)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'EventMessage'");
return MsgValueError;
}
auto maybe__aTargetGuid = IPC::ReadParam<mozilla::Maybe<ScrollableLayerGuid>>((&(reader__)));
if (!maybe__aTargetGuid) {
FatalError("Error deserializing 'ScrollableLayerGuid?'");
return MsgValueError;
}
auto& aTargetGuid = *maybe__aTargetGuid;
// Sentinel = 'aTargetGuid'
if ((!(((&(reader__)))->ReadSentinel(429589586)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid?'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<APZInputBridgeParent*>(this))->RecvUpdateWheelTransaction(std::move(aRefPoint), std::move(aEventMessage), std::move(aTargetGuid));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
default:
return MsgNotKnown;
case SHMEM_CREATED_MESSAGE_TYPE:
{
if (!ShmemCreated(msg__)) {
return MsgPayloadError;
}
return MsgProcessed;
}
case SHMEM_DESTROYED_MESSAGE_TYPE:
{
if (!ShmemDestroyed(msg__)) {
return MsgPayloadError;
}
return MsgProcessed;
}
}
}
auto PAPZInputBridgeParent::OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) -> PAPZInputBridgeParent::Result
{
switch (msg__.type()) {
case PAPZInputBridge::Msg_ReceiveMultiTouchInputEvent__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveMultiTouchInputEvent", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aEvent = IPC::ReadParam<MultiTouchInput>((&(reader__)));
if (!maybe__aEvent) {
FatalError("Error deserializing 'MultiTouchInput'");
return MsgValueError;
}
auto& aEvent = *maybe__aEvent;
// Sentinel = 'aEvent'
if ((!(((&(reader__)))->ReadSentinel(133956196)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'MultiTouchInput'");
return MsgValueError;
}
auto maybe__aWantsCallback = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__aWantsCallback) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& aWantsCallback = *maybe__aWantsCallback;
// Sentinel = 'aWantsCallback'
if ((!(((&(reader__)))->ReadSentinel(685704572)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
APZEventResult aOutResult{};
MultiTouchInput aOutEvent{};
mozilla::ipc::IPCResult __ok = (static_cast<APZInputBridgeParent*>(this))->RecvReceiveMultiTouchInputEvent(std::move(aEvent), std::move(aWantsCallback), (&(aOutResult)), (&(aOutEvent)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PAPZInputBridge::Reply_ReceiveMultiTouchInputEvent(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), aOutResult);
// Sentinel = 'aOutResult'
((&(writer__)))->WriteSentinel(365626393);
IPC::WriteParam((&(writer__)), aOutEvent);
// Sentinel = 'aOutEvent'
((&(writer__)))->WriteSentinel(293929884);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PAPZInputBridge::Msg_ReceiveMouseInputEvent__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveMouseInputEvent", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aEvent = IPC::ReadParam<MouseInput>((&(reader__)));
if (!maybe__aEvent) {
FatalError("Error deserializing 'MouseInput'");
return MsgValueError;
}
auto& aEvent = *maybe__aEvent;
// Sentinel = 'aEvent'
if ((!(((&(reader__)))->ReadSentinel(133956196)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'MouseInput'");
return MsgValueError;
}
auto maybe__aWantsCallback = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__aWantsCallback) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& aWantsCallback = *maybe__aWantsCallback;
// Sentinel = 'aWantsCallback'
if ((!(((&(reader__)))->ReadSentinel(685704572)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
APZEventResult aOutResult{};
MouseInput aOutEvent{};
mozilla::ipc::IPCResult __ok = (static_cast<APZInputBridgeParent*>(this))->RecvReceiveMouseInputEvent(std::move(aEvent), std::move(aWantsCallback), (&(aOutResult)), (&(aOutEvent)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PAPZInputBridge::Reply_ReceiveMouseInputEvent(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), aOutResult);
// Sentinel = 'aOutResult'
((&(writer__)))->WriteSentinel(365626393);
IPC::WriteParam((&(writer__)), aOutEvent);
// Sentinel = 'aOutEvent'
((&(writer__)))->WriteSentinel(293929884);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PAPZInputBridge::Msg_ReceivePanGestureInputEvent__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceivePanGestureInputEvent", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aEvent = IPC::ReadParam<PanGestureInput>((&(reader__)));
if (!maybe__aEvent) {
FatalError("Error deserializing 'PanGestureInput'");
return MsgValueError;
}
auto& aEvent = *maybe__aEvent;
// Sentinel = 'aEvent'
if ((!(((&(reader__)))->ReadSentinel(133956196)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'PanGestureInput'");
return MsgValueError;
}
auto maybe__aWantsCallback = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__aWantsCallback) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& aWantsCallback = *maybe__aWantsCallback;
// Sentinel = 'aWantsCallback'
if ((!(((&(reader__)))->ReadSentinel(685704572)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
APZEventResult aOutResult{};
PanGestureInput aOutEvent{};
mozilla::ipc::IPCResult __ok = (static_cast<APZInputBridgeParent*>(this))->RecvReceivePanGestureInputEvent(std::move(aEvent), std::move(aWantsCallback), (&(aOutResult)), (&(aOutEvent)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PAPZInputBridge::Reply_ReceivePanGestureInputEvent(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), aOutResult);
// Sentinel = 'aOutResult'
((&(writer__)))->WriteSentinel(365626393);
IPC::WriteParam((&(writer__)), aOutEvent);
// Sentinel = 'aOutEvent'
((&(writer__)))->WriteSentinel(293929884);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PAPZInputBridge::Msg_ReceivePinchGestureInputEvent__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceivePinchGestureInputEvent", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aEvent = IPC::ReadParam<PinchGestureInput>((&(reader__)));
if (!maybe__aEvent) {
FatalError("Error deserializing 'PinchGestureInput'");
return MsgValueError;
}
auto& aEvent = *maybe__aEvent;
// Sentinel = 'aEvent'
if ((!(((&(reader__)))->ReadSentinel(133956196)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'PinchGestureInput'");
return MsgValueError;
}
auto maybe__aWantsCallback = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__aWantsCallback) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& aWantsCallback = *maybe__aWantsCallback;
// Sentinel = 'aWantsCallback'
if ((!(((&(reader__)))->ReadSentinel(685704572)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
APZEventResult aOutResult{};
PinchGestureInput aOutEvent{};
mozilla::ipc::IPCResult __ok = (static_cast<APZInputBridgeParent*>(this))->RecvReceivePinchGestureInputEvent(std::move(aEvent), std::move(aWantsCallback), (&(aOutResult)), (&(aOutEvent)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PAPZInputBridge::Reply_ReceivePinchGestureInputEvent(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), aOutResult);
// Sentinel = 'aOutResult'
((&(writer__)))->WriteSentinel(365626393);
IPC::WriteParam((&(writer__)), aOutEvent);
// Sentinel = 'aOutEvent'
((&(writer__)))->WriteSentinel(293929884);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PAPZInputBridge::Msg_ReceiveTapGestureInputEvent__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveTapGestureInputEvent", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aEvent = IPC::ReadParam<TapGestureInput>((&(reader__)));
if (!maybe__aEvent) {
FatalError("Error deserializing 'TapGestureInput'");
return MsgValueError;
}
auto& aEvent = *maybe__aEvent;
// Sentinel = 'aEvent'
if ((!(((&(reader__)))->ReadSentinel(133956196)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'TapGestureInput'");
return MsgValueError;
}
auto maybe__aWantsCallback = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__aWantsCallback) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& aWantsCallback = *maybe__aWantsCallback;
// Sentinel = 'aWantsCallback'
if ((!(((&(reader__)))->ReadSentinel(685704572)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
APZEventResult aOutResult{};
TapGestureInput aOutEvent{};
mozilla::ipc::IPCResult __ok = (static_cast<APZInputBridgeParent*>(this))->RecvReceiveTapGestureInputEvent(std::move(aEvent), std::move(aWantsCallback), (&(aOutResult)), (&(aOutEvent)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PAPZInputBridge::Reply_ReceiveTapGestureInputEvent(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), aOutResult);
// Sentinel = 'aOutResult'
((&(writer__)))->WriteSentinel(365626393);
IPC::WriteParam((&(writer__)), aOutEvent);
// Sentinel = 'aOutEvent'
((&(writer__)))->WriteSentinel(293929884);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PAPZInputBridge::Msg_ReceiveScrollWheelInputEvent__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveScrollWheelInputEvent", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aEvent = IPC::ReadParam<ScrollWheelInput>((&(reader__)));
if (!maybe__aEvent) {
FatalError("Error deserializing 'ScrollWheelInput'");
return MsgValueError;
}
auto& aEvent = *maybe__aEvent;
// Sentinel = 'aEvent'
if ((!(((&(reader__)))->ReadSentinel(133956196)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ScrollWheelInput'");
return MsgValueError;
}
auto maybe__aWantsCallback = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__aWantsCallback) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& aWantsCallback = *maybe__aWantsCallback;
// Sentinel = 'aWantsCallback'
if ((!(((&(reader__)))->ReadSentinel(685704572)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
APZEventResult aOutResult{};
ScrollWheelInput aOutEvent{};
mozilla::ipc::IPCResult __ok = (static_cast<APZInputBridgeParent*>(this))->RecvReceiveScrollWheelInputEvent(std::move(aEvent), std::move(aWantsCallback), (&(aOutResult)), (&(aOutEvent)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PAPZInputBridge::Reply_ReceiveScrollWheelInputEvent(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), aOutResult);
// Sentinel = 'aOutResult'
((&(writer__)))->WriteSentinel(365626393);
IPC::WriteParam((&(writer__)), aOutEvent);
// Sentinel = 'aOutEvent'
((&(writer__)))->WriteSentinel(293929884);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PAPZInputBridge::Msg_ReceiveKeyboardInputEvent__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveKeyboardInputEvent", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aEvent = IPC::ReadParam<KeyboardInput>((&(reader__)));
if (!maybe__aEvent) {
FatalError("Error deserializing 'KeyboardInput'");
return MsgValueError;
}
auto& aEvent = *maybe__aEvent;
// Sentinel = 'aEvent'
if ((!(((&(reader__)))->ReadSentinel(133956196)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'KeyboardInput'");
return MsgValueError;
}
auto maybe__aWantsCallback = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__aWantsCallback) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& aWantsCallback = *maybe__aWantsCallback;
// Sentinel = 'aWantsCallback'
if ((!(((&(reader__)))->ReadSentinel(685704572)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
APZEventResult aOutResult{};
KeyboardInput aOutEvent{};
mozilla::ipc::IPCResult __ok = (static_cast<APZInputBridgeParent*>(this))->RecvReceiveKeyboardInputEvent(std::move(aEvent), std::move(aWantsCallback), (&(aOutResult)), (&(aOutEvent)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PAPZInputBridge::Reply_ReceiveKeyboardInputEvent(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), aOutResult);
// Sentinel = 'aOutResult'
((&(writer__)))->WriteSentinel(365626393);
IPC::WriteParam((&(writer__)), aOutEvent);
// Sentinel = 'aOutEvent'
((&(writer__)))->WriteSentinel(293929884);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PAPZInputBridge::Msg_ProcessUnhandledEvent__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ProcessUnhandledEvent", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aRefPoint = IPC::ReadParam<LayoutDeviceIntPoint>((&(reader__)));
if (!maybe__aRefPoint) {
FatalError("Error deserializing 'LayoutDeviceIntPoint'");
return MsgValueError;
}
auto& aRefPoint = *maybe__aRefPoint;
// Sentinel = 'aRefPoint'
if ((!(((&(reader__)))->ReadSentinel(285213577)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
LayoutDeviceIntPoint aOutRefPoint{};
ScrollableLayerGuid aOutTargetGuid{};
uint64_t aOutFocusSequenceNumber{};
LayersId aOutLayersId{};
mozilla::ipc::IPCResult __ok = (static_cast<APZInputBridgeParent*>(this))->RecvProcessUnhandledEvent(std::move(aRefPoint), (&(aOutRefPoint)), (&(aOutTargetGuid)), (&(aOutFocusSequenceNumber)), (&(aOutLayersId)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PAPZInputBridge::Reply_ProcessUnhandledEvent(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), aOutRefPoint);
// Sentinel = 'aOutRefPoint'
((&(writer__)))->WriteSentinel(506528961);
IPC::WriteParam((&(writer__)), aOutTargetGuid);
// Sentinel = 'aOutTargetGuid'
((&(writer__)))->WriteSentinel(691799434);
IPC::WriteParam((&(writer__)), aOutFocusSequenceNumber);
// Sentinel = 'aOutFocusSequenceNumber'
((&(writer__)))->WriteSentinel(1841105212);
IPC::WriteParam((&(writer__)), aOutLayersId);
// Sentinel = 'aOutLayersId'
((&(writer__)))->WriteSentinel(512754871);
if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridge", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZInputBridgeParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
default:
return MsgNotKnown;
}
}
} // namespace layers
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::layers::PAPZInputBridgeParent*>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
MOZ_RELEASE_ASSERT(
aWriter->GetActor(),
"Cannot serialize managed actors without an actor");
int32_t id;
if (!aVar) {
id = 0; // kNullActorId
} else {
id = aVar->Id();
if (id == 1) { // kFreedActorId
aVar->FatalError("Actor has been |delete|d");
}
MOZ_RELEASE_ASSERT(
aWriter->GetActor()->GetIPCChannel() == aVar->GetIPCChannel(),
"Actor must be from the same channel as the"
" actor it's being sent over");
MOZ_RELEASE_ASSERT(
aVar->CanSend(),
"Actor must still be open when sending");
}
IPC::WriteParam(aWriter, id);
}
auto ParamTraits<::mozilla::layers::PAPZInputBridgeParent*>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
MOZ_RELEASE_ASSERT(
aReader->GetActor(),
"Cannot deserialize managed actors without an actor");
mozilla::Maybe<mozilla::ipc::IProtocol*> actor = aReader->GetActor()
->ReadActor(aReader, true, "PAPZInputBridge", PAPZInputBridgeMsgStart);
if (actor.isSome()) {
return static_cast<::mozilla::layers::PAPZInputBridgeParent*>(actor.ref());
}
return {};
}
} // namespace IPC