LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dom/bindings - PluginCrashedEvent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 54 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 20 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 PluginCrashedEvent.webidl BY Codegen.py - DO NOT EDIT */
       8             : 
       9             : #include "EventBinding.h"
      10             : #include "PluginCrashedEvent.h"
      11             : #include "PluginCrashedEventBinding.h"
      12             : #include "js/GCAPI.h"
      13             : #include "mozilla/dom/Nullable.h"
      14             : #include "mozilla/dom/PluginCrashedEvent.h"
      15             : #include "mozilla/dom/PrimitiveConversions.h"
      16             : 
      17             : namespace mozilla {
      18             : namespace dom {
      19             : 
      20             : 
      21             : NS_IMPL_CYCLE_COLLECTION_CLASS(PluginCrashedEvent)
      22             : 
      23           0 : NS_IMPL_ADDREF_INHERITED(PluginCrashedEvent, Event)
      24           0 : NS_IMPL_RELEASE_INHERITED(PluginCrashedEvent, Event)
      25             : 
      26           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(PluginCrashedEvent, Event)
      27           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
      28             : 
      29           0 : NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(PluginCrashedEvent, Event)
      30           0 : NS_IMPL_CYCLE_COLLECTION_TRACE_END
      31             : 
      32           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(PluginCrashedEvent, Event)
      33           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_END
      34             : 
      35           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(PluginCrashedEvent)
      36           0 : NS_INTERFACE_MAP_END_INHERITING(Event)
      37             : 
      38           0 : PluginCrashedEvent::PluginCrashedEvent(mozilla::dom::EventTarget* aOwner)
      39           0 :   : Event(aOwner, nullptr, nullptr)
      40             : {
      41           0 : }
      42             : 
      43           0 : PluginCrashedEvent::~PluginCrashedEvent()
      44             : {
      45           0 : }
      46             : 
      47             : PluginCrashedEvent*
      48           0 : PluginCrashedEvent::AsPluginCrashedEvent()
      49             : {
      50           0 :   return this;
      51             : }
      52             : 
      53             : JSObject*
      54           0 : PluginCrashedEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      55             : {
      56           0 :   return PluginCrashedEventBinding::Wrap(aCx, this, aGivenProto);
      57             : }
      58             : 
      59             : already_AddRefed<PluginCrashedEvent>
      60           0 : PluginCrashedEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const PluginCrashedEventInit& aEventInitDict)
      61             : {
      62           0 :   RefPtr<PluginCrashedEvent> e = new PluginCrashedEvent(aOwner);
      63           0 :   bool trusted = e->Init(aOwner);
      64           0 :   e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable);
      65           0 :   e->mPluginID = aEventInitDict.mPluginID;
      66           0 :   e->mPluginDumpID = aEventInitDict.mPluginDumpID;
      67           0 :   e->mPluginName = aEventInitDict.mPluginName;
      68           0 :   e->mBrowserDumpID = aEventInitDict.mBrowserDumpID;
      69           0 :   e->mPluginFilename = aEventInitDict.mPluginFilename;
      70           0 :   e->mSubmittedCrashReport = aEventInitDict.mSubmittedCrashReport;
      71           0 :   e->mGmpPlugin = aEventInitDict.mGmpPlugin;
      72           0 :   e->SetTrusted(trusted);
      73           0 :   e->SetComposed(aEventInitDict.mComposed);
      74           0 :   return e.forget();
      75             : }
      76             : 
      77             : already_AddRefed<PluginCrashedEvent>
      78           0 : PluginCrashedEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const PluginCrashedEventInit& 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             : uint32_t
      85           0 : PluginCrashedEvent::PluginID() const
      86             : {
      87           0 :   return mPluginID;
      88             : }
      89             : 
      90             : void
      91           0 : PluginCrashedEvent::GetPluginDumpID(nsString& aRetVal) const
      92             : {
      93           0 :   aRetVal = mPluginDumpID;
      94           0 : }
      95             : 
      96             : void
      97           0 : PluginCrashedEvent::GetPluginName(nsString& aRetVal) const
      98             : {
      99           0 :   aRetVal = mPluginName;
     100           0 : }
     101             : 
     102             : void
     103           0 : PluginCrashedEvent::GetBrowserDumpID(nsString& aRetVal) const
     104             : {
     105           0 :   aRetVal = mBrowserDumpID;
     106           0 : }
     107             : 
     108             : void
     109           0 : PluginCrashedEvent::GetPluginFilename(nsString& aRetVal) const
     110             : {
     111           0 :   aRetVal = mPluginFilename;
     112           0 : }
     113             : 
     114             : bool
     115           0 : PluginCrashedEvent::SubmittedCrashReport() const
     116             : {
     117           0 :   return mSubmittedCrashReport;
     118             : }
     119             : 
     120             : bool
     121           0 : PluginCrashedEvent::GmpPlugin() const
     122             : {
     123           0 :   return mGmpPlugin;
     124             : }
     125             : 
     126             : 
     127             : } // namespace dom
     128             : } // namespace mozilla

Generated by: LCOV version 1.13