LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PAPZParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 4 158 2.5 %
Date: 2017-07-14 16:53:18 Functions: 1 23 4.3 %
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/PAPZParent.h"
       8             : #include "FrameMetrics.h"
       9             : #include "nsRegion.h"
      10             : 
      11             : #include "mozilla/layers/PCompositorBridgeParent.h"
      12             : 
      13             : #include "nsIFile.h"
      14             : #include "GeckoProfiler.h"
      15             : 
      16             : namespace mozilla {
      17             : namespace layers {
      18             : 
      19             : 
      20           0 : auto PAPZParent::Recv__delete__() -> mozilla::ipc::IPCResult
      21             : {
      22           0 :     return IPC_OK();
      23             : }
      24             : 
      25             : 
      26           1 : MOZ_IMPLICIT PAPZParent::PAPZParent() :
      27             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      28           1 :     mState(PAPZ::__Dead)
      29             : {
      30           1 :     MOZ_COUNT_CTOR(PAPZParent);
      31           1 : }
      32             : 
      33           0 : PAPZParent::~PAPZParent()
      34             : {
      35           0 :     MOZ_COUNT_DTOR(PAPZParent);
      36           0 : }
      37             : 
      38           0 : auto PAPZParent::Manager() const -> PCompositorBridgeParent*
      39             : {
      40           0 :     return static_cast<PCompositorBridgeParent*>(IProtocol::Manager());
      41             : }
      42             : 
      43           0 : auto PAPZParent::SendRequestContentRepaint(const FrameMetrics& frame) -> bool
      44             : {
      45           0 :     IPC::Message* msg__ = PAPZ::Msg_RequestContentRepaint(Id());
      46             : 
      47           0 :     Write(frame, msg__);
      48             :     // Sentinel = 'frame'
      49           0 :     (msg__)->WriteSentinel(66854026);
      50             : 
      51             : 
      52             : 
      53             : 
      54           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZParent")) {
      55           0 :         mozilla::ipc::LogMessageForProtocol("PAPZParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      56             :     }
      57           0 :     AUTO_PROFILER_LABEL("PAPZ::Msg_RequestContentRepaint", OTHER);
      58           0 :     PAPZ::Transition(PAPZ::Msg_RequestContentRepaint__ID, (&(mState)));
      59             : 
      60           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      61           0 :     return sendok__;
      62             : }
      63             : 
      64           0 : auto PAPZParent::SendUpdateOverscrollVelocity(
      65             :         const float& aX,
      66             :         const float& aY,
      67             :         const bool& aIsRootContent) -> bool
      68             : {
      69           0 :     IPC::Message* msg__ = PAPZ::Msg_UpdateOverscrollVelocity(Id());
      70             : 
      71           0 :     Write(aX, msg__);
      72             :     // Sentinel = 'aX'
      73           0 :     (msg__)->WriteSentinel(2745208761);
      74           0 :     Write(aY, msg__);
      75             :     // Sentinel = 'aY'
      76           0 :     (msg__)->WriteSentinel(2745208760);
      77           0 :     Write(aIsRootContent, msg__);
      78             :     // Sentinel = 'aIsRootContent'
      79           0 :     (msg__)->WriteSentinel(332943914);
      80             : 
      81             : 
      82             : 
      83             : 
      84           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZParent")) {
      85           0 :         mozilla::ipc::LogMessageForProtocol("PAPZParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      86             :     }
      87           0 :     AUTO_PROFILER_LABEL("PAPZ::Msg_UpdateOverscrollVelocity", OTHER);
      88           0 :     PAPZ::Transition(PAPZ::Msg_UpdateOverscrollVelocity__ID, (&(mState)));
      89             : 
      90           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      91           0 :     return sendok__;
      92             : }
      93             : 
      94           0 : auto PAPZParent::SendUpdateOverscrollOffset(
      95             :         const float& aX,
      96             :         const float& aY,
      97             :         const bool& aIsRootContent) -> bool
      98             : {
      99           0 :     IPC::Message* msg__ = PAPZ::Msg_UpdateOverscrollOffset(Id());
     100             : 
     101           0 :     Write(aX, msg__);
     102             :     // Sentinel = 'aX'
     103           0 :     (msg__)->WriteSentinel(2745208761);
     104           0 :     Write(aY, msg__);
     105             :     // Sentinel = 'aY'
     106           0 :     (msg__)->WriteSentinel(2745208760);
     107           0 :     Write(aIsRootContent, msg__);
     108             :     // Sentinel = 'aIsRootContent'
     109           0 :     (msg__)->WriteSentinel(332943914);
     110             : 
     111             : 
     112             : 
     113             : 
     114           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZParent")) {
     115           0 :         mozilla::ipc::LogMessageForProtocol("PAPZParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     116             :     }
     117           0 :     AUTO_PROFILER_LABEL("PAPZ::Msg_UpdateOverscrollOffset", OTHER);
     118           0 :     PAPZ::Transition(PAPZ::Msg_UpdateOverscrollOffset__ID, (&(mState)));
     119             : 
     120           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     121           0 :     return sendok__;
     122             : }
     123             : 
     124           0 : auto PAPZParent::SendNotifyMozMouseScrollEvent(
     125             :         const ViewID& aScrollId,
     126             :         const nsString& aEvent) -> bool
     127             : {
     128           0 :     IPC::Message* msg__ = PAPZ::Msg_NotifyMozMouseScrollEvent(Id());
     129             : 
     130           0 :     Write(aScrollId, msg__);
     131             :     // Sentinel = 'aScrollId'
     132           0 :     (msg__)->WriteSentinel(4217802004);
     133           0 :     Write(aEvent, msg__);
     134             :     // Sentinel = 'aEvent'
     135           0 :     (msg__)->WriteSentinel(3531117325);
     136             : 
     137             : 
     138             : 
     139             : 
     140           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZParent")) {
     141           0 :         mozilla::ipc::LogMessageForProtocol("PAPZParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     142             :     }
     143           0 :     AUTO_PROFILER_LABEL("PAPZ::Msg_NotifyMozMouseScrollEvent", OTHER);
     144           0 :     PAPZ::Transition(PAPZ::Msg_NotifyMozMouseScrollEvent__ID, (&(mState)));
     145             : 
     146           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     147           0 :     return sendok__;
     148             : }
     149             : 
     150           0 : auto PAPZParent::SendNotifyAPZStateChange(
     151             :         const ScrollableLayerGuid& aGuid,
     152             :         const APZStateChange& aChange,
     153             :         const int& aArg) -> bool
     154             : {
     155           0 :     IPC::Message* msg__ = PAPZ::Msg_NotifyAPZStateChange(Id());
     156             : 
     157           0 :     Write(aGuid, msg__);
     158             :     // Sentinel = 'aGuid'
     159           0 :     (msg__)->WriteSentinel(2369323719);
     160           0 :     Write(aChange, msg__);
     161             :     // Sentinel = 'aChange'
     162           0 :     (msg__)->WriteSentinel(1262903642);
     163           0 :     Write(aArg, msg__);
     164             :     // Sentinel = 'aArg'
     165           0 :     (msg__)->WriteSentinel(3458203231);
     166             : 
     167             : 
     168             : 
     169             : 
     170           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZParent")) {
     171           0 :         mozilla::ipc::LogMessageForProtocol("PAPZParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     172             :     }
     173           0 :     AUTO_PROFILER_LABEL("PAPZ::Msg_NotifyAPZStateChange", OTHER);
     174           0 :     PAPZ::Transition(PAPZ::Msg_NotifyAPZStateChange__ID, (&(mState)));
     175             : 
     176           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     177           0 :     return sendok__;
     178             : }
     179             : 
     180           0 : auto PAPZParent::SendNotifyFlushComplete() -> bool
     181             : {
     182           0 :     IPC::Message* msg__ = PAPZ::Msg_NotifyFlushComplete(Id());
     183             : 
     184             : 
     185             : 
     186             : 
     187             : 
     188           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZParent")) {
     189           0 :         mozilla::ipc::LogMessageForProtocol("PAPZParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     190             :     }
     191           0 :     AUTO_PROFILER_LABEL("PAPZ::Msg_NotifyFlushComplete", OTHER);
     192           0 :     PAPZ::Transition(PAPZ::Msg_NotifyFlushComplete__ID, (&(mState)));
     193             : 
     194           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     195           0 :     return sendok__;
     196             : }
     197             : 
     198           0 : auto PAPZParent::SendNotifyAsyncScrollbarDragRejected(const ViewID& aScrollId) -> bool
     199             : {
     200           0 :     IPC::Message* msg__ = PAPZ::Msg_NotifyAsyncScrollbarDragRejected(Id());
     201             : 
     202           0 :     Write(aScrollId, msg__);
     203             :     // Sentinel = 'aScrollId'
     204           0 :     (msg__)->WriteSentinel(4217802004);
     205             : 
     206             : 
     207             : 
     208             : 
     209           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZParent")) {
     210           0 :         mozilla::ipc::LogMessageForProtocol("PAPZParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     211             :     }
     212           0 :     AUTO_PROFILER_LABEL("PAPZ::Msg_NotifyAsyncScrollbarDragRejected", OTHER);
     213           0 :     PAPZ::Transition(PAPZ::Msg_NotifyAsyncScrollbarDragRejected__ID, (&(mState)));
     214             : 
     215           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     216           0 :     return sendok__;
     217             : }
     218             : 
     219           0 : auto PAPZParent::SendDestroy() -> bool
     220             : {
     221           0 :     IPC::Message* msg__ = PAPZ::Msg_Destroy(Id());
     222             : 
     223             : 
     224             : 
     225             : 
     226             : 
     227           0 :     if (mozilla::ipc::LoggingEnabledFor("PAPZParent")) {
     228           0 :         mozilla::ipc::LogMessageForProtocol("PAPZParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     229             :     }
     230           0 :     AUTO_PROFILER_LABEL("PAPZ::Msg_Destroy", OTHER);
     231           0 :     PAPZ::Transition(PAPZ::Msg_Destroy__ID, (&(mState)));
     232             : 
     233           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     234           0 :     return sendok__;
     235             : }
     236             : 
     237           0 : auto PAPZParent::RemoveManagee(
     238             :         int32_t aProtocolId,
     239             :         ProtocolBase* aListener) -> void
     240             : {
     241           0 :     FatalError("unreached");
     242           0 :     return;
     243             : }
     244             : 
     245           0 : auto PAPZParent::OnMessageReceived(const Message& msg__) -> PAPZParent::Result
     246             : {
     247           0 :     switch ((msg__).type()) {
     248             :     case PAPZ::Msg___delete____ID:
     249             :         {
     250           0 :             if (mozilla::ipc::LoggingEnabledFor("PAPZParent")) {
     251           0 :                 mozilla::ipc::LogMessageForProtocol("PAPZParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     252             :             }
     253           0 :             AUTO_PROFILER_LABEL("PAPZ::Msg___delete__", OTHER);
     254             : 
     255           0 :             PickleIterator iter__(msg__);
     256             :             PAPZParent* actor;
     257             : 
     258           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
     259           0 :                 FatalError("Error deserializing 'PAPZParent'");
     260           0 :                 return MsgValueError;
     261             :             }
     262             :             // Sentinel = 'actor'
     263           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     264           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PAPZParent'");
     265           0 :                 return MsgValueError;
     266             :             }
     267           0 :             (msg__).EndRead(iter__, (msg__).type());
     268           0 :             PAPZ::Transition(PAPZ::Msg___delete____ID, (&(mState)));
     269           0 :             if ((!(Recv__delete__()))) {
     270           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     271             :                 // Error handled in mozilla::ipc::IPCResult
     272           0 :                 return MsgProcessingError;
     273             :             }
     274             : 
     275             : 
     276           0 :             IProtocol* mgr = (actor)->Manager();
     277           0 :             (actor)->DestroySubtree(Deletion);
     278           0 :             (actor)->DeallocSubtree();
     279           0 :             (mgr)->RemoveManagee(PAPZMsgStart, actor);
     280             : 
     281           0 :             return MsgProcessed;
     282             :         }
     283             :     default:
     284             :         {
     285           0 :             return MsgNotKnown;
     286             :         }
     287             :     }
     288             : }
     289             : 
     290           0 : auto PAPZParent::OnMessageReceived(
     291             :         const Message& msg__,
     292             :         Message*& reply__) -> PAPZParent::Result
     293             : {
     294           0 :     return MsgNotKnown;
     295             : }
     296             : 
     297           0 : auto PAPZParent::OnCallReceived(
     298             :         const Message& msg__,
     299             :         Message*& reply__) -> PAPZParent::Result
     300             : {
     301           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     302             :     return MsgNotKnown;
     303             : }
     304             : 
     305           0 : auto PAPZParent::GetProtocolTypeId() -> int32_t
     306             : {
     307           0 :     return PAPZMsgStart;
     308             : }
     309             : 
     310           0 : auto PAPZParent::ProtocolName() const -> const char*
     311             : {
     312           0 :     return "PAPZParent";
     313             : }
     314             : 
     315           0 : auto PAPZParent::DestroySubtree(ActorDestroyReason why) -> void
     316             : {
     317             :     // Unregister from our manager.
     318           0 :     Unregister(Id());
     319             : 
     320             :     // Reject owning pending promises.
     321           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     322             : 
     323             :     // Finally, destroy "us".
     324           0 :     ActorDestroy(why);
     325           0 : }
     326             : 
     327           0 : auto PAPZParent::DeallocSubtree() -> void
     328             : {
     329           0 : }
     330             : 
     331           0 : auto PAPZParent::Write(
     332             :         const PAPZParent* v__,
     333             :         Message* msg__,
     334             :         bool nullable__) -> void
     335             : {
     336             :     int32_t id;
     337           0 :     if ((!(v__))) {
     338           0 :         if ((!(nullable__))) {
     339           0 :             FatalError("NULL actor value passed to non-nullable param");
     340             :         }
     341           0 :         id = 0;
     342             :     }
     343             :     else {
     344           0 :         id = (v__)->Id();
     345           0 :         if ((1) == (id)) {
     346           0 :             FatalError("actor has been |delete|d");
     347             :         }
     348             :     }
     349             : 
     350           0 :     Write(id, msg__);
     351           0 : }
     352             : 
     353           0 : auto PAPZParent::Read(
     354             :         PAPZParent** v__,
     355             :         const Message* msg__,
     356             :         PickleIterator* iter__,
     357             :         bool nullable__) -> bool
     358             : {
     359           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PAPZ", PAPZMsgStart);
     360           0 :     if ((actor).isNothing()) {
     361           0 :         return false;
     362             :     }
     363             : 
     364           0 :     (*(v__)) = static_cast<PAPZParent*>((actor).value());
     365           0 :     return true;
     366             : }
     367             : 
     368             : 
     369             : 
     370             : } // namespace layers
     371             : } // namespace mozilla

Generated by: LCOV version 1.13