Generated file

Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/layers/PAPZBridgeChild.h"
#include "InputData.h"
#include "ipc/nsGUIEventIPC.h"
#include "mozilla/ProfilerLabels.h"
#include "mozilla/ProfilerMarkers.h"
#include "mozilla/layers/APZBridge.h"
#include "mozilla/layers/APZBridgeChild.h"
#include "mozilla/layers/KeyboardMap.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 PAPZBridgeChild::ProcessingError(
Result aCode,
const char* aReason) -> void
{
}
auto PAPZBridgeChild::ShouldContinueFromReplyTimeout() -> bool
{
return true;
}
MOZ_IMPLICIT PAPZBridgeChild::PAPZBridgeChild() :
mozilla::ipc::IToplevelProtocol("PAPZBridgeChild", kProtocolId, mozilla::ipc::ChildSide)
{
MOZ_COUNT_CTOR(PAPZBridgeChild);
}
PAPZBridgeChild::~PAPZBridgeChild()
{
MOZ_COUNT_DTOR(PAPZBridgeChild);
}
auto PAPZBridgeChild::ActorAlloc() -> void
{
MOZ_RELEASE_ASSERT(XRE_IsParentProcess(), "Invalid process for `PAPZBridgeChild'");
AddRef();
}
auto PAPZBridgeChild::ActorDealloc() -> void
{
Release();
}
auto PAPZBridgeChild::ManagedProtocolIds() const -> mozilla::Span<mozilla::ipc::ProtocolId const>
{
return {};
}
auto PAPZBridgeChild::GetManagedActors(mozilla::ipc::ProtocolId aProtocol) -> UntypedManagedContainer*
{
switch (aProtocol) {
default:
return nullptr;
}
}
auto PAPZBridgeChild::SendReceiveMultiTouchInputEvent(
const MultiTouchInput& aEvent,
const bool& aWantsCallback,
APZEventResult* aOutResult,
MultiTouchInput* aOutEvent) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_ReceiveMultiTouchInputEvent(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aEvent);
// Sentinel = 'aEvent'
((&(writer__)))->WriteSentinel(133956196);
IPC::WriteParam((&(writer__)), aWantsCallback);
// Sentinel = 'aWantsCallback'
((&(writer__)))->WriteSentinel(685704572);
UniquePtr<Message> reply__;
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_ReceiveMultiTouchInputEvent", OTHER);
bool sendok__ = false;
{
AUTO_PROFILER_MARKER("PAPZBridge::Msg_ReceiveMultiTouchInputEvent", IPC);
sendok__ = ChannelSend(std::move(msg__), (&(reply__)));
}
if ((!(sendok__))) {
return false;
}
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
IPC::MessageReader reader__{
(*(reply__)),
this};
auto maybe__aOutResult__reply = IPC::ReadParam<APZEventResult>((&(reader__)));
if (!maybe__aOutResult__reply) {
FatalError("Error deserializing 'APZEventResult'");
return false;
}
auto& aOutResult__reply = *maybe__aOutResult__reply;
// Sentinel = 'aOutResult'
if ((!(((&(reader__)))->ReadSentinel(365626393)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'APZEventResult'");
return false;
}
auto maybe__aOutEvent__reply = IPC::ReadParam<MultiTouchInput>((&(reader__)));
if (!maybe__aOutEvent__reply) {
FatalError("Error deserializing 'MultiTouchInput'");
return false;
}
auto& aOutEvent__reply = *maybe__aOutEvent__reply;
// Sentinel = 'aOutEvent'
if ((!(((&(reader__)))->ReadSentinel(293929884)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'MultiTouchInput'");
return false;
}
(*(aOutResult)) = std::move(aOutResult__reply);
(*(aOutEvent)) = std::move(aOutEvent__reply);
reader__.EndRead();
return true;
}
auto PAPZBridgeChild::SendReceiveMouseInputEvent(
const MouseInput& aEvent,
const bool& aWantsCallback,
APZEventResult* aOutResult,
MouseInput* aOutEvent) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_ReceiveMouseInputEvent(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aEvent);
// Sentinel = 'aEvent'
((&(writer__)))->WriteSentinel(133956196);
IPC::WriteParam((&(writer__)), aWantsCallback);
// Sentinel = 'aWantsCallback'
((&(writer__)))->WriteSentinel(685704572);
UniquePtr<Message> reply__;
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_ReceiveMouseInputEvent", OTHER);
bool sendok__ = false;
{
AUTO_PROFILER_MARKER("PAPZBridge::Msg_ReceiveMouseInputEvent", IPC);
sendok__ = ChannelSend(std::move(msg__), (&(reply__)));
}
if ((!(sendok__))) {
return false;
}
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
IPC::MessageReader reader__{
(*(reply__)),
this};
auto maybe__aOutResult__reply = IPC::ReadParam<APZEventResult>((&(reader__)));
if (!maybe__aOutResult__reply) {
FatalError("Error deserializing 'APZEventResult'");
return false;
}
auto& aOutResult__reply = *maybe__aOutResult__reply;
// Sentinel = 'aOutResult'
if ((!(((&(reader__)))->ReadSentinel(365626393)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'APZEventResult'");
return false;
}
auto maybe__aOutEvent__reply = IPC::ReadParam<MouseInput>((&(reader__)));
if (!maybe__aOutEvent__reply) {
FatalError("Error deserializing 'MouseInput'");
return false;
}
auto& aOutEvent__reply = *maybe__aOutEvent__reply;
// Sentinel = 'aOutEvent'
if ((!(((&(reader__)))->ReadSentinel(293929884)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'MouseInput'");
return false;
}
(*(aOutResult)) = std::move(aOutResult__reply);
(*(aOutEvent)) = std::move(aOutEvent__reply);
reader__.EndRead();
return true;
}
auto PAPZBridgeChild::SendReceivePanGestureInputEvent(
const PanGestureInput& aEvent,
const bool& aWantsCallback,
APZEventResult* aOutResult,
PanGestureInput* aOutEvent) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_ReceivePanGestureInputEvent(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aEvent);
// Sentinel = 'aEvent'
((&(writer__)))->WriteSentinel(133956196);
IPC::WriteParam((&(writer__)), aWantsCallback);
// Sentinel = 'aWantsCallback'
((&(writer__)))->WriteSentinel(685704572);
UniquePtr<Message> reply__;
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_ReceivePanGestureInputEvent", OTHER);
bool sendok__ = false;
{
AUTO_PROFILER_MARKER("PAPZBridge::Msg_ReceivePanGestureInputEvent", IPC);
sendok__ = ChannelSend(std::move(msg__), (&(reply__)));
}
if ((!(sendok__))) {
return false;
}
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
IPC::MessageReader reader__{
(*(reply__)),
this};
auto maybe__aOutResult__reply = IPC::ReadParam<APZEventResult>((&(reader__)));
if (!maybe__aOutResult__reply) {
FatalError("Error deserializing 'APZEventResult'");
return false;
}
auto& aOutResult__reply = *maybe__aOutResult__reply;
// Sentinel = 'aOutResult'
if ((!(((&(reader__)))->ReadSentinel(365626393)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'APZEventResult'");
return false;
}
auto maybe__aOutEvent__reply = IPC::ReadParam<PanGestureInput>((&(reader__)));
if (!maybe__aOutEvent__reply) {
FatalError("Error deserializing 'PanGestureInput'");
return false;
}
auto& aOutEvent__reply = *maybe__aOutEvent__reply;
// Sentinel = 'aOutEvent'
if ((!(((&(reader__)))->ReadSentinel(293929884)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'PanGestureInput'");
return false;
}
(*(aOutResult)) = std::move(aOutResult__reply);
(*(aOutEvent)) = std::move(aOutEvent__reply);
reader__.EndRead();
return true;
}
auto PAPZBridgeChild::SendReceivePinchGestureInputEvent(
const PinchGestureInput& aEvent,
const bool& aWantsCallback,
APZEventResult* aOutResult,
PinchGestureInput* aOutEvent) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_ReceivePinchGestureInputEvent(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aEvent);
// Sentinel = 'aEvent'
((&(writer__)))->WriteSentinel(133956196);
IPC::WriteParam((&(writer__)), aWantsCallback);
// Sentinel = 'aWantsCallback'
((&(writer__)))->WriteSentinel(685704572);
UniquePtr<Message> reply__;
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_ReceivePinchGestureInputEvent", OTHER);
bool sendok__ = false;
{
AUTO_PROFILER_MARKER("PAPZBridge::Msg_ReceivePinchGestureInputEvent", IPC);
sendok__ = ChannelSend(std::move(msg__), (&(reply__)));
}
if ((!(sendok__))) {
return false;
}
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
IPC::MessageReader reader__{
(*(reply__)),
this};
auto maybe__aOutResult__reply = IPC::ReadParam<APZEventResult>((&(reader__)));
if (!maybe__aOutResult__reply) {
FatalError("Error deserializing 'APZEventResult'");
return false;
}
auto& aOutResult__reply = *maybe__aOutResult__reply;
// Sentinel = 'aOutResult'
if ((!(((&(reader__)))->ReadSentinel(365626393)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'APZEventResult'");
return false;
}
auto maybe__aOutEvent__reply = IPC::ReadParam<PinchGestureInput>((&(reader__)));
if (!maybe__aOutEvent__reply) {
FatalError("Error deserializing 'PinchGestureInput'");
return false;
}
auto& aOutEvent__reply = *maybe__aOutEvent__reply;
// Sentinel = 'aOutEvent'
if ((!(((&(reader__)))->ReadSentinel(293929884)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'PinchGestureInput'");
return false;
}
(*(aOutResult)) = std::move(aOutResult__reply);
(*(aOutEvent)) = std::move(aOutEvent__reply);
reader__.EndRead();
return true;
}
auto PAPZBridgeChild::SendReceiveTapGestureInputEvent(
const TapGestureInput& aEvent,
const bool& aWantsCallback,
APZEventResult* aOutResult,
TapGestureInput* aOutEvent) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_ReceiveTapGestureInputEvent(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aEvent);
// Sentinel = 'aEvent'
((&(writer__)))->WriteSentinel(133956196);
IPC::WriteParam((&(writer__)), aWantsCallback);
// Sentinel = 'aWantsCallback'
((&(writer__)))->WriteSentinel(685704572);
UniquePtr<Message> reply__;
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_ReceiveTapGestureInputEvent", OTHER);
bool sendok__ = false;
{
AUTO_PROFILER_MARKER("PAPZBridge::Msg_ReceiveTapGestureInputEvent", IPC);
sendok__ = ChannelSend(std::move(msg__), (&(reply__)));
}
if ((!(sendok__))) {
return false;
}
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
IPC::MessageReader reader__{
(*(reply__)),
this};
auto maybe__aOutResult__reply = IPC::ReadParam<APZEventResult>((&(reader__)));
if (!maybe__aOutResult__reply) {
FatalError("Error deserializing 'APZEventResult'");
return false;
}
auto& aOutResult__reply = *maybe__aOutResult__reply;
// Sentinel = 'aOutResult'
if ((!(((&(reader__)))->ReadSentinel(365626393)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'APZEventResult'");
return false;
}
auto maybe__aOutEvent__reply = IPC::ReadParam<TapGestureInput>((&(reader__)));
if (!maybe__aOutEvent__reply) {
FatalError("Error deserializing 'TapGestureInput'");
return false;
}
auto& aOutEvent__reply = *maybe__aOutEvent__reply;
// Sentinel = 'aOutEvent'
if ((!(((&(reader__)))->ReadSentinel(293929884)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'TapGestureInput'");
return false;
}
(*(aOutResult)) = std::move(aOutResult__reply);
(*(aOutEvent)) = std::move(aOutEvent__reply);
reader__.EndRead();
return true;
}
auto PAPZBridgeChild::SendReceiveScrollWheelInputEvent(
const ScrollWheelInput& aEvent,
const bool& aWantsCallback,
APZEventResult* aOutResult,
ScrollWheelInput* aOutEvent) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_ReceiveScrollWheelInputEvent(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aEvent);
// Sentinel = 'aEvent'
((&(writer__)))->WriteSentinel(133956196);
IPC::WriteParam((&(writer__)), aWantsCallback);
// Sentinel = 'aWantsCallback'
((&(writer__)))->WriteSentinel(685704572);
UniquePtr<Message> reply__;
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_ReceiveScrollWheelInputEvent", OTHER);
bool sendok__ = false;
{
AUTO_PROFILER_MARKER("PAPZBridge::Msg_ReceiveScrollWheelInputEvent", IPC);
sendok__ = ChannelSend(std::move(msg__), (&(reply__)));
}
if ((!(sendok__))) {
return false;
}
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
IPC::MessageReader reader__{
(*(reply__)),
this};
auto maybe__aOutResult__reply = IPC::ReadParam<APZEventResult>((&(reader__)));
if (!maybe__aOutResult__reply) {
FatalError("Error deserializing 'APZEventResult'");
return false;
}
auto& aOutResult__reply = *maybe__aOutResult__reply;
// Sentinel = 'aOutResult'
if ((!(((&(reader__)))->ReadSentinel(365626393)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'APZEventResult'");
return false;
}
auto maybe__aOutEvent__reply = IPC::ReadParam<ScrollWheelInput>((&(reader__)));
if (!maybe__aOutEvent__reply) {
FatalError("Error deserializing 'ScrollWheelInput'");
return false;
}
auto& aOutEvent__reply = *maybe__aOutEvent__reply;
// Sentinel = 'aOutEvent'
if ((!(((&(reader__)))->ReadSentinel(293929884)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ScrollWheelInput'");
return false;
}
(*(aOutResult)) = std::move(aOutResult__reply);
(*(aOutEvent)) = std::move(aOutEvent__reply);
reader__.EndRead();
return true;
}
auto PAPZBridgeChild::SendReceiveKeyboardInputEvent(
const KeyboardInput& aEvent,
const bool& aWantsCallback,
APZEventResult* aOutResult,
KeyboardInput* aOutEvent) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_ReceiveKeyboardInputEvent(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aEvent);
// Sentinel = 'aEvent'
((&(writer__)))->WriteSentinel(133956196);
IPC::WriteParam((&(writer__)), aWantsCallback);
// Sentinel = 'aWantsCallback'
((&(writer__)))->WriteSentinel(685704572);
UniquePtr<Message> reply__;
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_ReceiveKeyboardInputEvent", OTHER);
bool sendok__ = false;
{
AUTO_PROFILER_MARKER("PAPZBridge::Msg_ReceiveKeyboardInputEvent", IPC);
sendok__ = ChannelSend(std::move(msg__), (&(reply__)));
}
if ((!(sendok__))) {
return false;
}
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
IPC::MessageReader reader__{
(*(reply__)),
this};
auto maybe__aOutResult__reply = IPC::ReadParam<APZEventResult>((&(reader__)));
if (!maybe__aOutResult__reply) {
FatalError("Error deserializing 'APZEventResult'");
return false;
}
auto& aOutResult__reply = *maybe__aOutResult__reply;
// Sentinel = 'aOutResult'
if ((!(((&(reader__)))->ReadSentinel(365626393)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'APZEventResult'");
return false;
}
auto maybe__aOutEvent__reply = IPC::ReadParam<KeyboardInput>((&(reader__)));
if (!maybe__aOutEvent__reply) {
FatalError("Error deserializing 'KeyboardInput'");
return false;
}
auto& aOutEvent__reply = *maybe__aOutEvent__reply;
// Sentinel = 'aOutEvent'
if ((!(((&(reader__)))->ReadSentinel(293929884)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'KeyboardInput'");
return false;
}
(*(aOutResult)) = std::move(aOutResult__reply);
(*(aOutEvent)) = std::move(aOutEvent__reply);
reader__.EndRead();
return true;
}
auto PAPZBridgeChild::SendUpdateWheelTransaction(
const LayoutDeviceIntPoint& aRefPoint,
const EventMessage& aEventMessage,
const mozilla::Maybe<ScrollableLayerGuid>& aTargetGuid) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_UpdateWheelTransaction(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aRefPoint);
// Sentinel = 'aRefPoint'
((&(writer__)))->WriteSentinel(285213577);
IPC::WriteParam((&(writer__)), aEventMessage);
// Sentinel = 'aEventMessage'
((&(writer__)))->WriteSentinel(596772137);
IPC::WriteParam((&(writer__)), aTargetGuid);
// Sentinel = 'aTargetGuid'
((&(writer__)))->WriteSentinel(429589586);
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_UpdateWheelTransaction", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZBridgeChild::SendProcessUnhandledEvent(
const LayoutDeviceIntPoint& aRefPoint,
LayoutDeviceIntPoint* aOutRefPoint,
ScrollableLayerGuid* aOutTargetGuid,
uint64_t* aOutFocusSequenceNumber,
LayersId* aOutLayersId) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_ProcessUnhandledEvent(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aRefPoint);
// Sentinel = 'aRefPoint'
((&(writer__)))->WriteSentinel(285213577);
UniquePtr<Message> reply__;
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_ProcessUnhandledEvent", OTHER);
bool sendok__ = false;
{
AUTO_PROFILER_MARKER("PAPZBridge::Msg_ProcessUnhandledEvent", IPC);
sendok__ = ChannelSend(std::move(msg__), (&(reply__)));
}
if ((!(sendok__))) {
return false;
}
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
IPC::MessageReader reader__{
(*(reply__)),
this};
auto maybe__aOutRefPoint__reply = IPC::ReadParam<LayoutDeviceIntPoint>((&(reader__)));
if (!maybe__aOutRefPoint__reply) {
FatalError("Error deserializing 'LayoutDeviceIntPoint'");
return false;
}
auto& aOutRefPoint__reply = *maybe__aOutRefPoint__reply;
// Sentinel = 'aOutRefPoint'
if ((!(((&(reader__)))->ReadSentinel(506528961)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'");
return false;
}
auto maybe__aOutTargetGuid__reply = IPC::ReadParam<ScrollableLayerGuid>((&(reader__)));
if (!maybe__aOutTargetGuid__reply) {
FatalError("Error deserializing 'ScrollableLayerGuid'");
return false;
}
auto& aOutTargetGuid__reply = *maybe__aOutTargetGuid__reply;
// Sentinel = 'aOutTargetGuid'
if ((!(((&(reader__)))->ReadSentinel(691799434)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
return false;
}
auto maybe__aOutFocusSequenceNumber__reply = IPC::ReadParam<uint64_t>((&(reader__)));
if (!maybe__aOutFocusSequenceNumber__reply) {
FatalError("Error deserializing 'uint64_t'");
return false;
}
auto& aOutFocusSequenceNumber__reply = *maybe__aOutFocusSequenceNumber__reply;
// Sentinel = 'aOutFocusSequenceNumber'
if ((!(((&(reader__)))->ReadSentinel(1841105212)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
return false;
}
auto maybe__aOutLayersId__reply = IPC::ReadParam<LayersId>((&(reader__)));
if (!maybe__aOutLayersId__reply) {
FatalError("Error deserializing 'LayersId'");
return false;
}
auto& aOutLayersId__reply = *maybe__aOutLayersId__reply;
// Sentinel = 'aOutLayersId'
if ((!(((&(reader__)))->ReadSentinel(512754871)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'LayersId'");
return false;
}
(*(aOutRefPoint)) = std::move(aOutRefPoint__reply);
(*(aOutTargetGuid)) = std::move(aOutTargetGuid__reply);
(*(aOutFocusSequenceNumber)) = std::move(aOutFocusSequenceNumber__reply);
(*(aOutLayersId)) = std::move(aOutLayersId__reply);
reader__.EndRead();
return true;
}
auto PAPZBridgeChild::SendSetKeyboardMap(const KeyboardMap& aKeyboardMap) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_SetKeyboardMap(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aKeyboardMap);
// Sentinel = 'aKeyboardMap'
((&(writer__)))->WriteSentinel(507905201);
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_SetKeyboardMap", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZBridgeChild::SendSetDPI(const float& aDpiValue) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_SetDPI(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aDpiValue);
// Sentinel = 'aDpiValue'
((&(writer__)))->WriteSentinel(282919804);
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_SetDPI", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZBridgeChild::SendSetBrowserGestureResponse(
const uint64_t& aInputBlockId,
const BrowserGestureResponse& aResponse) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_SetBrowserGestureResponse(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aInputBlockId);
// Sentinel = 'aInputBlockId'
((&(writer__)))->WriteSentinel(595657994);
IPC::WriteParam((&(writer__)), aResponse);
// Sentinel = 'aResponse'
((&(writer__)))->WriteSentinel(301466545);
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_SetBrowserGestureResponse", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZBridgeChild::SendStartAutoscroll(
const ScrollableLayerGuid& aGuid,
const ScreenPoint& aAnchorLocation) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_StartAutoscroll(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aGuid);
// Sentinel = 'aGuid'
((&(writer__)))->WriteSentinel(94044651);
IPC::WriteParam((&(writer__)), aAnchorLocation);
// Sentinel = 'aAnchorLocation'
((&(writer__)))->WriteSentinel(776799734);
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_StartAutoscroll", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZBridgeChild::SendStopAutoscroll(const ScrollableLayerGuid& aGuid) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_StopAutoscroll(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aGuid);
// Sentinel = 'aGuid'
((&(writer__)))->WriteSentinel(94044651);
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_StopAutoscroll", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZBridgeChild::SendSetLongTapEnabled(const bool& aTapGestureEnabled) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZBridge::Msg_SetLongTapEnabled(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aTapGestureEnabled);
// Sentinel = 'aTapGestureEnabled'
((&(writer__)))->WriteSentinel(1116538641);
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_SetLongTapEnabled", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZBridgeChild::DeallocManagee(
mozilla::ipc::ProtocolId aProtocolId,
IProtocol* aListener) -> void
{
FatalError("unreached");
return;
}
auto PAPZBridgeChild::OnMessageReceived(const Message& msg__) -> PAPZBridgeChild::Result
{
if (!CanSend()) {
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Ignored message for dead actor",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
switch (msg__.type()) {
case PAPZBridge::Msg_CallInputBlockCallback__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_CallInputBlockCallback", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aInputBlockId = IPC::ReadParam<uint64_t>((&(reader__)));
if (!maybe__aInputBlockId) {
FatalError("Error deserializing 'uint64_t'");
return MsgValueError;
}
auto& aInputBlockId = *maybe__aInputBlockId;
// Sentinel = 'aInputBlockId'
if ((!(((&(reader__)))->ReadSentinel(595657994)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
return MsgValueError;
}
auto maybe__aHandledResult = IPC::ReadParam<APZHandledResult>((&(reader__)));
if (!maybe__aHandledResult) {
FatalError("Error deserializing 'APZHandledResult'");
return MsgValueError;
}
auto& aHandledResult = *maybe__aHandledResult;
// Sentinel = 'aHandledResult'
if ((!(((&(reader__)))->ReadSentinel(675153297)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'APZHandledResult'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::layers::APZBridgeChild*>(this))->RecvCallInputBlockCallback(std::move(aInputBlockId), std::move(aHandledResult));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PAPZBridge::Msg_HandleTap__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_HandleTap", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aType = IPC::ReadParam<GeckoContentController_TapType>((&(reader__)));
if (!maybe__aType) {
FatalError("Error deserializing 'GeckoContentController_TapType'");
return MsgValueError;
}
auto& aType = *maybe__aType;
// Sentinel = 'aType'
if ((!(((&(reader__)))->ReadSentinel(99222020)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'GeckoContentController_TapType'");
return MsgValueError;
}
auto maybe__point = IPC::ReadParam<LayoutDevicePoint>((&(reader__)));
if (!maybe__point) {
FatalError("Error deserializing 'LayoutDevicePoint'");
return MsgValueError;
}
auto& point = *maybe__point;
// Sentinel = 'point'
if ((!(((&(reader__)))->ReadSentinel(108790315)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDevicePoint'");
return MsgValueError;
}
auto maybe__aModifiers = IPC::ReadParam<Modifiers>((&(reader__)));
if (!maybe__aModifiers) {
FatalError("Error deserializing 'Modifiers'");
return MsgValueError;
}
auto& aModifiers = *maybe__aModifiers;
// Sentinel = 'aModifiers'
if ((!(((&(reader__)))->ReadSentinel(358286340)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Modifiers'");
return MsgValueError;
}
auto maybe__aGuid = IPC::ReadParam<ScrollableLayerGuid>((&(reader__)));
if (!maybe__aGuid) {
FatalError("Error deserializing 'ScrollableLayerGuid'");
return MsgValueError;
}
auto& aGuid = *maybe__aGuid;
// Sentinel = 'aGuid'
if ((!(((&(reader__)))->ReadSentinel(94044651)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
return MsgValueError;
}
auto maybe__aInputBlockId = IPC::ReadParam<uint64_t>((&(reader__)));
if (!maybe__aInputBlockId) {
FatalError("Error deserializing 'uint64_t'");
return MsgValueError;
}
auto& aInputBlockId = *maybe__aInputBlockId;
// Sentinel = 'aInputBlockId'
if ((!(((&(reader__)))->ReadSentinel(595657994)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
return MsgValueError;
}
auto maybe__aDoubleTapToZoomMetrics = IPC::ReadParam<mozilla::Maybe<DoubleTapToZoomMetrics>>((&(reader__)));
if (!maybe__aDoubleTapToZoomMetrics) {
FatalError("Error deserializing 'DoubleTapToZoomMetrics?'");
return MsgValueError;
}
auto& aDoubleTapToZoomMetrics = *maybe__aDoubleTapToZoomMetrics;
// Sentinel = 'aDoubleTapToZoomMetrics'
if ((!(((&(reader__)))->ReadSentinel(1803225377)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'DoubleTapToZoomMetrics?'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::layers::APZBridgeChild*>(this))->RecvHandleTap(std::move(aType), std::move(point), std::move(aModifiers), std::move(aGuid), std::move(aInputBlockId), std::move(aDoubleTapToZoomMetrics));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PAPZBridge::Msg_NotifyPinchGesture__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_NotifyPinchGesture", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aType = IPC::ReadParam<PinchGestureType>((&(reader__)));
if (!maybe__aType) {
FatalError("Error deserializing 'PinchGestureType'");
return MsgValueError;
}
auto& aType = *maybe__aType;
// Sentinel = 'aType'
if ((!(((&(reader__)))->ReadSentinel(99222020)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'PinchGestureType'");
return MsgValueError;
}
auto maybe__aGuid = IPC::ReadParam<ScrollableLayerGuid>((&(reader__)));
if (!maybe__aGuid) {
FatalError("Error deserializing 'ScrollableLayerGuid'");
return MsgValueError;
}
auto& aGuid = *maybe__aGuid;
// Sentinel = 'aGuid'
if ((!(((&(reader__)))->ReadSentinel(94044651)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
return MsgValueError;
}
auto maybe__aFocusPoint = IPC::ReadParam<LayoutDevicePoint>((&(reader__)));
if (!maybe__aFocusPoint) {
FatalError("Error deserializing 'LayoutDevicePoint'");
return MsgValueError;
}
auto& aFocusPoint = *maybe__aFocusPoint;
// Sentinel = 'aFocusPoint'
if ((!(((&(reader__)))->ReadSentinel(430769260)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDevicePoint'");
return MsgValueError;
}
auto maybe__aSpanChange = IPC::ReadParam<LayoutDeviceCoord>((&(reader__)));
if (!maybe__aSpanChange) {
FatalError("Error deserializing 'LayoutDeviceCoord'");
return MsgValueError;
}
auto& aSpanChange = *maybe__aSpanChange;
// Sentinel = 'aSpanChange'
if ((!(((&(reader__)))->ReadSentinel(420021306)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceCoord'");
return MsgValueError;
}
auto maybe__aModifiers = IPC::ReadParam<Modifiers>((&(reader__)));
if (!maybe__aModifiers) {
FatalError("Error deserializing 'Modifiers'");
return MsgValueError;
}
auto& aModifiers = *maybe__aModifiers;
// Sentinel = 'aModifiers'
if ((!(((&(reader__)))->ReadSentinel(358286340)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Modifiers'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::layers::APZBridgeChild*>(this))->RecvNotifyPinchGesture(std::move(aType), std::move(aGuid), std::move(aFocusPoint), std::move(aSpanChange), std::move(aModifiers));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PAPZBridge::Msg_CancelAutoscroll__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_CancelAutoscroll", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aScrollId = IPC::ReadParam<ViewID>((&(reader__)));
if (!maybe__aScrollId) {
FatalError("Error deserializing 'ViewID'");
return MsgValueError;
}
auto& aScrollId = *maybe__aScrollId;
// Sentinel = 'aScrollId'
if ((!(((&(reader__)))->ReadSentinel(293602174)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ViewID'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::layers::APZBridgeChild*>(this))->RecvCancelAutoscroll(std::move(aScrollId));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PAPZBridge::Msg_NotifyScaleGestureComplete__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_NotifyScaleGestureComplete", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aScrollId = IPC::ReadParam<ViewID>((&(reader__)));
if (!maybe__aScrollId) {
FatalError("Error deserializing 'ViewID'");
return MsgValueError;
}
auto& aScrollId = *maybe__aScrollId;
// Sentinel = 'aScrollId'
if ((!(((&(reader__)))->ReadSentinel(293602174)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ViewID'");
return MsgValueError;
}
auto maybe__aScale = IPC::ReadParam<float>((&(reader__)));
if (!maybe__aScale) {
FatalError("Error deserializing 'float'");
return MsgValueError;
}
auto& aScale = *maybe__aScale;
// Sentinel = 'aScale'
if ((!(((&(reader__)))->ReadSentinel(131531338)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'float'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::layers::APZBridgeChild*>(this))->RecvNotifyScaleGestureComplete(std::move(aScrollId), std::move(aScale));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PAPZBridge::Msg_LayerTransforms__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_LayerTransforms", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aTransforms = IPC::ReadParam<nsTArray<MatrixMessage>>((&(reader__)));
if (!maybe__aTransforms) {
FatalError("Error deserializing 'MatrixMessage[]'");
return MsgValueError;
}
auto& aTransforms = *maybe__aTransforms;
// Sentinel = 'aTransforms'
if ((!(((&(reader__)))->ReadSentinel(446235793)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'MatrixMessage[]'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::layers::APZBridgeChild*>(this))->RecvLayerTransforms(std::move(aTransforms));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PAPZBridge::Msg_UpdateOverscrollVelocity__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_UpdateOverscrollVelocity", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aGuid = IPC::ReadParam<ScrollableLayerGuid>((&(reader__)));
if (!maybe__aGuid) {
FatalError("Error deserializing 'ScrollableLayerGuid'");
return MsgValueError;
}
auto& aGuid = *maybe__aGuid;
// Sentinel = 'aGuid'
if ((!(((&(reader__)))->ReadSentinel(94044651)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
return MsgValueError;
}
auto maybe__aX = IPC::ReadParam<float>((&(reader__)));
if (!maybe__aX) {
FatalError("Error deserializing 'float'");
return MsgValueError;
}
auto& aX = *maybe__aX;
// Sentinel = 'aX'
if ((!(((&(reader__)))->ReadSentinel(18612410)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'float'");
return MsgValueError;
}
auto maybe__aY = IPC::ReadParam<float>((&(reader__)));
if (!maybe__aY) {
FatalError("Error deserializing 'float'");
return MsgValueError;
}
auto& aY = *maybe__aY;
// Sentinel = 'aY'
if ((!(((&(reader__)))->ReadSentinel(18677947)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'float'");
return MsgValueError;
}
auto maybe__aIsRootContent = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__aIsRootContent) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& aIsRootContent = *maybe__aIsRootContent;
// Sentinel = 'aIsRootContent'
if ((!(((&(reader__)))->ReadSentinel(683410845)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::layers::APZBridgeChild*>(this))->RecvUpdateOverscrollVelocity(std::move(aGuid), std::move(aX), std::move(aY), std::move(aIsRootContent));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PAPZBridge::Msg_UpdateOverscrollOffset__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_UpdateOverscrollOffset", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__aGuid = IPC::ReadParam<ScrollableLayerGuid>((&(reader__)));
if (!maybe__aGuid) {
FatalError("Error deserializing 'ScrollableLayerGuid'");
return MsgValueError;
}
auto& aGuid = *maybe__aGuid;
// Sentinel = 'aGuid'
if ((!(((&(reader__)))->ReadSentinel(94044651)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
return MsgValueError;
}
auto maybe__aX = IPC::ReadParam<float>((&(reader__)));
if (!maybe__aX) {
FatalError("Error deserializing 'float'");
return MsgValueError;
}
auto& aX = *maybe__aX;
// Sentinel = 'aX'
if ((!(((&(reader__)))->ReadSentinel(18612410)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'float'");
return MsgValueError;
}
auto maybe__aY = IPC::ReadParam<float>((&(reader__)));
if (!maybe__aY) {
FatalError("Error deserializing 'float'");
return MsgValueError;
}
auto& aY = *maybe__aY;
// Sentinel = 'aY'
if ((!(((&(reader__)))->ReadSentinel(18677947)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'float'");
return MsgValueError;
}
auto maybe__aIsRootContent = IPC::ReadParam<bool>((&(reader__)));
if (!maybe__aIsRootContent) {
FatalError("Error deserializing 'bool'");
return MsgValueError;
}
auto& aIsRootContent = *maybe__aIsRootContent;
// Sentinel = 'aIsRootContent'
if ((!(((&(reader__)))->ReadSentinel(683410845)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
return MsgValueError;
}
reader__.EndRead();
mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::layers::APZBridgeChild*>(this))->RecvUpdateOverscrollOffset(std::move(aGuid), std::move(aX), std::move(aY), std::move(aIsRootContent));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
return MsgProcessed;
}
case PAPZBridge::Msg_HideDynamicToolbar__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZBridge", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZBridgeChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZBridge::Msg_HideDynamicToolbar", OTHER);
mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::layers::APZBridgeChild*>(this))->RecvHideDynamicToolbar();
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 PAPZBridgeChild::OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) -> PAPZBridgeChild::Result
{
if (!CanSend()) {
return MsgDropped;
}
return MsgNotKnown;
}
} // namespace layers
} // namespace mozilla