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

Generated by: LCOV version 1.13