Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/layers/PAPZCTreeManagerChild.h"
#include "ipc/nsGUIEventIPC.h"
#include "mozilla/GfxMessageUtils.h"
#include "mozilla/ProfilerLabels.h"
#include "mozilla/layers/APZCTreeManagerChild.h"
#include "mozilla/layers/KeyboardMap.h"
#include "mozilla/layers/LayersMessageUtils.h"
#include "mozilla/layers/PCompositorBridgeChild.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 {
MOZ_IMPLICIT PAPZCTreeManagerChild::PAPZCTreeManagerChild() :
mozilla::ipc::IProtocol(PAPZCTreeManagerMsgStart, mozilla::ipc::ChildSide)
{
MOZ_COUNT_CTOR(PAPZCTreeManagerChild);
}
PAPZCTreeManagerChild::~PAPZCTreeManagerChild()
{
MOZ_COUNT_DTOR(PAPZCTreeManagerChild);
}
auto PAPZCTreeManagerChild::ActorAlloc() -> void
{
}
auto PAPZCTreeManagerChild::ActorDealloc() -> void
{
if (Manager()) {
Manager()->DeallocManagee(PAPZCTreeManagerMsgStart, this);
}
}
auto PAPZCTreeManagerChild::OtherPid() const -> ::base::ProcessId
{
::base::ProcessId pid =
::mozilla::ipc::IProtocol::ToplevelProtocol()->OtherPidMaybeInvalid();
MOZ_RELEASE_ASSERT(pid != ::base::kInvalidProcessId);
return pid;
}
auto PAPZCTreeManagerChild::Manager() const -> PCompositorBridgeChild*
{
return static_cast<PCompositorBridgeChild*>(IProtocol::Manager());
}
auto PAPZCTreeManagerChild::AllManagedActors(nsTArray<RefPtr<mozilla::ipc::ActorLifecycleProxy>>& arr__) const -> void
{
uint32_t total = 0;
arr__.SetCapacity(total);
}
auto PAPZCTreeManagerChild::AllManagedActorsCount() const -> uint32_t
{
uint32_t total = 0;
return total;
}
auto PAPZCTreeManagerChild::SendZoomToRect(
const ScrollableLayerGuid& aGuid,
const ZoomTarget& aZoomTarget,
const uint32_t& Flags) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_ZoomToRect(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aGuid);
// Sentinel = 'aGuid'
((&(writer__)))->WriteSentinel(94044651);
IPC::WriteParam((&(writer__)), aZoomTarget);
// Sentinel = 'aZoomTarget'
((&(writer__)))->WriteSentinel(439092334);
IPC::WriteParam((&(writer__)), Flags);
// Sentinel = 'Flags'
((&(writer__)))->WriteSentinel(91685358);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ZoomToRect", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendContentReceivedInputBlock(
const uint64_t& aInputBlockId,
const bool& PreventDefault) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_ContentReceivedInputBlock(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aInputBlockId);
// Sentinel = 'aInputBlockId'
((&(writer__)))->WriteSentinel(595657994);
IPC::WriteParam((&(writer__)), PreventDefault);
// Sentinel = 'PreventDefault'
((&(writer__)))->WriteSentinel(702350762);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ContentReceivedInputBlock", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendSetTargetAPZC(
const uint64_t& aInputBlockId,
mozilla::Span<ScrollableLayerGuid const> Targets) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_SetTargetAPZC(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aInputBlockId);
// Sentinel = 'aInputBlockId'
((&(writer__)))->WriteSentinel(595657994);
IPC::WriteParam((&(writer__)), Targets);
// Sentinel = 'Targets'
((&(writer__)))->WriteSentinel(184091355);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetTargetAPZC", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendUpdateZoomConstraints(
const ScrollableLayerGuid& aGuid,
const mozilla::Maybe<ZoomConstraints>& aConstraints) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_UpdateZoomConstraints(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aGuid);
// Sentinel = 'aGuid'
((&(writer__)))->WriteSentinel(94044651);
IPC::WriteParam((&(writer__)), aConstraints);
// Sentinel = 'aConstraints'
((&(writer__)))->WriteSentinel(525010170);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_UpdateZoomConstraints", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendSetKeyboardMap(const KeyboardMap& aKeyboardMap) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_SetKeyboardMap(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aKeyboardMap);
// Sentinel = 'aKeyboardMap'
((&(writer__)))->WriteSentinel(507905201);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetKeyboardMap", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendSetDPI(const float& aDpiValue) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_SetDPI(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aDpiValue);
// Sentinel = 'aDpiValue'
((&(writer__)))->WriteSentinel(282919804);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetDPI", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendSetAllowedTouchBehavior(
const uint64_t& aInputBlockId,
mozilla::Span<TouchBehaviorFlags const> aValues) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_SetAllowedTouchBehavior(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aInputBlockId);
// Sentinel = 'aInputBlockId'
((&(writer__)))->WriteSentinel(595657994);
IPC::WriteParam((&(writer__)), aValues);
// Sentinel = 'aValues'
((&(writer__)))->WriteSentinel(182649554);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetAllowedTouchBehavior", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendStartScrollbarDrag(
const ScrollableLayerGuid& aGuid,
const AsyncDragMetrics& aDragMetrics) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_StartScrollbarDrag(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aGuid);
// Sentinel = 'aGuid'
((&(writer__)))->WriteSentinel(94044651);
IPC::WriteParam((&(writer__)), aDragMetrics);
// Sentinel = 'aDragMetrics'
((&(writer__)))->WriteSentinel(496108727);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_StartScrollbarDrag", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendStartAutoscroll(
const ScrollableLayerGuid& aGuid,
const ScreenPoint& aAnchorLocation) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_StartAutoscroll(Id());
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("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_StartAutoscroll", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendStopAutoscroll(const ScrollableLayerGuid& aGuid) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_StopAutoscroll(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aGuid);
// Sentinel = 'aGuid'
((&(writer__)))->WriteSentinel(94044651);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_StopAutoscroll", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendSetLongTapEnabled(const bool& aTapGestureEnabled) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_SetLongTapEnabled(Id());
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), aTapGestureEnabled);
// Sentinel = 'aTapGestureEnabled'
((&(writer__)))->WriteSentinel(1116538641);
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetLongTapEnabled", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::SendSetBrowserGestureResponse(
const uint64_t& aInputBlockId,
const BrowserGestureResponse& aResponse) -> bool
{
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg_SetBrowserGestureResponse(Id());
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("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetBrowserGestureResponse", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PAPZCTreeManagerChild::Send__delete__(PAPZCTreeManagerChild* actor) -> bool
{
if (!actor || !actor->CanSend()) {
NS_WARNING("Attempt to __delete__ missing or closed actor");
return false;
}
UniquePtr<IPC::Message> msg__ = PAPZCTreeManager::Msg___delete__((actor)->Id());
IPC::MessageWriter writer__{
(*(msg__)),
actor};
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
actor->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg___delete__", OTHER);
bool sendok__ = (actor)->ChannelSend(std::move(msg__));
IProtocol* mgr = actor->Manager();
actor->DestroySubtree(Deletion);
actor->ClearSubtree();
mgr->RemoveManagee(PAPZCTreeManagerMsgStart, actor);
return sendok__;
}
auto PAPZCTreeManagerChild::RemoveManagee(
int32_t aProtocolId,
IProtocol* aListener) -> void
{
FatalError("unreached");
return;
}
auto PAPZCTreeManagerChild::DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) -> void
{
FatalError("unreached");
return;
}
auto PAPZCTreeManagerChild::OnMessageReceived(const Message& msg__) -> PAPZCTreeManagerChild::Result
{
switch (msg__.type()) {
case MANAGED_ENDPOINT_BOUND_MESSAGE_TYPE:
{
if (!mAwaitingManagedEndpointBind) {
NS_WARNING("Unexpected managed endpoint lifecycle message after actor bound!");
return MsgNotAllowed;
}
mAwaitingManagedEndpointBind = false;
return MsgProcessed;
}
case MANAGED_ENDPOINT_DROPPED_MESSAGE_TYPE:
{
if (!mAwaitingManagedEndpointBind) {
NS_WARNING("Unexpected managed endpoint lifecycle message after actor bound!");
return MsgNotAllowed;
}
mAwaitingManagedEndpointBind = false;
IProtocol* mgr = this->Manager();
this->DestroySubtree(ManagedEndpointDropped);
this->ClearSubtree();
mgr->RemoveManagee(PAPZCTreeManagerMsgStart, this);
return MsgProcessed;
}
case PAPZCTreeManager::Reply___delete____ID:
{
return MsgProcessed;
}
case PAPZCTreeManager::Msg_HandleTap__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::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<APZCTreeManagerChild*>(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 PAPZCTreeManager::Msg_NotifyPinchGesture__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::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<APZCTreeManagerChild*>(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 PAPZCTreeManager::Msg_CancelAutoscroll__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::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<APZCTreeManagerChild*>(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 PAPZCTreeManager::Msg_NotifyScaleGestureComplete__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) {
mozilla::ipc::LogMessageForProtocol(
"PAPZCTreeManagerChild",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PAPZCTreeManager::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<APZCTreeManagerChild*>(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;
}
default:
return MsgNotKnown;
}
}
auto PAPZCTreeManagerChild::OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) -> PAPZCTreeManagerChild::Result
{
return MsgNotKnown;
}
auto PAPZCTreeManagerChild::ClearSubtree() -> void
{
}
} // namespace layers
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::layers::PAPZCTreeManagerChild*>::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::PAPZCTreeManagerChild*>::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, "PAPZCTreeManager", PAPZCTreeManagerMsgStart);
if (actor.isSome()) {
return static_cast<::mozilla::layers::PAPZCTreeManagerChild*>(actor.ref());
}
return {};
}
} // namespace IPC