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

Generated by: LCOV version 1.13