LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - DOMTypes.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 41 352 11.6 %
Date: 2017-07-14 16:53:18 Functions: 11 71 15.5 %
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/DOMTypes.h"
       8             : 
       9             : 
      10             : //-----------------------------------------------------------------------------
      11             : // Method definitions for the IPDL type |struct MessagePortIdentifier|
      12             : //
      13             : namespace mozilla {
      14             : namespace dom {
      15           0 : MOZ_IMPLICIT MessagePortIdentifier::MessagePortIdentifier() :
      16             :     uuid_(),
      17             :     destinationUuid_(),
      18             :     sequenceId_(),
      19           0 :     neutered_()
      20             : {
      21           0 :     Init();
      22           0 : }
      23             : 
      24           0 : MessagePortIdentifier::~MessagePortIdentifier()
      25             : {
      26           0 : }
      27             : 
      28           0 : auto MessagePortIdentifier::operator==(const MessagePortIdentifier& _o) const -> bool
      29             : {
      30           0 :     if ((!((uuid()) == ((_o).uuid())))) {
      31           0 :         return false;
      32             :     }
      33           0 :     if ((!((destinationUuid()) == ((_o).destinationUuid())))) {
      34           0 :         return false;
      35             :     }
      36           0 :     if ((!((sequenceId()) == ((_o).sequenceId())))) {
      37           0 :         return false;
      38             :     }
      39           0 :     if ((!((neutered()) == ((_o).neutered())))) {
      40           0 :         return false;
      41             :     }
      42           0 :     return true;
      43             : }
      44             : 
      45           0 : auto MessagePortIdentifier::operator!=(const MessagePortIdentifier& _o) const -> bool
      46             : {
      47           0 :     return (!(operator==(_o)));
      48             : }
      49             : 
      50           0 : auto MessagePortIdentifier::Init() -> void
      51             : {
      52           0 : }
      53             : 
      54           0 : auto MessagePortIdentifier::Assign(
      55             :         const nsID& _uuid,
      56             :         const nsID& _destinationUuid,
      57             :         const uint32_t& _sequenceId,
      58             :         const bool& _neutered) -> void
      59             : {
      60           0 :     uuid_ = _uuid;
      61           0 :     destinationUuid_ = _destinationUuid;
      62           0 :     sequenceId_ = _sequenceId;
      63           0 :     neutered_ = _neutered;
      64           0 : }
      65             : 
      66             : } // namespace dom
      67             : } // namespace mozilla
      68             : 
      69             : //-----------------------------------------------------------------------------
      70             : // Method definitions for the IPDL type |struct ClonedMessageData|
      71             : //
      72             : namespace mozilla {
      73             : namespace dom {
      74          86 : MOZ_IMPLICIT ClonedMessageData::ClonedMessageData() :
      75          86 :     data_()
      76             : {
      77          86 :     Init();
      78          86 : }
      79             : 
      80          85 : ClonedMessageData::~ClonedMessageData()
      81             : {
      82          85 : }
      83             : 
      84           0 : auto ClonedMessageData::operator==(const ClonedMessageData& _o) const -> bool
      85             : {
      86           0 :     if ((!((data()) == ((_o).data())))) {
      87           0 :         return false;
      88             :     }
      89           0 :     if ((!((blobs()) == ((_o).blobs())))) {
      90           0 :         return false;
      91             :     }
      92           0 :     if ((!((inputStreams()) == ((_o).inputStreams())))) {
      93           0 :         return false;
      94             :     }
      95           0 :     if ((!((identfiers()) == ((_o).identfiers())))) {
      96           0 :         return false;
      97             :     }
      98           0 :     return true;
      99             : }
     100             : 
     101           0 : auto ClonedMessageData::operator!=(const ClonedMessageData& _o) const -> bool
     102             : {
     103           0 :     return (!(operator==(_o)));
     104             : }
     105             : 
     106          86 : auto ClonedMessageData::Init() -> void
     107             : {
     108          86 : }
     109             : 
     110           0 : auto ClonedMessageData::Assign(
     111             :         const SerializedStructuredCloneBuffer& _data,
     112             :         const nsTArray<IPCBlob>& _blobs,
     113             :         const nsTArray<IPCStream>& _inputStreams,
     114             :         const nsTArray<MessagePortIdentifier>& _identfiers) -> void
     115             : {
     116           0 :     data_ = _data;
     117           0 :     blobs_ = _blobs;
     118           0 :     inputStreams_ = _inputStreams;
     119           0 :     identfiers_ = _identfiers;
     120           0 : }
     121             : 
     122             : } // namespace dom
     123             : } // namespace mozilla
     124             : 
     125             : //-----------------------------------------------------------------------------
     126             : // Method definitions for the IPDL type |union IPCDataTransferData|
     127             : //
     128             : namespace mozilla {
     129             : namespace dom {
     130           0 : auto IPCDataTransferData::MaybeDestroy(Type aNewType) -> bool
     131             : {
     132           0 :     if ((mType) == (T__None)) {
     133           0 :         return true;
     134             :     }
     135           0 :     if ((mType) == (aNewType)) {
     136           0 :         return false;
     137             :     }
     138           0 :     switch (mType) {
     139             :     case TnsString:
     140             :         {
     141           0 :             (ptr_nsString())->~nsString__tdef();
     142           0 :             break;
     143             :         }
     144             :     case TShmem:
     145             :         {
     146           0 :             (ptr_Shmem())->~Shmem__tdef();
     147           0 :             break;
     148             :         }
     149             :     case TIPCBlob:
     150             :         {
     151           0 :             (ptr_IPCBlob())->~IPCBlob__tdef();
     152           0 :             break;
     153             :         }
     154             :     default:
     155             :         {
     156           0 :             mozilla::ipc::LogicError("not reached");
     157           0 :             break;
     158             :         }
     159             :     }
     160           0 :     return true;
     161             : }
     162             : 
     163           0 : MOZ_IMPLICIT IPCDataTransferData::IPCDataTransferData(const nsString& aOther)
     164             : {
     165           0 :     new (mozilla::KnownNotNull, ptr_nsString()) nsString(aOther);
     166           0 :     mType = TnsString;
     167           0 : }
     168             : 
     169           0 : MOZ_IMPLICIT IPCDataTransferData::IPCDataTransferData(Shmem& aOther)
     170             : {
     171           0 :     new (mozilla::KnownNotNull, ptr_Shmem()) Shmem(aOther);
     172           0 :     mType = TShmem;
     173           0 : }
     174             : 
     175           0 : MOZ_IMPLICIT IPCDataTransferData::IPCDataTransferData(const IPCBlob& aOther)
     176             : {
     177           0 :     new (mozilla::KnownNotNull, ptr_IPCBlob()) IPCBlob(aOther);
     178           0 :     mType = TIPCBlob;
     179           0 : }
     180             : 
     181           0 : MOZ_IMPLICIT IPCDataTransferData::IPCDataTransferData(const IPCDataTransferData& aOther)
     182             : {
     183           0 :     (aOther).AssertSanity();
     184           0 :     switch ((aOther).type()) {
     185             :     case TnsString:
     186             :         {
     187           0 :             new (mozilla::KnownNotNull, ptr_nsString()) nsString((aOther).get_nsString());
     188           0 :             break;
     189             :         }
     190             :     case TShmem:
     191             :         {
     192           0 :             new (mozilla::KnownNotNull, ptr_Shmem()) Shmem((aOther).get_Shmem());
     193           0 :             break;
     194             :         }
     195             :     case TIPCBlob:
     196             :         {
     197           0 :             new (mozilla::KnownNotNull, ptr_IPCBlob()) IPCBlob((aOther).get_IPCBlob());
     198           0 :             break;
     199             :         }
     200             :     case T__None:
     201             :         {
     202           0 :             break;
     203             :         }
     204             :     default:
     205             :         {
     206           0 :             mozilla::ipc::LogicError("unreached");
     207           0 :             return;
     208             :         }
     209             :     }
     210           0 :     mType = (aOther).type();
     211             : }
     212             : 
     213           0 : IPCDataTransferData::~IPCDataTransferData()
     214             : {
     215           0 :     static_cast<void>(MaybeDestroy(T__None));
     216           0 : }
     217             : 
     218           0 : auto IPCDataTransferData::operator=(const nsString& aRhs) -> IPCDataTransferData&
     219             : {
     220           0 :     if (MaybeDestroy(TnsString)) {
     221           0 :         new (mozilla::KnownNotNull, ptr_nsString()) nsString;
     222             :     }
     223           0 :     (*(ptr_nsString())) = aRhs;
     224           0 :     mType = TnsString;
     225           0 :     return (*(this));
     226             : }
     227             : 
     228           0 : auto IPCDataTransferData::operator=(Shmem& aRhs) -> IPCDataTransferData&
     229             : {
     230           0 :     if (MaybeDestroy(TShmem)) {
     231           0 :         new (mozilla::KnownNotNull, ptr_Shmem()) Shmem;
     232             :     }
     233           0 :     (*(ptr_Shmem())) = aRhs;
     234           0 :     mType = TShmem;
     235           0 :     return (*(this));
     236             : }
     237             : 
     238           0 : auto IPCDataTransferData::operator=(const IPCBlob& aRhs) -> IPCDataTransferData&
     239             : {
     240           0 :     if (MaybeDestroy(TIPCBlob)) {
     241           0 :         new (mozilla::KnownNotNull, ptr_IPCBlob()) IPCBlob;
     242             :     }
     243           0 :     (*(ptr_IPCBlob())) = aRhs;
     244           0 :     mType = TIPCBlob;
     245           0 :     return (*(this));
     246             : }
     247             : 
     248           0 : auto IPCDataTransferData::operator=(const IPCDataTransferData& aRhs) -> IPCDataTransferData&
     249             : {
     250           0 :     (aRhs).AssertSanity();
     251           0 :     Type t = (aRhs).type();
     252           0 :     switch (t) {
     253             :     case TnsString:
     254             :         {
     255           0 :             if (MaybeDestroy(t)) {
     256           0 :                 new (mozilla::KnownNotNull, ptr_nsString()) nsString;
     257             :             }
     258           0 :             (*(ptr_nsString())) = (aRhs).get_nsString();
     259           0 :             break;
     260             :         }
     261             :     case TShmem:
     262             :         {
     263           0 :             if (MaybeDestroy(t)) {
     264           0 :                 new (mozilla::KnownNotNull, ptr_Shmem()) Shmem;
     265             :             }
     266           0 :             (*(ptr_Shmem())) = (aRhs).get_Shmem();
     267           0 :             break;
     268             :         }
     269             :     case TIPCBlob:
     270             :         {
     271           0 :             if (MaybeDestroy(t)) {
     272           0 :                 new (mozilla::KnownNotNull, ptr_IPCBlob()) IPCBlob;
     273             :             }
     274           0 :             (*(ptr_IPCBlob())) = (aRhs).get_IPCBlob();
     275           0 :             break;
     276             :         }
     277             :     case T__None:
     278             :         {
     279           0 :             static_cast<void>(MaybeDestroy(t));
     280           0 :             break;
     281             :         }
     282             :     default:
     283             :         {
     284           0 :             mozilla::ipc::LogicError("unreached");
     285           0 :             break;
     286             :         }
     287             :     }
     288           0 :     mType = t;
     289           0 :     return (*(this));
     290             : }
     291             : 
     292           0 : auto IPCDataTransferData::operator==(const nsString& aRhs) const -> bool
     293             : {
     294           0 :     return (get_nsString()) == (aRhs);
     295             : }
     296             : 
     297           0 : auto IPCDataTransferData::operator==(Shmem& aRhs) const -> bool
     298             : {
     299           0 :     return (get_Shmem()) == (aRhs);
     300             : }
     301             : 
     302           0 : auto IPCDataTransferData::operator==(const IPCBlob& aRhs) const -> bool
     303             : {
     304           0 :     return (get_IPCBlob()) == (aRhs);
     305             : }
     306             : 
     307           0 : auto IPCDataTransferData::operator==(const IPCDataTransferData& aRhs) const -> bool
     308             : {
     309           0 :     if ((type()) != ((aRhs).type())) {
     310           0 :         return false;
     311             :     }
     312             : 
     313           0 :     switch (type()) {
     314             :     case TnsString:
     315             :         {
     316           0 :             return (get_nsString()) == ((aRhs).get_nsString());
     317             :         }
     318             :     case TShmem:
     319             :         {
     320           0 :             return (get_Shmem()) == ((aRhs).get_Shmem());
     321             :         }
     322             :     case TIPCBlob:
     323             :         {
     324           0 :             return (get_IPCBlob()) == ((aRhs).get_IPCBlob());
     325             :         }
     326             :     default:
     327             :         {
     328           0 :             mozilla::ipc::LogicError("unreached");
     329           0 :             return false;
     330             :         }
     331             :     }
     332             : }
     333             : 
     334           0 : auto IPCDataTransferData::get(nsString* aOutValue) const -> void
     335             : {
     336           0 :     (*(aOutValue)) = get_nsString();
     337           0 : }
     338             : 
     339           0 : auto IPCDataTransferData::get(Shmem* aOutValue) const -> void
     340             : {
     341           0 :     (*(aOutValue)) = get_Shmem();
     342           0 : }
     343             : 
     344           0 : auto IPCDataTransferData::get(IPCBlob* aOutValue) const -> void
     345             : {
     346           0 :     (*(aOutValue)) = get_IPCBlob();
     347           0 : }
     348             : 
     349             : } // namespace dom
     350             : } // namespace mozilla
     351             : 
     352             : //-----------------------------------------------------------------------------
     353             : // Method definitions for the IPDL type |struct IPCDataTransferImage|
     354             : //
     355             : namespace mozilla {
     356             : namespace dom {
     357           0 : MOZ_IMPLICIT IPCDataTransferImage::IPCDataTransferImage() :
     358             :     width_(),
     359             :     height_(),
     360             :     stride_(),
     361           0 :     format_()
     362             : {
     363           0 :     Init();
     364           0 : }
     365             : 
     366           0 : IPCDataTransferImage::~IPCDataTransferImage()
     367             : {
     368           0 : }
     369             : 
     370           0 : auto IPCDataTransferImage::operator==(const IPCDataTransferImage& _o) const -> bool
     371             : {
     372           0 :     if ((!((width()) == ((_o).width())))) {
     373           0 :         return false;
     374             :     }
     375           0 :     if ((!((height()) == ((_o).height())))) {
     376           0 :         return false;
     377             :     }
     378           0 :     if ((!((stride()) == ((_o).stride())))) {
     379           0 :         return false;
     380             :     }
     381           0 :     if ((!((format()) == ((_o).format())))) {
     382           0 :         return false;
     383             :     }
     384           0 :     return true;
     385             : }
     386             : 
     387           0 : auto IPCDataTransferImage::operator!=(const IPCDataTransferImage& _o) const -> bool
     388             : {
     389           0 :     return (!(operator==(_o)));
     390             : }
     391             : 
     392           0 : auto IPCDataTransferImage::Init() -> void
     393             : {
     394           0 : }
     395             : 
     396           0 : auto IPCDataTransferImage::Assign(
     397             :         const uint32_t& _width,
     398             :         const uint32_t& _height,
     399             :         const uint32_t& _stride,
     400             :         const uint8_t& _format) -> void
     401             : {
     402           0 :     width_ = _width;
     403           0 :     height_ = _height;
     404           0 :     stride_ = _stride;
     405           0 :     format_ = _format;
     406           0 : }
     407             : 
     408             : } // namespace dom
     409             : } // namespace mozilla
     410             : 
     411             : //-----------------------------------------------------------------------------
     412             : // Method definitions for the IPDL type |struct IPCDataTransferItem|
     413             : //
     414             : namespace mozilla {
     415             : namespace dom {
     416           0 : MOZ_IMPLICIT IPCDataTransferItem::IPCDataTransferItem() :
     417           0 :     flavor_()
     418             : {
     419           0 :     Init();
     420           0 : }
     421             : 
     422           0 : IPCDataTransferItem::~IPCDataTransferItem()
     423             : {
     424           0 : }
     425             : 
     426           0 : auto IPCDataTransferItem::operator==(const IPCDataTransferItem& _o) const -> bool
     427             : {
     428           0 :     if ((!((flavor()) == ((_o).flavor())))) {
     429           0 :         return false;
     430             :     }
     431           0 :     if ((!((imageDetails()) == ((_o).imageDetails())))) {
     432           0 :         return false;
     433             :     }
     434           0 :     if ((!((data()) == ((_o).data())))) {
     435           0 :         return false;
     436             :     }
     437           0 :     return true;
     438             : }
     439             : 
     440           0 : auto IPCDataTransferItem::operator!=(const IPCDataTransferItem& _o) const -> bool
     441             : {
     442           0 :     return (!(operator==(_o)));
     443             : }
     444             : 
     445           0 : auto IPCDataTransferItem::Init() -> void
     446             : {
     447           0 : }
     448             : 
     449           0 : auto IPCDataTransferItem::Assign(
     450             :         const nsCString& _flavor,
     451             :         const IPCDataTransferImage& _imageDetails,
     452             :         const IPCDataTransferData& _data) -> void
     453             : {
     454           0 :     flavor_ = _flavor;
     455           0 :     imageDetails_ = _imageDetails;
     456           0 :     data_ = _data;
     457           0 : }
     458             : 
     459             : } // namespace dom
     460             : } // namespace mozilla
     461             : 
     462             : //-----------------------------------------------------------------------------
     463             : // Method definitions for the IPDL type |struct IPCDataTransfer|
     464             : //
     465             : namespace mozilla {
     466             : namespace dom {
     467           0 : MOZ_IMPLICIT IPCDataTransfer::IPCDataTransfer()
     468             : {
     469           0 :     Init();
     470           0 : }
     471             : 
     472           0 : IPCDataTransfer::~IPCDataTransfer()
     473             : {
     474           0 : }
     475             : 
     476           0 : auto IPCDataTransfer::operator==(const IPCDataTransfer& _o) const -> bool
     477             : {
     478           0 :     if ((!((items()) == ((_o).items())))) {
     479           0 :         return false;
     480             :     }
     481           0 :     return true;
     482             : }
     483             : 
     484           0 : auto IPCDataTransfer::operator!=(const IPCDataTransfer& _o) const -> bool
     485             : {
     486           0 :     return (!(operator==(_o)));
     487             : }
     488             : 
     489           0 : auto IPCDataTransfer::Init() -> void
     490             : {
     491           0 : }
     492             : 
     493           0 : auto IPCDataTransfer::Assign(const nsTArray<IPCDataTransferItem>& _items) -> void
     494             : {
     495           0 :     items_ = _items;
     496           0 : }
     497             : 
     498             : } // namespace dom
     499             : } // namespace mozilla
     500             : 
     501             : //-----------------------------------------------------------------------------
     502             : // Method definitions for the IPDL type |struct ScreenDetails|
     503             : //
     504             : namespace mozilla {
     505             : namespace dom {
     506           2 : MOZ_IMPLICIT ScreenDetails::ScreenDetails() :
     507             :     rect_(),
     508             :     rectDisplayPix_(),
     509             :     availRect_(),
     510             :     availRectDisplayPix_(),
     511             :     pixelDepth_(),
     512             :     colorDepth_(),
     513             :     contentsScaleFactor_(),
     514           2 :     defaultCSSScaleFactor_()
     515             : {
     516           2 :     Init();
     517           2 : }
     518             : 
     519           8 : ScreenDetails::~ScreenDetails()
     520             : {
     521           8 : }
     522             : 
     523           0 : auto ScreenDetails::operator==(const ScreenDetails& _o) const -> bool
     524             : {
     525           0 :     if ((!((rect()) == ((_o).rect())))) {
     526           0 :         return false;
     527             :     }
     528           0 :     if ((!((rectDisplayPix()) == ((_o).rectDisplayPix())))) {
     529           0 :         return false;
     530             :     }
     531           0 :     if ((!((availRect()) == ((_o).availRect())))) {
     532           0 :         return false;
     533             :     }
     534           0 :     if ((!((availRectDisplayPix()) == ((_o).availRectDisplayPix())))) {
     535           0 :         return false;
     536             :     }
     537           0 :     if ((!((pixelDepth()) == ((_o).pixelDepth())))) {
     538           0 :         return false;
     539             :     }
     540           0 :     if ((!((colorDepth()) == ((_o).colorDepth())))) {
     541           0 :         return false;
     542             :     }
     543           0 :     if ((!((contentsScaleFactor()) == ((_o).contentsScaleFactor())))) {
     544           0 :         return false;
     545             :     }
     546           0 :     if ((!((defaultCSSScaleFactor()) == ((_o).defaultCSSScaleFactor())))) {
     547           0 :         return false;
     548             :     }
     549           0 :     return true;
     550             : }
     551             : 
     552           0 : auto ScreenDetails::operator!=(const ScreenDetails& _o) const -> bool
     553             : {
     554           0 :     return (!(operator==(_o)));
     555             : }
     556             : 
     557           8 : auto ScreenDetails::Init() -> void
     558             : {
     559           8 : }
     560             : 
     561           6 : auto ScreenDetails::Assign(
     562             :         const LayoutDeviceIntRect& _rect,
     563             :         const DesktopIntRect& _rectDisplayPix,
     564             :         const LayoutDeviceIntRect& _availRect,
     565             :         const DesktopIntRect& _availRectDisplayPix,
     566             :         const int32_t& _pixelDepth,
     567             :         const int32_t& _colorDepth,
     568             :         const DesktopToLayoutDeviceScale& _contentsScaleFactor,
     569             :         const CSSToLayoutDeviceScale& _defaultCSSScaleFactor) -> void
     570             : {
     571           6 :     rect_ = _rect;
     572           6 :     rectDisplayPix_ = _rectDisplayPix;
     573           6 :     availRect_ = _availRect;
     574           6 :     availRectDisplayPix_ = _availRectDisplayPix;
     575           6 :     pixelDepth_ = _pixelDepth;
     576           6 :     colorDepth_ = _colorDepth;
     577           6 :     contentsScaleFactor_ = _contentsScaleFactor;
     578           6 :     defaultCSSScaleFactor_ = _defaultCSSScaleFactor;
     579           6 : }
     580             : 
     581             : } // namespace dom
     582             : } // namespace mozilla
     583             : 
     584             : //-----------------------------------------------------------------------------
     585             : // Method definitions for the IPDL type |struct DimensionInfo|
     586             : //
     587             : namespace mozilla {
     588             : namespace dom {
     589           3 : MOZ_IMPLICIT DimensionInfo::DimensionInfo() :
     590             :     rect_(),
     591             :     size_(),
     592             :     orientation_(),
     593             :     clientOffset_(),
     594           3 :     chromeDisp_()
     595             : {
     596           3 :     Init();
     597           3 : }
     598             : 
     599           7 : DimensionInfo::~DimensionInfo()
     600             : {
     601           7 : }
     602             : 
     603           0 : auto DimensionInfo::operator==(const DimensionInfo& _o) const -> bool
     604             : {
     605           0 :     if ((!((rect()) == ((_o).rect())))) {
     606           0 :         return false;
     607             :     }
     608           0 :     if ((!((size()) == ((_o).size())))) {
     609           0 :         return false;
     610             :     }
     611           0 :     if ((!((orientation()) == ((_o).orientation())))) {
     612           0 :         return false;
     613             :     }
     614           0 :     if ((!((clientOffset()) == ((_o).clientOffset())))) {
     615           0 :         return false;
     616             :     }
     617           0 :     if ((!((chromeDisp()) == ((_o).chromeDisp())))) {
     618           0 :         return false;
     619             :     }
     620           0 :     return true;
     621             : }
     622             : 
     623           0 : auto DimensionInfo::operator!=(const DimensionInfo& _o) const -> bool
     624             : {
     625           0 :     return (!(operator==(_o)));
     626             : }
     627             : 
     628           7 : auto DimensionInfo::Init() -> void
     629             : {
     630           7 : }
     631             : 
     632           4 : auto DimensionInfo::Assign(
     633             :         const CSSRect& _rect,
     634             :         const CSSSize& _size,
     635             :         const ScreenOrientationInternal& _orientation,
     636             :         const LayoutDeviceIntPoint& _clientOffset,
     637             :         const LayoutDeviceIntPoint& _chromeDisp) -> void
     638             : {
     639           4 :     rect_ = _rect;
     640           4 :     size_ = _size;
     641           4 :     orientation_ = _orientation;
     642           4 :     clientOffset_ = _clientOffset;
     643           4 :     chromeDisp_ = _chromeDisp;
     644           4 : }
     645             : 
     646             : } // namespace dom
     647             : } // namespace mozilla
     648             : 
     649             : //-----------------------------------------------------------------------------
     650             : // Method definitions for the IPDL type |struct FrameScriptInfo|
     651             : //
     652             : namespace mozilla {
     653             : namespace dom {
     654           0 : MOZ_IMPLICIT FrameScriptInfo::FrameScriptInfo() :
     655             :     url_(),
     656           0 :     runInGlobalScope_()
     657             : {
     658           0 :     Init();
     659           0 : }
     660             : 
     661           0 : FrameScriptInfo::~FrameScriptInfo()
     662             : {
     663           0 : }
     664             : 
     665           0 : auto FrameScriptInfo::operator==(const FrameScriptInfo& _o) const -> bool
     666             : {
     667           0 :     if ((!((url()) == ((_o).url())))) {
     668           0 :         return false;
     669             :     }
     670           0 :     if ((!((runInGlobalScope()) == ((_o).runInGlobalScope())))) {
     671           0 :         return false;
     672             :     }
     673           0 :     return true;
     674             : }
     675             : 
     676           0 : auto FrameScriptInfo::operator!=(const FrameScriptInfo& _o) const -> bool
     677             : {
     678           0 :     return (!(operator==(_o)));
     679             : }
     680             : 
     681           0 : auto FrameScriptInfo::Init() -> void
     682             : {
     683           0 : }
     684             : 
     685           0 : auto FrameScriptInfo::Assign(
     686             :         const nsString& _url,
     687             :         const bool& _runInGlobalScope) -> void
     688             : {
     689           0 :     url_ = _url;
     690           0 :     runInGlobalScope_ = _runInGlobalScope;
     691           0 : }
     692             : 
     693             : } // namespace dom
     694             : } // namespace mozilla
     695             : 
     696             : //-----------------------------------------------------------------------------
     697             : // Method definitions for the IPDL type |struct CreatedWindowInfo|
     698             : //
     699             : namespace mozilla {
     700             : namespace dom {
     701           0 : MOZ_IMPLICIT CreatedWindowInfo::CreatedWindowInfo() :
     702             :     rv_(),
     703             :     windowOpened_(),
     704             :     urlToLoad_(),
     705             :     textureFactoryIdentifier_(),
     706             :     layersId_(),
     707             :     compositorOptions_(),
     708           0 :     maxTouchPoints_()
     709             : {
     710           0 :     Init();
     711           0 : }
     712             : 
     713           0 : CreatedWindowInfo::~CreatedWindowInfo()
     714             : {
     715           0 : }
     716             : 
     717           0 : auto CreatedWindowInfo::operator==(const CreatedWindowInfo& _o) const -> bool
     718             : {
     719           0 :     if ((!((rv()) == ((_o).rv())))) {
     720           0 :         return false;
     721             :     }
     722           0 :     if ((!((windowOpened()) == ((_o).windowOpened())))) {
     723           0 :         return false;
     724             :     }
     725           0 :     if ((!((frameScripts()) == ((_o).frameScripts())))) {
     726           0 :         return false;
     727             :     }
     728           0 :     if ((!((urlToLoad()) == ((_o).urlToLoad())))) {
     729           0 :         return false;
     730             :     }
     731           0 :     if ((!((textureFactoryIdentifier()) == ((_o).textureFactoryIdentifier())))) {
     732           0 :         return false;
     733             :     }
     734           0 :     if ((!((layersId()) == ((_o).layersId())))) {
     735           0 :         return false;
     736             :     }
     737           0 :     if ((!((compositorOptions()) == ((_o).compositorOptions())))) {
     738           0 :         return false;
     739             :     }
     740           0 :     if ((!((maxTouchPoints()) == ((_o).maxTouchPoints())))) {
     741           0 :         return false;
     742             :     }
     743           0 :     if ((!((dimensions()) == ((_o).dimensions())))) {
     744           0 :         return false;
     745             :     }
     746           0 :     return true;
     747             : }
     748             : 
     749           0 : auto CreatedWindowInfo::operator!=(const CreatedWindowInfo& _o) const -> bool
     750             : {
     751           0 :     return (!(operator==(_o)));
     752             : }
     753             : 
     754           0 : auto CreatedWindowInfo::Init() -> void
     755             : {
     756           0 : }
     757             : 
     758           0 : auto CreatedWindowInfo::Assign(
     759             :         const nsresult& _rv,
     760             :         const bool& _windowOpened,
     761             :         const nsTArray<FrameScriptInfo>& _frameScripts,
     762             :         const nsCString& _urlToLoad,
     763             :         const TextureFactoryIdentifier& _textureFactoryIdentifier,
     764             :         const uint64_t& _layersId,
     765             :         const CompositorOptions& _compositorOptions,
     766             :         const uint32_t& _maxTouchPoints,
     767             :         const DimensionInfo& _dimensions) -> void
     768             : {
     769           0 :     rv_ = _rv;
     770           0 :     windowOpened_ = _windowOpened;
     771           0 :     frameScripts_ = _frameScripts;
     772           0 :     urlToLoad_ = _urlToLoad;
     773           0 :     textureFactoryIdentifier_ = _textureFactoryIdentifier;
     774           0 :     layersId_ = _layersId;
     775           0 :     compositorOptions_ = _compositorOptions;
     776           0 :     maxTouchPoints_ = _maxTouchPoints;
     777           0 :     dimensions_ = _dimensions;
     778           0 : }
     779             : 
     780             : } // namespace dom
     781             : } // namespace mozilla

Generated by: LCOV version 1.13