LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dom/bindings - AnimationPlaybackEvent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 20 35 57.1 %
Date: 2017-07-14 16:53:18 Functions: 8 15 53.3 %
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 AnimationPlaybackEvent.webidl BY Codegen.py - DO NOT EDIT */
       8             : 
       9             : #include "AnimationPlaybackEvent.h"
      10             : #include "AnimationPlaybackEventBinding.h"
      11             : #include "EventBinding.h"
      12             : #include "js/GCAPI.h"
      13             : #include "mozilla/FloatingPoint.h"
      14             : #include "mozilla/dom/AnimationPlaybackEvent.h"
      15             : #include "mozilla/dom/Nullable.h"
      16             : #include "mozilla/dom/PrimitiveConversions.h"
      17             : #include "nsDocument.h"
      18             : 
      19             : namespace mozilla {
      20             : namespace dom {
      21             : 
      22             : 
      23             : NS_IMPL_CYCLE_COLLECTION_CLASS(AnimationPlaybackEvent)
      24             : 
      25           8 : NS_IMPL_ADDREF_INHERITED(AnimationPlaybackEvent, Event)
      26           8 : NS_IMPL_RELEASE_INHERITED(AnimationPlaybackEvent, Event)
      27             : 
      28           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(AnimationPlaybackEvent, Event)
      29           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
      30             : 
      31           2 : NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(AnimationPlaybackEvent, Event)
      32           2 : NS_IMPL_CYCLE_COLLECTION_TRACE_END
      33             : 
      34           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(AnimationPlaybackEvent, Event)
      35           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_END
      36             : 
      37          20 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(AnimationPlaybackEvent)
      38          10 : NS_INTERFACE_MAP_END_INHERITING(Event)
      39             : 
      40           2 : AnimationPlaybackEvent::AnimationPlaybackEvent(mozilla::dom::EventTarget* aOwner)
      41           2 :   : Event(aOwner, nullptr, nullptr)
      42             : {
      43           2 : }
      44             : 
      45           4 : AnimationPlaybackEvent::~AnimationPlaybackEvent()
      46             : {
      47           6 : }
      48             : 
      49             : AnimationPlaybackEvent*
      50           0 : AnimationPlaybackEvent::AsAnimationPlaybackEvent()
      51             : {
      52           0 :   return this;
      53             : }
      54             : 
      55             : JSObject*
      56           0 : AnimationPlaybackEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      57             : {
      58           0 :   return AnimationPlaybackEventBinding::Wrap(aCx, this, aGivenProto);
      59             : }
      60             : 
      61             : already_AddRefed<AnimationPlaybackEvent>
      62           2 : AnimationPlaybackEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const AnimationPlaybackEventInit& aEventInitDict)
      63             : {
      64           4 :   RefPtr<AnimationPlaybackEvent> e = new AnimationPlaybackEvent(aOwner);
      65           2 :   bool trusted = e->Init(aOwner);
      66           2 :   e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable);
      67           2 :   e->mCurrentTime = aEventInitDict.mCurrentTime;
      68           2 :   e->mTimelineTime = aEventInitDict.mTimelineTime;
      69           2 :   e->SetTrusted(trusted);
      70           2 :   e->SetComposed(aEventInitDict.mComposed);
      71           4 :   return e.forget();
      72             : }
      73             : 
      74             : already_AddRefed<AnimationPlaybackEvent>
      75           0 : AnimationPlaybackEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const AnimationPlaybackEventInit& aEventInitDict, ErrorResult& aRv)
      76             : {
      77           0 :   nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports());
      78           0 :   return Constructor(owner, aType, aEventInitDict);
      79             : }
      80             : 
      81             : Nullable<double>
      82           0 : AnimationPlaybackEvent::GetCurrentTime() const
      83             : {
      84           0 :   return mCurrentTime;
      85             : }
      86             : 
      87             : Nullable<double>
      88           0 : AnimationPlaybackEvent::GetTimelineTime() const
      89             : {
      90           0 :   return mTimelineTime;
      91             : }
      92             : 
      93             : 
      94             : } // namespace dom
      95             : } // namespace mozilla

Generated by: LCOV version 1.13