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

Generated by: LCOV version 1.13