LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PAPZCTreeManagerChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 15 619 2.4 %
Date: 2017-07-14 16:53:18 Functions: 2 36 5.6 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/layers/PAPZCTreeManagerChild.h"
       8             : #include "FrameMetrics.h"
       9             : #include "InputData.h"
      10             : #include "mozilla/BasicEvents.h"
      11             : #include "mozilla/MouseEvents.h"
      12             : #include "mozilla/TouchEvents.h"
      13             : #include "mozilla/layers/KeyboardMap.h"
      14             : 
      15             : #include "mozilla/layers/PCompositorBridgeChild.h"
      16             : 
      17             : #include "nsIFile.h"
      18             : #include "GeckoProfiler.h"
      19             : 
      20             : namespace mozilla {
      21             : namespace layers {
      22             : 
      23             : 
      24           0 : auto PAPZCTreeManagerChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      25             : {
      26           0 : }
      27             : 
      28           1 : MOZ_IMPLICIT PAPZCTreeManagerChild::PAPZCTreeManagerChild() :
      29             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      30           1 :     mState(PAPZCTreeManager::__Dead)
      31             : {
      32           1 :     MOZ_COUNT_CTOR(PAPZCTreeManagerChild);
      33           1 : }
      34             : 
      35           0 : PAPZCTreeManagerChild::~PAPZCTreeManagerChild()
      36             : {
      37           0 :     MOZ_COUNT_DTOR(PAPZCTreeManagerChild);
      38           0 : }
      39             : 
      40           0 : auto PAPZCTreeManagerChild::Manager() const -> PCompositorBridgeChild*
      41             : {
      42           0 :     return static_cast<PCompositorBridgeChild*>(IProtocol::Manager());
      43             : }
      44             : 
      45           0 : auto PAPZCTreeManagerChild::SendZoomToRect(
      46             :         const ScrollableLayerGuid& aGuid,
      47             :         const CSSRect& aRect,
      48             :         const uint32_t& Flags) -> bool
      49             : {
      50           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ZoomToRect(Id());
      51             : 
      52           0 :     Write(aGuid, msg__);
      53             :     // Sentinel = 'aGuid'
      54           0 :     (msg__)->WriteSentinel(2369323719);
      55           0 :     Write(aRect, msg__);
      56             :     // Sentinel = 'aRect'
      57           0 :     (msg__)->WriteSentinel(1014228594);
      58           0 :     Write(Flags, msg__);
      59             :     // Sentinel = 'Flags'
      60           0 :     (msg__)->WriteSentinel(394072532);
      61             : 
      62             : 
      63             : 
      64             : 
      65           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
      66           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      67             :     }
      68           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ZoomToRect", OTHER);
      69           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ZoomToRect__ID, (&(mState)));
      70             : 
      71           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      72           0 :     return sendok__;
      73             : }
      74             : 
      75           0 : auto PAPZCTreeManagerChild::SendContentReceivedInputBlock(
      76             :         const uint64_t& aInputBlockId,
      77             :         const bool& PreventDefault) -> bool
      78             : {
      79           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ContentReceivedInputBlock(Id());
      80             : 
      81           0 :     Write(aInputBlockId, msg__);
      82             :     // Sentinel = 'aInputBlockId'
      83           0 :     (msg__)->WriteSentinel(3003300100);
      84           0 :     Write(PreventDefault, msg__);
      85             :     // Sentinel = 'PreventDefault'
      86           0 :     (msg__)->WriteSentinel(3434909451);
      87             : 
      88             : 
      89             : 
      90             : 
      91           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
      92           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      93             :     }
      94           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ContentReceivedInputBlock", OTHER);
      95           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ContentReceivedInputBlock__ID, (&(mState)));
      96             : 
      97           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      98           0 :     return sendok__;
      99             : }
     100             : 
     101           0 : auto PAPZCTreeManagerChild::SendSetTargetAPZC(
     102             :         const uint64_t& aInputBlockId,
     103             :         const nsTArray<ScrollableLayerGuid>& Targets) -> bool
     104             : {
     105           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_SetTargetAPZC(Id());
     106             : 
     107           0 :     Write(aInputBlockId, msg__);
     108             :     // Sentinel = 'aInputBlockId'
     109           0 :     (msg__)->WriteSentinel(3003300100);
     110           0 :     Write(Targets, msg__);
     111             :     // Sentinel = 'Targets'
     112           0 :     (msg__)->WriteSentinel(1117257085);
     113             : 
     114             : 
     115             : 
     116             : 
     117           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     118           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     119             :     }
     120           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetTargetAPZC", OTHER);
     121           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_SetTargetAPZC__ID, (&(mState)));
     122             : 
     123           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     124           0 :     return sendok__;
     125             : }
     126             : 
     127           1 : auto PAPZCTreeManagerChild::SendUpdateZoomConstraints(
     128             :         const ScrollableLayerGuid& aGuid,
     129             :         const MaybeZoomConstraints& aConstraints) -> bool
     130             : {
     131           1 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_UpdateZoomConstraints(Id());
     132             : 
     133           1 :     Write(aGuid, msg__);
     134             :     // Sentinel = 'aGuid'
     135           1 :     (msg__)->WriteSentinel(2369323719);
     136           1 :     Write(aConstraints, msg__);
     137             :     // Sentinel = 'aConstraints'
     138           1 :     (msg__)->WriteSentinel(4151473199);
     139             : 
     140             : 
     141             : 
     142             : 
     143           1 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     144           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     145             :     }
     146           2 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_UpdateZoomConstraints", OTHER);
     147           1 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_UpdateZoomConstraints__ID, (&(mState)));
     148             : 
     149           1 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     150           2 :     return sendok__;
     151             : }
     152             : 
     153           0 : auto PAPZCTreeManagerChild::SendCancelAnimation(const ScrollableLayerGuid& aGuid) -> bool
     154             : {
     155           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_CancelAnimation(Id());
     156             : 
     157           0 :     Write(aGuid, msg__);
     158             :     // Sentinel = 'aGuid'
     159           0 :     (msg__)->WriteSentinel(2369323719);
     160             : 
     161             : 
     162             : 
     163             : 
     164           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     165           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     166             :     }
     167           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_CancelAnimation", OTHER);
     168           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_CancelAnimation__ID, (&(mState)));
     169             : 
     170           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     171           0 :     return sendok__;
     172             : }
     173             : 
     174           0 : auto PAPZCTreeManagerChild::SendSetKeyboardMap(const KeyboardMap& aKeyboardMap) -> bool
     175             : {
     176           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_SetKeyboardMap(Id());
     177             : 
     178           0 :     Write(aKeyboardMap, msg__);
     179             :     // Sentinel = 'aKeyboardMap'
     180           0 :     (msg__)->WriteSentinel(4227938288);
     181             : 
     182             : 
     183             : 
     184             : 
     185           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     186           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     187             :     }
     188           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetKeyboardMap", OTHER);
     189           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_SetKeyboardMap__ID, (&(mState)));
     190             : 
     191           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     192           0 :     return sendok__;
     193             : }
     194             : 
     195           0 : auto PAPZCTreeManagerChild::SendSetDPI(const float& aDpiValue) -> bool
     196             : {
     197           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_SetDPI(Id());
     198             : 
     199           0 :     Write(aDpiValue, msg__);
     200             :     // Sentinel = 'aDpiValue'
     201           0 :     (msg__)->WriteSentinel(1134572304);
     202             : 
     203             : 
     204             : 
     205             : 
     206           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     207           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     208             :     }
     209           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetDPI", OTHER);
     210           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_SetDPI__ID, (&(mState)));
     211             : 
     212           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     213           0 :     return sendok__;
     214             : }
     215             : 
     216           0 : auto PAPZCTreeManagerChild::SendSetAllowedTouchBehavior(
     217             :         const uint64_t& aInputBlockId,
     218             :         const nsTArray<TouchBehaviorFlags>& aValues) -> bool
     219             : {
     220           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_SetAllowedTouchBehavior(Id());
     221             : 
     222           0 :     Write(aInputBlockId, msg__);
     223             :     // Sentinel = 'aInputBlockId'
     224           0 :     (msg__)->WriteSentinel(3003300100);
     225           0 :     Write(aValues, msg__);
     226             :     // Sentinel = 'aValues'
     227           0 :     (msg__)->WriteSentinel(223787060);
     228             : 
     229             : 
     230             : 
     231             : 
     232           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     233           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     234             :     }
     235           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetAllowedTouchBehavior", OTHER);
     236           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_SetAllowedTouchBehavior__ID, (&(mState)));
     237             : 
     238           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     239           0 :     return sendok__;
     240             : }
     241             : 
     242           0 : auto PAPZCTreeManagerChild::SendStartScrollbarDrag(
     243             :         const ScrollableLayerGuid& aGuid,
     244             :         const AsyncDragMetrics& aDragMetrics) -> bool
     245             : {
     246           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_StartScrollbarDrag(Id());
     247             : 
     248           0 :     Write(aGuid, msg__);
     249             :     // Sentinel = 'aGuid'
     250           0 :     (msg__)->WriteSentinel(2369323719);
     251           0 :     Write(aDragMetrics, msg__);
     252             :     // Sentinel = 'aDragMetrics'
     253           0 :     (msg__)->WriteSentinel(2529840026);
     254             : 
     255             : 
     256             : 
     257             : 
     258           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     259           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     260             :     }
     261           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_StartScrollbarDrag", OTHER);
     262           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_StartScrollbarDrag__ID, (&(mState)));
     263             : 
     264           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     265           0 :     return sendok__;
     266             : }
     267             : 
     268           0 : auto PAPZCTreeManagerChild::SendSetLongTapEnabled(const bool& aTapGestureEnabled) -> bool
     269             : {
     270           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_SetLongTapEnabled(Id());
     271             : 
     272           0 :     Write(aTapGestureEnabled, msg__);
     273             :     // Sentinel = 'aTapGestureEnabled'
     274           0 :     (msg__)->WriteSentinel(2978221422);
     275             : 
     276             : 
     277             : 
     278             : 
     279           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     280           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     281             :     }
     282           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetLongTapEnabled", OTHER);
     283           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_SetLongTapEnabled__ID, (&(mState)));
     284             : 
     285           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     286           0 :     return sendok__;
     287             : }
     288             : 
     289           0 : auto PAPZCTreeManagerChild::SendProcessTouchVelocity(
     290             :         const uint32_t& aTimestampMs,
     291             :         const float& aSpeedY) -> bool
     292             : {
     293           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ProcessTouchVelocity(Id());
     294             : 
     295           0 :     Write(aTimestampMs, msg__);
     296             :     // Sentinel = 'aTimestampMs'
     297           0 :     (msg__)->WriteSentinel(2216653051);
     298           0 :     Write(aSpeedY, msg__);
     299             :     // Sentinel = 'aSpeedY'
     300           0 :     (msg__)->WriteSentinel(1227375696);
     301             : 
     302             : 
     303             : 
     304             : 
     305           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     306           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     307             :     }
     308           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ProcessTouchVelocity", OTHER);
     309           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ProcessTouchVelocity__ID, (&(mState)));
     310             : 
     311           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     312           0 :     return sendok__;
     313             : }
     314             : 
     315           0 : auto PAPZCTreeManagerChild::SendReceiveMultiTouchInputEvent(
     316             :         const MultiTouchInput& aEvent,
     317             :         nsEventStatus* aOutStatus,
     318             :         MultiTouchInput* aOutEvent,
     319             :         ScrollableLayerGuid* aOutTargetGuid,
     320             :         uint64_t* aOutInputBlockId) -> bool
     321             : {
     322           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ReceiveMultiTouchInputEvent(Id());
     323             : 
     324           0 :     Write(aEvent, msg__);
     325             :     // Sentinel = 'aEvent'
     326           0 :     (msg__)->WriteSentinel(3531117325);
     327             : 
     328           0 :     (msg__)->set_sync();
     329             : 
     330             : 
     331           0 :     Message reply__;
     332             : 
     333           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     334           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     335             :     }
     336           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ReceiveMultiTouchInputEvent", OTHER);
     337           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ReceiveMultiTouchInputEvent__ID, (&(mState)));
     338             : 
     339             :     bool sendok__;
     340             :     {
     341             :         AutoProfilerTracing syncIPCTracer(
     342             :                 "IPC",
     343           0 :                 "PAPZCTreeManager::Msg_ReceiveMultiTouchInputEvent");
     344           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     345             :     }
     346           0 :     if ((!(sendok__))) {
     347           0 :         return false;
     348             :     }
     349             : 
     350           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     351           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     352             :     }
     353             : 
     354           0 :     PickleIterator iter__(reply__);
     355             : 
     356           0 :     if ((!(Read(aOutStatus, (&(reply__)), (&(iter__)))))) {
     357           0 :         FatalError("Error deserializing 'nsEventStatus'");
     358           0 :         return false;
     359             :     }
     360             :     // Sentinel = 'aOutStatus'
     361           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
     362           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
     363           0 :         return false;
     364             :     }
     365           0 :     if ((!(Read(aOutEvent, (&(reply__)), (&(iter__)))))) {
     366           0 :         FatalError("Error deserializing 'MultiTouchInput'");
     367           0 :         return false;
     368             :     }
     369             :     // Sentinel = 'aOutEvent'
     370           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
     371           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'MultiTouchInput'");
     372           0 :         return false;
     373             :     }
     374           0 :     if ((!(Read(aOutTargetGuid, (&(reply__)), (&(iter__)))))) {
     375           0 :         FatalError("Error deserializing 'ScrollableLayerGuid'");
     376           0 :         return false;
     377             :     }
     378             :     // Sentinel = 'aOutTargetGuid'
     379           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
     380           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
     381           0 :         return false;
     382             :     }
     383           0 :     if ((!(Read(aOutInputBlockId, (&(reply__)), (&(iter__)))))) {
     384           0 :         FatalError("Error deserializing 'uint64_t'");
     385           0 :         return false;
     386             :     }
     387             :     // Sentinel = 'aOutInputBlockId'
     388           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
     389           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     390           0 :         return false;
     391             :     }
     392           0 :     (reply__).EndRead(iter__, (reply__).type());
     393             : 
     394           0 :     return true;
     395             : }
     396             : 
     397           0 : auto PAPZCTreeManagerChild::SendReceiveMouseInputEvent(
     398             :         const MouseInput& aEvent,
     399             :         nsEventStatus* aOutStatus,
     400             :         MouseInput* aOutEvent,
     401             :         ScrollableLayerGuid* aOutTargetGuid,
     402             :         uint64_t* aOutInputBlockId) -> bool
     403             : {
     404           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ReceiveMouseInputEvent(Id());
     405             : 
     406           0 :     Write(aEvent, msg__);
     407             :     // Sentinel = 'aEvent'
     408           0 :     (msg__)->WriteSentinel(3531117325);
     409             : 
     410           0 :     (msg__)->set_sync();
     411             : 
     412             : 
     413           0 :     Message reply__;
     414             : 
     415           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     416           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     417             :     }
     418           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ReceiveMouseInputEvent", OTHER);
     419           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ReceiveMouseInputEvent__ID, (&(mState)));
     420             : 
     421             :     bool sendok__;
     422             :     {
     423             :         AutoProfilerTracing syncIPCTracer(
     424             :                 "IPC",
     425           0 :                 "PAPZCTreeManager::Msg_ReceiveMouseInputEvent");
     426           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     427             :     }
     428           0 :     if ((!(sendok__))) {
     429           0 :         return false;
     430             :     }
     431             : 
     432           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     433           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     434             :     }
     435             : 
     436           0 :     PickleIterator iter__(reply__);
     437             : 
     438           0 :     if ((!(Read(aOutStatus, (&(reply__)), (&(iter__)))))) {
     439           0 :         FatalError("Error deserializing 'nsEventStatus'");
     440           0 :         return false;
     441             :     }
     442             :     // Sentinel = 'aOutStatus'
     443           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
     444           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
     445           0 :         return false;
     446             :     }
     447           0 :     if ((!(Read(aOutEvent, (&(reply__)), (&(iter__)))))) {
     448           0 :         FatalError("Error deserializing 'MouseInput'");
     449           0 :         return false;
     450             :     }
     451             :     // Sentinel = 'aOutEvent'
     452           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
     453           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'MouseInput'");
     454           0 :         return false;
     455             :     }
     456           0 :     if ((!(Read(aOutTargetGuid, (&(reply__)), (&(iter__)))))) {
     457           0 :         FatalError("Error deserializing 'ScrollableLayerGuid'");
     458           0 :         return false;
     459             :     }
     460             :     // Sentinel = 'aOutTargetGuid'
     461           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
     462           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
     463           0 :         return false;
     464             :     }
     465           0 :     if ((!(Read(aOutInputBlockId, (&(reply__)), (&(iter__)))))) {
     466           0 :         FatalError("Error deserializing 'uint64_t'");
     467           0 :         return false;
     468             :     }
     469             :     // Sentinel = 'aOutInputBlockId'
     470           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
     471           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     472           0 :         return false;
     473             :     }
     474           0 :     (reply__).EndRead(iter__, (reply__).type());
     475             : 
     476           0 :     return true;
     477             : }
     478             : 
     479           0 : auto PAPZCTreeManagerChild::SendReceivePanGestureInputEvent(
     480             :         const PanGestureInput& aEvent,
     481             :         nsEventStatus* aOutStatus,
     482             :         PanGestureInput* aOutEvent,
     483             :         ScrollableLayerGuid* aOutTargetGuid,
     484             :         uint64_t* aOutInputBlockId) -> bool
     485             : {
     486           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ReceivePanGestureInputEvent(Id());
     487             : 
     488           0 :     Write(aEvent, msg__);
     489             :     // Sentinel = 'aEvent'
     490           0 :     (msg__)->WriteSentinel(3531117325);
     491             : 
     492           0 :     (msg__)->set_sync();
     493             : 
     494             : 
     495           0 :     Message reply__;
     496             : 
     497           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     498           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     499             :     }
     500           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ReceivePanGestureInputEvent", OTHER);
     501           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ReceivePanGestureInputEvent__ID, (&(mState)));
     502             : 
     503             :     bool sendok__;
     504             :     {
     505             :         AutoProfilerTracing syncIPCTracer(
     506             :                 "IPC",
     507           0 :                 "PAPZCTreeManager::Msg_ReceivePanGestureInputEvent");
     508           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     509             :     }
     510           0 :     if ((!(sendok__))) {
     511           0 :         return false;
     512             :     }
     513             : 
     514           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     515           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     516             :     }
     517             : 
     518           0 :     PickleIterator iter__(reply__);
     519             : 
     520           0 :     if ((!(Read(aOutStatus, (&(reply__)), (&(iter__)))))) {
     521           0 :         FatalError("Error deserializing 'nsEventStatus'");
     522           0 :         return false;
     523             :     }
     524             :     // Sentinel = 'aOutStatus'
     525           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
     526           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
     527           0 :         return false;
     528             :     }
     529           0 :     if ((!(Read(aOutEvent, (&(reply__)), (&(iter__)))))) {
     530           0 :         FatalError("Error deserializing 'PanGestureInput'");
     531           0 :         return false;
     532             :     }
     533             :     // Sentinel = 'aOutEvent'
     534           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
     535           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'PanGestureInput'");
     536           0 :         return false;
     537             :     }
     538           0 :     if ((!(Read(aOutTargetGuid, (&(reply__)), (&(iter__)))))) {
     539           0 :         FatalError("Error deserializing 'ScrollableLayerGuid'");
     540           0 :         return false;
     541             :     }
     542             :     // Sentinel = 'aOutTargetGuid'
     543           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
     544           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
     545           0 :         return false;
     546             :     }
     547           0 :     if ((!(Read(aOutInputBlockId, (&(reply__)), (&(iter__)))))) {
     548           0 :         FatalError("Error deserializing 'uint64_t'");
     549           0 :         return false;
     550             :     }
     551             :     // Sentinel = 'aOutInputBlockId'
     552           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
     553           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     554           0 :         return false;
     555             :     }
     556           0 :     (reply__).EndRead(iter__, (reply__).type());
     557             : 
     558           0 :     return true;
     559             : }
     560             : 
     561           0 : auto PAPZCTreeManagerChild::SendReceivePinchGestureInputEvent(
     562             :         const PinchGestureInput& aEvent,
     563             :         nsEventStatus* aOutStatus,
     564             :         PinchGestureInput* aOutEvent,
     565             :         ScrollableLayerGuid* aOutTargetGuid,
     566             :         uint64_t* aOutInputBlockId) -> bool
     567             : {
     568           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ReceivePinchGestureInputEvent(Id());
     569             : 
     570           0 :     Write(aEvent, msg__);
     571             :     // Sentinel = 'aEvent'
     572           0 :     (msg__)->WriteSentinel(3531117325);
     573             : 
     574           0 :     (msg__)->set_sync();
     575             : 
     576             : 
     577           0 :     Message reply__;
     578             : 
     579           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     580           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     581             :     }
     582           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ReceivePinchGestureInputEvent", OTHER);
     583           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ReceivePinchGestureInputEvent__ID, (&(mState)));
     584             : 
     585             :     bool sendok__;
     586             :     {
     587             :         AutoProfilerTracing syncIPCTracer(
     588             :                 "IPC",
     589           0 :                 "PAPZCTreeManager::Msg_ReceivePinchGestureInputEvent");
     590           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     591             :     }
     592           0 :     if ((!(sendok__))) {
     593           0 :         return false;
     594             :     }
     595             : 
     596           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     597           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     598             :     }
     599             : 
     600           0 :     PickleIterator iter__(reply__);
     601             : 
     602           0 :     if ((!(Read(aOutStatus, (&(reply__)), (&(iter__)))))) {
     603           0 :         FatalError("Error deserializing 'nsEventStatus'");
     604           0 :         return false;
     605             :     }
     606             :     // Sentinel = 'aOutStatus'
     607           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
     608           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
     609           0 :         return false;
     610             :     }
     611           0 :     if ((!(Read(aOutEvent, (&(reply__)), (&(iter__)))))) {
     612           0 :         FatalError("Error deserializing 'PinchGestureInput'");
     613           0 :         return false;
     614             :     }
     615             :     // Sentinel = 'aOutEvent'
     616           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
     617           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'PinchGestureInput'");
     618           0 :         return false;
     619             :     }
     620           0 :     if ((!(Read(aOutTargetGuid, (&(reply__)), (&(iter__)))))) {
     621           0 :         FatalError("Error deserializing 'ScrollableLayerGuid'");
     622           0 :         return false;
     623             :     }
     624             :     // Sentinel = 'aOutTargetGuid'
     625           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
     626           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
     627           0 :         return false;
     628             :     }
     629           0 :     if ((!(Read(aOutInputBlockId, (&(reply__)), (&(iter__)))))) {
     630           0 :         FatalError("Error deserializing 'uint64_t'");
     631           0 :         return false;
     632             :     }
     633             :     // Sentinel = 'aOutInputBlockId'
     634           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
     635           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     636           0 :         return false;
     637             :     }
     638           0 :     (reply__).EndRead(iter__, (reply__).type());
     639             : 
     640           0 :     return true;
     641             : }
     642             : 
     643           0 : auto PAPZCTreeManagerChild::SendReceiveTapGestureInputEvent(
     644             :         const TapGestureInput& aEvent,
     645             :         nsEventStatus* aOutStatus,
     646             :         TapGestureInput* aOutEvent,
     647             :         ScrollableLayerGuid* aOutTargetGuid,
     648             :         uint64_t* aOutInputBlockId) -> bool
     649             : {
     650           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ReceiveTapGestureInputEvent(Id());
     651             : 
     652           0 :     Write(aEvent, msg__);
     653             :     // Sentinel = 'aEvent'
     654           0 :     (msg__)->WriteSentinel(3531117325);
     655             : 
     656           0 :     (msg__)->set_sync();
     657             : 
     658             : 
     659           0 :     Message reply__;
     660             : 
     661           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     662           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     663             :     }
     664           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ReceiveTapGestureInputEvent", OTHER);
     665           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ReceiveTapGestureInputEvent__ID, (&(mState)));
     666             : 
     667             :     bool sendok__;
     668             :     {
     669             :         AutoProfilerTracing syncIPCTracer(
     670             :                 "IPC",
     671           0 :                 "PAPZCTreeManager::Msg_ReceiveTapGestureInputEvent");
     672           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     673             :     }
     674           0 :     if ((!(sendok__))) {
     675           0 :         return false;
     676             :     }
     677             : 
     678           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     679           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     680             :     }
     681             : 
     682           0 :     PickleIterator iter__(reply__);
     683             : 
     684           0 :     if ((!(Read(aOutStatus, (&(reply__)), (&(iter__)))))) {
     685           0 :         FatalError("Error deserializing 'nsEventStatus'");
     686           0 :         return false;
     687             :     }
     688             :     // Sentinel = 'aOutStatus'
     689           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
     690           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
     691           0 :         return false;
     692             :     }
     693           0 :     if ((!(Read(aOutEvent, (&(reply__)), (&(iter__)))))) {
     694           0 :         FatalError("Error deserializing 'TapGestureInput'");
     695           0 :         return false;
     696             :     }
     697             :     // Sentinel = 'aOutEvent'
     698           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
     699           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'TapGestureInput'");
     700           0 :         return false;
     701             :     }
     702           0 :     if ((!(Read(aOutTargetGuid, (&(reply__)), (&(iter__)))))) {
     703           0 :         FatalError("Error deserializing 'ScrollableLayerGuid'");
     704           0 :         return false;
     705             :     }
     706             :     // Sentinel = 'aOutTargetGuid'
     707           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
     708           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
     709           0 :         return false;
     710             :     }
     711           0 :     if ((!(Read(aOutInputBlockId, (&(reply__)), (&(iter__)))))) {
     712           0 :         FatalError("Error deserializing 'uint64_t'");
     713           0 :         return false;
     714             :     }
     715             :     // Sentinel = 'aOutInputBlockId'
     716           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
     717           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     718           0 :         return false;
     719             :     }
     720           0 :     (reply__).EndRead(iter__, (reply__).type());
     721             : 
     722           0 :     return true;
     723             : }
     724             : 
     725           0 : auto PAPZCTreeManagerChild::SendReceiveScrollWheelInputEvent(
     726             :         const ScrollWheelInput& aEvent,
     727             :         nsEventStatus* aOutStatus,
     728             :         ScrollWheelInput* aOutEvent,
     729             :         ScrollableLayerGuid* aOutTargetGuid,
     730             :         uint64_t* aOutInputBlockId) -> bool
     731             : {
     732           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ReceiveScrollWheelInputEvent(Id());
     733             : 
     734           0 :     Write(aEvent, msg__);
     735             :     // Sentinel = 'aEvent'
     736           0 :     (msg__)->WriteSentinel(3531117325);
     737             : 
     738           0 :     (msg__)->set_sync();
     739             : 
     740             : 
     741           0 :     Message reply__;
     742             : 
     743           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     744           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     745             :     }
     746           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ReceiveScrollWheelInputEvent", OTHER);
     747           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ReceiveScrollWheelInputEvent__ID, (&(mState)));
     748             : 
     749             :     bool sendok__;
     750             :     {
     751             :         AutoProfilerTracing syncIPCTracer(
     752             :                 "IPC",
     753           0 :                 "PAPZCTreeManager::Msg_ReceiveScrollWheelInputEvent");
     754           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     755             :     }
     756           0 :     if ((!(sendok__))) {
     757           0 :         return false;
     758             :     }
     759             : 
     760           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     761           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     762             :     }
     763             : 
     764           0 :     PickleIterator iter__(reply__);
     765             : 
     766           0 :     if ((!(Read(aOutStatus, (&(reply__)), (&(iter__)))))) {
     767           0 :         FatalError("Error deserializing 'nsEventStatus'");
     768           0 :         return false;
     769             :     }
     770             :     // Sentinel = 'aOutStatus'
     771           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
     772           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
     773           0 :         return false;
     774             :     }
     775           0 :     if ((!(Read(aOutEvent, (&(reply__)), (&(iter__)))))) {
     776           0 :         FatalError("Error deserializing 'ScrollWheelInput'");
     777           0 :         return false;
     778             :     }
     779             :     // Sentinel = 'aOutEvent'
     780           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
     781           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ScrollWheelInput'");
     782           0 :         return false;
     783             :     }
     784           0 :     if ((!(Read(aOutTargetGuid, (&(reply__)), (&(iter__)))))) {
     785           0 :         FatalError("Error deserializing 'ScrollableLayerGuid'");
     786           0 :         return false;
     787             :     }
     788             :     // Sentinel = 'aOutTargetGuid'
     789           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
     790           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
     791           0 :         return false;
     792             :     }
     793           0 :     if ((!(Read(aOutInputBlockId, (&(reply__)), (&(iter__)))))) {
     794           0 :         FatalError("Error deserializing 'uint64_t'");
     795           0 :         return false;
     796             :     }
     797             :     // Sentinel = 'aOutInputBlockId'
     798           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
     799           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     800           0 :         return false;
     801             :     }
     802           0 :     (reply__).EndRead(iter__, (reply__).type());
     803             : 
     804           0 :     return true;
     805             : }
     806             : 
     807           0 : auto PAPZCTreeManagerChild::SendReceiveKeyboardInputEvent(
     808             :         const KeyboardInput& aEvent,
     809             :         nsEventStatus* aOutStatus,
     810             :         KeyboardInput* aOutEvent,
     811             :         ScrollableLayerGuid* aOutTargetGuid,
     812             :         uint64_t* aOutInputBlockId) -> bool
     813             : {
     814           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ReceiveKeyboardInputEvent(Id());
     815             : 
     816           0 :     Write(aEvent, msg__);
     817             :     // Sentinel = 'aEvent'
     818           0 :     (msg__)->WriteSentinel(3531117325);
     819             : 
     820           0 :     (msg__)->set_sync();
     821             : 
     822             : 
     823           0 :     Message reply__;
     824             : 
     825           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     826           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     827             :     }
     828           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ReceiveKeyboardInputEvent", OTHER);
     829           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ReceiveKeyboardInputEvent__ID, (&(mState)));
     830             : 
     831             :     bool sendok__;
     832             :     {
     833             :         AutoProfilerTracing syncIPCTracer(
     834             :                 "IPC",
     835           0 :                 "PAPZCTreeManager::Msg_ReceiveKeyboardInputEvent");
     836           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     837             :     }
     838           0 :     if ((!(sendok__))) {
     839           0 :         return false;
     840             :     }
     841             : 
     842           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     843           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     844             :     }
     845             : 
     846           0 :     PickleIterator iter__(reply__);
     847             : 
     848           0 :     if ((!(Read(aOutStatus, (&(reply__)), (&(iter__)))))) {
     849           0 :         FatalError("Error deserializing 'nsEventStatus'");
     850           0 :         return false;
     851             :     }
     852             :     // Sentinel = 'aOutStatus'
     853           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
     854           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
     855           0 :         return false;
     856             :     }
     857           0 :     if ((!(Read(aOutEvent, (&(reply__)), (&(iter__)))))) {
     858           0 :         FatalError("Error deserializing 'KeyboardInput'");
     859           0 :         return false;
     860             :     }
     861             :     // Sentinel = 'aOutEvent'
     862           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
     863           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'KeyboardInput'");
     864           0 :         return false;
     865             :     }
     866           0 :     if ((!(Read(aOutTargetGuid, (&(reply__)), (&(iter__)))))) {
     867           0 :         FatalError("Error deserializing 'ScrollableLayerGuid'");
     868           0 :         return false;
     869             :     }
     870             :     // Sentinel = 'aOutTargetGuid'
     871           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
     872           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
     873           0 :         return false;
     874             :     }
     875           0 :     if ((!(Read(aOutInputBlockId, (&(reply__)), (&(iter__)))))) {
     876           0 :         FatalError("Error deserializing 'uint64_t'");
     877           0 :         return false;
     878             :     }
     879             :     // Sentinel = 'aOutInputBlockId'
     880           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
     881           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     882           0 :         return false;
     883             :     }
     884           0 :     (reply__).EndRead(iter__, (reply__).type());
     885             : 
     886           0 :     return true;
     887             : }
     888             : 
     889           0 : auto PAPZCTreeManagerChild::SendUpdateWheelTransaction(
     890             :         const LayoutDeviceIntPoint& aRefPoint,
     891             :         const EventMessage& aEventMessage) -> bool
     892             : {
     893           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_UpdateWheelTransaction(Id());
     894             : 
     895           0 :     Write(aRefPoint, msg__);
     896             :     // Sentinel = 'aRefPoint'
     897           0 :     (msg__)->WriteSentinel(2074729999);
     898           0 :     Write(aEventMessage, msg__);
     899             :     // Sentinel = 'aEventMessage'
     900           0 :     (msg__)->WriteSentinel(3024841269);
     901             : 
     902             : 
     903             : 
     904             : 
     905           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     906           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     907             :     }
     908           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_UpdateWheelTransaction", OTHER);
     909           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_UpdateWheelTransaction__ID, (&(mState)));
     910             : 
     911           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     912           0 :     return sendok__;
     913             : }
     914             : 
     915           0 : auto PAPZCTreeManagerChild::SendProcessUnhandledEvent(
     916             :         const LayoutDeviceIntPoint& aRefPoint,
     917             :         LayoutDeviceIntPoint* aOutRefPoint,
     918             :         ScrollableLayerGuid* aOutTargetGuid,
     919             :         uint64_t* aOutFocusSequenceNumber) -> bool
     920             : {
     921           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg_ProcessUnhandledEvent(Id());
     922             : 
     923           0 :     Write(aRefPoint, msg__);
     924             :     // Sentinel = 'aRefPoint'
     925           0 :     (msg__)->WriteSentinel(2074729999);
     926             : 
     927           0 :     (msg__)->set_sync();
     928             : 
     929             : 
     930           0 :     Message reply__;
     931             : 
     932           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     933           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     934             :     }
     935           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ProcessUnhandledEvent", OTHER);
     936           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_ProcessUnhandledEvent__ID, (&(mState)));
     937             : 
     938             :     bool sendok__;
     939             :     {
     940             :         AutoProfilerTracing syncIPCTracer(
     941             :                 "IPC",
     942           0 :                 "PAPZCTreeManager::Msg_ProcessUnhandledEvent");
     943           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     944             :     }
     945           0 :     if ((!(sendok__))) {
     946           0 :         return false;
     947             :     }
     948             : 
     949           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
     950           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     951             :     }
     952             : 
     953           0 :     PickleIterator iter__(reply__);
     954             : 
     955           0 :     if ((!(Read(aOutRefPoint, (&(reply__)), (&(iter__)))))) {
     956           0 :         FatalError("Error deserializing 'LayoutDeviceIntPoint'");
     957           0 :         return false;
     958             :     }
     959             :     // Sentinel = 'aOutRefPoint'
     960           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 4284573792)))) {
     961           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'");
     962           0 :         return false;
     963             :     }
     964           0 :     if ((!(Read(aOutTargetGuid, (&(reply__)), (&(iter__)))))) {
     965           0 :         FatalError("Error deserializing 'ScrollableLayerGuid'");
     966           0 :         return false;
     967             :     }
     968             :     // Sentinel = 'aOutTargetGuid'
     969           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
     970           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
     971           0 :         return false;
     972             :     }
     973           0 :     if ((!(Read(aOutFocusSequenceNumber, (&(reply__)), (&(iter__)))))) {
     974           0 :         FatalError("Error deserializing 'uint64_t'");
     975           0 :         return false;
     976             :     }
     977             :     // Sentinel = 'aOutFocusSequenceNumber'
     978           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3726393906)))) {
     979           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     980           0 :         return false;
     981             :     }
     982           0 :     (reply__).EndRead(iter__, (reply__).type());
     983             : 
     984           0 :     return true;
     985             : }
     986             : 
     987           0 : auto PAPZCTreeManagerChild::Send__delete__(PAPZCTreeManagerChild* actor) -> bool
     988             : {
     989           0 :     if ((!(actor))) {
     990           0 :         return false;
     991             :     }
     992             : 
     993           0 :     IPC::Message* msg__ = PAPZCTreeManager::Msg___delete__((actor)->Id());
     994             : 
     995           0 :     (actor)->Write(actor, msg__, false);
     996             :     // Sentinel = 'actor'
     997           0 :     (msg__)->WriteSentinel(875202478);
     998             : 
     999             : 
    1000             : 
    1001           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
    1002           0 :         mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1003             :     }
    1004           0 :     AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg___delete__", OTHER);
    1005           0 :     PAPZCTreeManager::Transition(PAPZCTreeManager::Msg___delete____ID, (&((actor)->mState)));
    1006             : 
    1007           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
    1008             : 
    1009           0 :     IProtocol* mgr = (actor)->Manager();
    1010           0 :     (actor)->DestroySubtree(Deletion);
    1011           0 :     (actor)->DeallocSubtree();
    1012           0 :     (mgr)->RemoveManagee(PAPZCTreeManagerMsgStart, actor);
    1013           0 :     return sendok__;
    1014             : }
    1015             : 
    1016           0 : auto PAPZCTreeManagerChild::RemoveManagee(
    1017             :         int32_t aProtocolId,
    1018             :         ProtocolBase* aListener) -> void
    1019             : {
    1020           0 :     FatalError("unreached");
    1021           0 :     return;
    1022             : }
    1023             : 
    1024           0 : auto PAPZCTreeManagerChild::OnMessageReceived(const Message& msg__) -> PAPZCTreeManagerChild::Result
    1025             : {
    1026           0 :     switch ((msg__).type()) {
    1027             :     case PAPZCTreeManager::Reply___delete____ID:
    1028             :         {
    1029           0 :             return MsgProcessed;
    1030             :         }
    1031             :     case PAPZCTreeManager::Msg_HandleTap__ID:
    1032             :         {
    1033           0 :             if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
    1034           0 :                 mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1035             :             }
    1036           0 :             AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_HandleTap", OTHER);
    1037             : 
    1038           0 :             PickleIterator iter__(msg__);
    1039             :             TapType aType;
    1040           0 :             LayoutDevicePoint point;
    1041             :             Modifiers aModifiers;
    1042           0 :             ScrollableLayerGuid aGuid;
    1043             :             uint64_t aInputBlockId;
    1044             : 
    1045           0 :             if ((!(Read((&(aType)), (&(msg__)), (&(iter__)))))) {
    1046           0 :                 FatalError("Error deserializing 'TapType'");
    1047           0 :                 return MsgValueError;
    1048             :             }
    1049             :             // Sentinel = 'aType'
    1050           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) {
    1051           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'TapType'");
    1052           0 :                 return MsgValueError;
    1053             :             }
    1054           0 :             if ((!(Read((&(point)), (&(msg__)), (&(iter__)))))) {
    1055           0 :                 FatalError("Error deserializing 'LayoutDevicePoint'");
    1056           0 :                 return MsgValueError;
    1057             :             }
    1058             :             // Sentinel = 'point'
    1059           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3028833543)))) {
    1060           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDevicePoint'");
    1061           0 :                 return MsgValueError;
    1062             :             }
    1063           0 :             if ((!(Read((&(aModifiers)), (&(msg__)), (&(iter__)))))) {
    1064           0 :                 FatalError("Error deserializing 'Modifiers'");
    1065           0 :                 return MsgValueError;
    1066             :             }
    1067             :             // Sentinel = 'aModifiers'
    1068           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 261964171)))) {
    1069           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Modifiers'");
    1070           0 :                 return MsgValueError;
    1071             :             }
    1072           0 :             if ((!(Read((&(aGuid)), (&(msg__)), (&(iter__)))))) {
    1073           0 :                 FatalError("Error deserializing 'ScrollableLayerGuid'");
    1074           0 :                 return MsgValueError;
    1075             :             }
    1076             :             // Sentinel = 'aGuid'
    1077           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2369323719)))) {
    1078           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
    1079           0 :                 return MsgValueError;
    1080             :             }
    1081           0 :             if ((!(Read((&(aInputBlockId)), (&(msg__)), (&(iter__)))))) {
    1082           0 :                 FatalError("Error deserializing 'uint64_t'");
    1083           0 :                 return MsgValueError;
    1084             :             }
    1085             :             // Sentinel = 'aInputBlockId'
    1086           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3003300100)))) {
    1087           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
    1088           0 :                 return MsgValueError;
    1089             :             }
    1090           0 :             (msg__).EndRead(iter__, (msg__).type());
    1091           0 :             PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_HandleTap__ID, (&(mState)));
    1092           0 :             if ((!(RecvHandleTap(mozilla::Move(aType), mozilla::Move(point), mozilla::Move(aModifiers), mozilla::Move(aGuid), mozilla::Move(aInputBlockId))))) {
    1093           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1094             :                 // Error handled in mozilla::ipc::IPCResult
    1095           0 :                 return MsgProcessingError;
    1096             :             }
    1097             : 
    1098           0 :             return MsgProcessed;
    1099             :         }
    1100             :     case PAPZCTreeManager::Msg_NotifyPinchGesture__ID:
    1101             :         {
    1102           0 :             if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
    1103           0 :                 mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1104             :             }
    1105           0 :             AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_NotifyPinchGesture", OTHER);
    1106             : 
    1107           0 :             PickleIterator iter__(msg__);
    1108             :             PinchGestureType aType;
    1109           0 :             ScrollableLayerGuid aGuid;
    1110           0 :             LayoutDeviceCoord aSpanChange;
    1111             :             Modifiers aModifiers;
    1112             : 
    1113           0 :             if ((!(Read((&(aType)), (&(msg__)), (&(iter__)))))) {
    1114           0 :                 FatalError("Error deserializing 'PinchGestureType'");
    1115           0 :                 return MsgValueError;
    1116             :             }
    1117             :             // Sentinel = 'aType'
    1118           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) {
    1119           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PinchGestureType'");
    1120           0 :                 return MsgValueError;
    1121             :             }
    1122           0 :             if ((!(Read((&(aGuid)), (&(msg__)), (&(iter__)))))) {
    1123           0 :                 FatalError("Error deserializing 'ScrollableLayerGuid'");
    1124           0 :                 return MsgValueError;
    1125             :             }
    1126             :             // Sentinel = 'aGuid'
    1127           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2369323719)))) {
    1128           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
    1129           0 :                 return MsgValueError;
    1130             :             }
    1131           0 :             if ((!(Read((&(aSpanChange)), (&(msg__)), (&(iter__)))))) {
    1132           0 :                 FatalError("Error deserializing 'LayoutDeviceCoord'");
    1133           0 :                 return MsgValueError;
    1134             :             }
    1135             :             // Sentinel = 'aSpanChange'
    1136           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2144160218)))) {
    1137           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceCoord'");
    1138           0 :                 return MsgValueError;
    1139             :             }
    1140           0 :             if ((!(Read((&(aModifiers)), (&(msg__)), (&(iter__)))))) {
    1141           0 :                 FatalError("Error deserializing 'Modifiers'");
    1142           0 :                 return MsgValueError;
    1143             :             }
    1144             :             // Sentinel = 'aModifiers'
    1145           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 261964171)))) {
    1146           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Modifiers'");
    1147           0 :                 return MsgValueError;
    1148             :             }
    1149           0 :             (msg__).EndRead(iter__, (msg__).type());
    1150           0 :             PAPZCTreeManager::Transition(PAPZCTreeManager::Msg_NotifyPinchGesture__ID, (&(mState)));
    1151           0 :             if ((!(RecvNotifyPinchGesture(mozilla::Move(aType), mozilla::Move(aGuid), mozilla::Move(aSpanChange), mozilla::Move(aModifiers))))) {
    1152           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1153             :                 // Error handled in mozilla::ipc::IPCResult
    1154           0 :                 return MsgProcessingError;
    1155             :             }
    1156             : 
    1157           0 :             return MsgProcessed;
    1158             :         }
    1159             :     default:
    1160             :         {
    1161           0 :             return MsgNotKnown;
    1162             :         }
    1163             :     }
    1164             : }
    1165             : 
    1166           0 : auto PAPZCTreeManagerChild::OnMessageReceived(
    1167             :         const Message& msg__,
    1168             :         Message*& reply__) -> PAPZCTreeManagerChild::Result
    1169             : {
    1170           0 :     return MsgNotKnown;
    1171             : }
    1172             : 
    1173           0 : auto PAPZCTreeManagerChild::OnCallReceived(
    1174             :         const Message& msg__,
    1175             :         Message*& reply__) -> PAPZCTreeManagerChild::Result
    1176             : {
    1177           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
    1178             :     return MsgNotKnown;
    1179             : }
    1180             : 
    1181           0 : auto PAPZCTreeManagerChild::GetProtocolTypeId() -> int32_t
    1182             : {
    1183           0 :     return PAPZCTreeManagerMsgStart;
    1184             : }
    1185             : 
    1186           0 : auto PAPZCTreeManagerChild::ProtocolName() const -> const char*
    1187             : {
    1188           0 :     return "PAPZCTreeManagerChild";
    1189             : }
    1190             : 
    1191           0 : auto PAPZCTreeManagerChild::DestroySubtree(ActorDestroyReason why) -> void
    1192             : {
    1193             :     // Unregister from our manager.
    1194           0 :     Unregister(Id());
    1195             : 
    1196             :     // Reject owning pending promises.
    1197           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
    1198             : 
    1199             :     // Finally, destroy "us".
    1200           0 :     ActorDestroy(why);
    1201           0 : }
    1202             : 
    1203           0 : auto PAPZCTreeManagerChild::DeallocSubtree() -> void
    1204             : {
    1205           0 : }
    1206             : 
    1207           0 : auto PAPZCTreeManagerChild::Write(
    1208             :         const PAPZCTreeManagerChild* v__,
    1209             :         Message* msg__,
    1210             :         bool nullable__) -> void
    1211             : {
    1212             :     int32_t id;
    1213           0 :     if ((!(v__))) {
    1214           0 :         if ((!(nullable__))) {
    1215           0 :             FatalError("NULL actor value passed to non-nullable param");
    1216             :         }
    1217           0 :         id = 0;
    1218             :     }
    1219             :     else {
    1220           0 :         id = (v__)->Id();
    1221           0 :         if ((1) == (id)) {
    1222           0 :             FatalError("actor has been |delete|d");
    1223             :         }
    1224             :     }
    1225             : 
    1226           0 :     Write(id, msg__);
    1227           0 : }
    1228             : 
    1229           0 : auto PAPZCTreeManagerChild::Read(
    1230             :         PAPZCTreeManagerChild** v__,
    1231             :         const Message* msg__,
    1232             :         PickleIterator* iter__,
    1233             :         bool nullable__) -> bool
    1234             : {
    1235           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PAPZCTreeManager", PAPZCTreeManagerMsgStart);
    1236           0 :     if ((actor).isNothing()) {
    1237           0 :         return false;
    1238             :     }
    1239             : 
    1240           0 :     (*(v__)) = static_cast<PAPZCTreeManagerChild*>((actor).value());
    1241           0 :     return true;
    1242             : }
    1243             : 
    1244             : 
    1245             : 
    1246             : } // namespace layers
    1247             : } // namespace mozilla

Generated by: LCOV version 1.13