LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dom/bindings - PerformanceEntryEvent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 50 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 19 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim:set ts=2 sw=2 sts=2 et cindent: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : /* THIS FILE IS AUTOGENERATED FROM PerformanceEntryEvent.webidl BY Codegen.py - DO NOT EDIT */
       8             : 
       9             : #include "EventBinding.h"
      10             : #include "PerformanceEntryEvent.h"
      11             : #include "PerformanceEntryEventBinding.h"
      12             : #include "js/GCAPI.h"
      13             : #include "mozilla/FloatingPoint.h"
      14             : #include "mozilla/dom/Nullable.h"
      15             : #include "mozilla/dom/PerformanceEntryEvent.h"
      16             : #include "mozilla/dom/PrimitiveConversions.h"
      17             : 
      18             : namespace mozilla {
      19             : namespace dom {
      20             : 
      21             : 
      22             : NS_IMPL_CYCLE_COLLECTION_CLASS(PerformanceEntryEvent)
      23             : 
      24           0 : NS_IMPL_ADDREF_INHERITED(PerformanceEntryEvent, Event)
      25           0 : NS_IMPL_RELEASE_INHERITED(PerformanceEntryEvent, Event)
      26             : 
      27           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(PerformanceEntryEvent, Event)
      28           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
      29             : 
      30           0 : NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(PerformanceEntryEvent, Event)
      31           0 : NS_IMPL_CYCLE_COLLECTION_TRACE_END
      32             : 
      33           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(PerformanceEntryEvent, Event)
      34           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_END
      35             : 
      36           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(PerformanceEntryEvent)
      37           0 : NS_INTERFACE_MAP_END_INHERITING(Event)
      38             : 
      39           0 : PerformanceEntryEvent::PerformanceEntryEvent(mozilla::dom::EventTarget* aOwner)
      40           0 :   : Event(aOwner, nullptr, nullptr)
      41             : {
      42           0 : }
      43             : 
      44           0 : PerformanceEntryEvent::~PerformanceEntryEvent()
      45             : {
      46           0 : }
      47             : 
      48             : PerformanceEntryEvent*
      49           0 : PerformanceEntryEvent::AsPerformanceEntryEvent()
      50             : {
      51           0 :   return this;
      52             : }
      53             : 
      54             : JSObject*
      55           0 : PerformanceEntryEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      56             : {
      57           0 :   return PerformanceEntryEventBinding::Wrap(aCx, this, aGivenProto);
      58             : }
      59             : 
      60             : already_AddRefed<PerformanceEntryEvent>
      61           0 : PerformanceEntryEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const PerformanceEntryEventInit& aEventInitDict)
      62             : {
      63           0 :   RefPtr<PerformanceEntryEvent> e = new PerformanceEntryEvent(aOwner);
      64           0 :   bool trusted = e->Init(aOwner);
      65           0 :   e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable);
      66           0 :   e->mName = aEventInitDict.mName;
      67           0 :   e->mEntryType = aEventInitDict.mEntryType;
      68           0 :   e->mStartTime = aEventInitDict.mStartTime;
      69           0 :   e->mDuration = aEventInitDict.mDuration;
      70           0 :   e->mEpoch = aEventInitDict.mEpoch;
      71           0 :   e->mOrigin = aEventInitDict.mOrigin;
      72           0 :   e->SetTrusted(trusted);
      73           0 :   e->SetComposed(aEventInitDict.mComposed);
      74           0 :   return e.forget();
      75             : }
      76             : 
      77             : already_AddRefed<PerformanceEntryEvent>
      78           0 : PerformanceEntryEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const PerformanceEntryEventInit& aEventInitDict, ErrorResult& aRv)
      79             : {
      80           0 :   nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports());
      81           0 :   return Constructor(owner, aType, aEventInitDict);
      82             : }
      83             : 
      84             : void
      85           0 : PerformanceEntryEvent::GetName(nsString& aRetVal) const
      86             : {
      87           0 :   aRetVal = mName;
      88           0 : }
      89             : 
      90             : void
      91           0 : PerformanceEntryEvent::GetEntryType(nsString& aRetVal) const
      92             : {
      93           0 :   aRetVal = mEntryType;
      94           0 : }
      95             : 
      96             : double
      97           0 : PerformanceEntryEvent::StartTime() const
      98             : {
      99           0 :   return mStartTime;
     100             : }
     101             : 
     102             : double
     103           0 : PerformanceEntryEvent::Duration() const
     104             : {
     105           0 :   return mDuration;
     106             : }
     107             : 
     108             : double
     109           0 : PerformanceEntryEvent::Epoch() const
     110             : {
     111           0 :   return mEpoch;
     112             : }
     113             : 
     114             : void
     115           0 : PerformanceEntryEvent::GetOrigin(nsString& aRetVal) const
     116             : {
     117           0 :   aRetVal = mOrigin;
     118           0 : }
     119             : 
     120             : 
     121             : } // namespace dom
     122             : } // namespace mozilla

Generated by: LCOV version 1.13