LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PColorPickerParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 83 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 16 0.0 %
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/dom/PColorPickerParent.h"
       8             : 
       9             : #include "mozilla/dom/PBrowserParent.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : 
      18             : 
      19           0 : MOZ_IMPLICIT PColorPickerParent::PColorPickerParent() :
      20             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      21           0 :     mState(PColorPicker::__Dead)
      22             : {
      23           0 :     MOZ_COUNT_CTOR(PColorPickerParent);
      24           0 : }
      25             : 
      26           0 : PColorPickerParent::~PColorPickerParent()
      27             : {
      28           0 :     MOZ_COUNT_DTOR(PColorPickerParent);
      29           0 : }
      30             : 
      31           0 : auto PColorPickerParent::Manager() const -> PBrowserParent*
      32             : {
      33           0 :     return static_cast<PBrowserParent*>(IProtocol::Manager());
      34             : }
      35             : 
      36           0 : auto PColorPickerParent::SendUpdate(const nsString& color) -> bool
      37             : {
      38           0 :     IPC::Message* msg__ = PColorPicker::Msg_Update(Id());
      39             : 
      40           0 :     Write(color, msg__);
      41             :     // Sentinel = 'color'
      42           0 :     (msg__)->WriteSentinel(2703551752);
      43             : 
      44             : 
      45             : 
      46             : 
      47           0 :     if (mozilla::ipc::LoggingEnabledFor("PColorPickerParent")) {
      48           0 :         mozilla::ipc::LogMessageForProtocol("PColorPickerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      49             :     }
      50           0 :     AUTO_PROFILER_LABEL("PColorPicker::Msg_Update", OTHER);
      51           0 :     PColorPicker::Transition(PColorPicker::Msg_Update__ID, (&(mState)));
      52             : 
      53           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      54           0 :     return sendok__;
      55             : }
      56             : 
      57           0 : auto PColorPickerParent::Send__delete__(
      58             :         PColorPickerParent* actor,
      59             :         const nsString& color) -> bool
      60             : {
      61           0 :     if ((!(actor))) {
      62           0 :         return false;
      63             :     }
      64             : 
      65           0 :     IPC::Message* msg__ = PColorPicker::Msg___delete__((actor)->Id());
      66             : 
      67           0 :     (actor)->Write(actor, msg__, false);
      68             :     // Sentinel = 'actor'
      69           0 :     (msg__)->WriteSentinel(875202478);
      70           0 :     (actor)->Write(color, msg__);
      71             :     // Sentinel = 'color'
      72           0 :     (msg__)->WriteSentinel(2703551752);
      73             : 
      74             : 
      75             : 
      76           0 :     if (mozilla::ipc::LoggingEnabledFor("PColorPickerParent")) {
      77           0 :         mozilla::ipc::LogMessageForProtocol("PColorPickerParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      78             :     }
      79           0 :     AUTO_PROFILER_LABEL("PColorPicker::Msg___delete__", OTHER);
      80           0 :     PColorPicker::Transition(PColorPicker::Msg___delete____ID, (&((actor)->mState)));
      81             : 
      82           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      83             : 
      84           0 :     IProtocol* mgr = (actor)->Manager();
      85           0 :     (actor)->DestroySubtree(Deletion);
      86           0 :     (actor)->DeallocSubtree();
      87           0 :     (mgr)->RemoveManagee(PColorPickerMsgStart, actor);
      88           0 :     return sendok__;
      89             : }
      90             : 
      91           0 : auto PColorPickerParent::RemoveManagee(
      92             :         int32_t aProtocolId,
      93             :         ProtocolBase* aListener) -> void
      94             : {
      95           0 :     FatalError("unreached");
      96           0 :     return;
      97             : }
      98             : 
      99           0 : auto PColorPickerParent::OnMessageReceived(const Message& msg__) -> PColorPickerParent::Result
     100             : {
     101           0 :     switch ((msg__).type()) {
     102             :     case PColorPicker::Msg_Open__ID:
     103             :         {
     104           0 :             if (mozilla::ipc::LoggingEnabledFor("PColorPickerParent")) {
     105           0 :                 mozilla::ipc::LogMessageForProtocol("PColorPickerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     106             :             }
     107           0 :             AUTO_PROFILER_LABEL("PColorPicker::Msg_Open", OTHER);
     108             : 
     109           0 :             PColorPicker::Transition(PColorPicker::Msg_Open__ID, (&(mState)));
     110           0 :             if ((!(RecvOpen()))) {
     111           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     112             :                 // Error handled in mozilla::ipc::IPCResult
     113           0 :                 return MsgProcessingError;
     114             :             }
     115             : 
     116           0 :             return MsgProcessed;
     117             :         }
     118             :     case PColorPicker::Reply___delete____ID:
     119             :         {
     120           0 :             return MsgProcessed;
     121             :         }
     122             :     default:
     123             :         {
     124           0 :             return MsgNotKnown;
     125             :         }
     126             :     }
     127             : }
     128             : 
     129           0 : auto PColorPickerParent::OnMessageReceived(
     130             :         const Message& msg__,
     131             :         Message*& reply__) -> PColorPickerParent::Result
     132             : {
     133           0 :     return MsgNotKnown;
     134             : }
     135             : 
     136           0 : auto PColorPickerParent::OnCallReceived(
     137             :         const Message& msg__,
     138             :         Message*& reply__) -> PColorPickerParent::Result
     139             : {
     140           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     141             :     return MsgNotKnown;
     142             : }
     143             : 
     144           0 : auto PColorPickerParent::GetProtocolTypeId() -> int32_t
     145             : {
     146           0 :     return PColorPickerMsgStart;
     147             : }
     148             : 
     149           0 : auto PColorPickerParent::ProtocolName() const -> const char*
     150             : {
     151           0 :     return "PColorPickerParent";
     152             : }
     153             : 
     154           0 : auto PColorPickerParent::DestroySubtree(ActorDestroyReason why) -> void
     155             : {
     156             :     // Unregister from our manager.
     157           0 :     Unregister(Id());
     158             : 
     159             :     // Reject owning pending promises.
     160           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     161             : 
     162             :     // Finally, destroy "us".
     163           0 :     ActorDestroy(why);
     164           0 : }
     165             : 
     166           0 : auto PColorPickerParent::DeallocSubtree() -> void
     167             : {
     168           0 : }
     169             : 
     170           0 : auto PColorPickerParent::Write(
     171             :         const PColorPickerParent* v__,
     172             :         Message* msg__,
     173             :         bool nullable__) -> void
     174             : {
     175             :     int32_t id;
     176           0 :     if ((!(v__))) {
     177           0 :         if ((!(nullable__))) {
     178           0 :             FatalError("NULL actor value passed to non-nullable param");
     179             :         }
     180           0 :         id = 0;
     181             :     }
     182             :     else {
     183           0 :         id = (v__)->Id();
     184           0 :         if ((1) == (id)) {
     185           0 :             FatalError("actor has been |delete|d");
     186             :         }
     187             :     }
     188             : 
     189           0 :     Write(id, msg__);
     190           0 : }
     191             : 
     192           0 : auto PColorPickerParent::Read(
     193             :         PColorPickerParent** v__,
     194             :         const Message* msg__,
     195             :         PickleIterator* iter__,
     196             :         bool nullable__) -> bool
     197             : {
     198           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PColorPicker", PColorPickerMsgStart);
     199           0 :     if ((actor).isNothing()) {
     200           0 :         return false;
     201             :     }
     202             : 
     203           0 :     (*(v__)) = static_cast<PColorPickerParent*>((actor).value());
     204           0 :     return true;
     205             : }
     206             : 
     207             : 
     208             : 
     209             : } // namespace dom
     210             : } // namespace mozilla

Generated by: LCOV version 1.13