// // Automatically generated by ipdlc. // Edit at your own risk // #include "mozilla/layers/PAPZCTreeManagerChild.h" #include "mozilla/GfxMessageUtils.h" #include "mozilla/ProfilerLabels.h" #include "mozilla/layers/APZCTreeManagerChild.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::IRefCountedProtocol(kProtocolId, mozilla::ipc::ChildSide) { MOZ_COUNT_CTOR(PAPZCTreeManagerChild); } PAPZCTreeManagerChild::~PAPZCTreeManagerChild() { MOZ_COUNT_DTOR(PAPZCTreeManagerChild); } auto PAPZCTreeManagerChild::ActorAlloc() -> void { AddRef(); } auto PAPZCTreeManagerChild::ActorDealloc() -> void { Release(); } auto PAPZCTreeManagerChild::OtherPid() const -> ::base::ProcessId { ::base::ProcessId pid = ::mozilla::ipc::IProtocol::ToplevelProtocol()->OtherPidMaybeInvalid(); MOZ_RELEASE_ASSERT(pid != ::base::kInvalidProcessId); return pid; } auto PAPZCTreeManagerChild::OtherChildID() const -> ::GeckoChildID { ::GeckoChildID childID = ::mozilla::ipc::IProtocol::ToplevelProtocol()->OtherChildIDMaybeInvalid(); MOZ_RELEASE_ASSERT(childID != -1); return childID; } auto PAPZCTreeManagerChild::OtherEndpointProcInfo() const -> ::mozilla::ipc::EndpointProcInfo { return ::mozilla::ipc::EndpointProcInfo{OtherPid(), OtherChildID()}; } auto PAPZCTreeManagerChild::Manager() const -> PCompositorBridgeChild* { return static_cast(IProtocol::Manager()); } auto PAPZCTreeManagerChild::ManagedProtocolIds() const -> mozilla::Span { return {}; } auto PAPZCTreeManagerChild::GetManagedActors(mozilla::ipc::ProtocolId aProtocol) -> UntypedManagedContainer* { switch (aProtocol) { default: return nullptr; } } auto PAPZCTreeManagerChild::SendZoomToRect( const ScrollableLayerGuid& aGuid, const ZoomTarget& aZoomTarget, const uint32_t& Flags) -> bool { UniquePtr 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 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 Targets) -> bool { UniquePtr 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& aConstraints) -> bool { UniquePtr 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::SendSetAllowedTouchBehavior( const uint64_t& aInputBlockId, mozilla::Span aValues) -> bool { UniquePtr 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 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::SendNotifyApzAwareListenerAdded(const ScrollableLayerGuid& aGuid) -> bool { UniquePtr msg__ = PAPZCTreeManager::Msg_NotifyApzAwareListenerAdded(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_NotifyApzAwareListenerAdded", 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 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__)); actor->ActorDisconnected(Deletion); return sendok__; } auto PAPZCTreeManagerChild::DeallocManagee( mozilla::ipc::ProtocolId aProtocolId, IProtocol* aListener) -> void { FatalError("unreached"); return; } auto PAPZCTreeManagerChild::OnMessageReceived(const Message& msg__) -> PAPZCTreeManagerChild::Result { if (!CanSend()) { if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManager", mozilla::ipc::ChildSide)) { mozilla::ipc::LogMessageForProtocol( "PAPZCTreeManagerChild", this->ToplevelProtocol()->OtherPidMaybeInvalid(), "Ignored message for dead actor", (&(msg__))->type(), mozilla::ipc::MessageDirection::eSending); } return MsgProcessed; } 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; this->ActorDisconnected(ManagedEndpointDropped); return MsgProcessed; } case PAPZCTreeManager::Reply___delete____ID: { return MsgProcessed; } default: return MsgNotKnown; } } auto PAPZCTreeManagerChild::OnMessageReceived( const Message& msg__, UniquePtr& reply__) -> PAPZCTreeManagerChild::Result { if (!CanSend()) { return MsgDropped; } return MsgNotKnown; } } // namespace layers } // namespace mozilla