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

Generated by: LCOV version 1.13