LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - DOMExceptionBinding.h (source / functions) Hit Total Coverage
Test: output.info Lines: 3 6 50.0 %
Date: 2017-07-14 16:53:18 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM DOMException.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_DOMExceptionBinding_h
       4             : #define mozilla_dom_DOMExceptionBinding_h
       5             : 
       6             : #include "js/RootingAPI.h"
       7             : #include "jspubtd.h"
       8             : #include "mozilla/ErrorResult.h"
       9             : #include "mozilla/dom/BindingDeclarations.h"
      10             : #include "mozilla/dom/Nullable.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15             : class DOMException;
      16             : struct DOMExceptionAtoms;
      17             : class Exception;
      18             : struct ExceptionAtoms;
      19             : struct NativePropertyHooks;
      20             : class ProtoAndIfaceCache;
      21             : 
      22             : } // namespace dom
      23             : } // namespace mozilla
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : 
      28             : namespace DOMExceptionBinding {
      29             : 
      30             :   typedef mozilla::dom::DOMException NativeType;
      31             : 
      32             :   JSObject*
      33             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      34             : 
      35             :   const JSClass*
      36             :   GetJSClass();
      37             : 
      38             :   bool
      39             :   Wrap(JSContext* aCx, mozilla::dom::DOMException* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      40             : 
      41             :   template <class T>
      42           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      43             :   {
      44           0 :     JS::Rooted<JSObject*> reflector(aCx);
      45           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      46             :   }
      47             : 
      48             :   // We declare this as an array so that retrieving a pointer to this
      49             :   // binding's property hooks only requires compile/link-time resolvable
      50             :   // address arithmetic.  Declaring it as a pointer instead would require
      51             :   // doing a run-time load to fetch a pointer to this binding's property
      52             :   // hooks.  And then structures which embedded a pointer to this structure
      53             :   // would require a run-time load for proper initialization, which would
      54             :   // then induce static constructors.  Lots of static constructors.
      55             :   extern const NativePropertyHooks sNativePropertyHooks[];
      56             : 
      57             :   void
      58             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
      59             : 
      60             :   JS::Handle<JSObject*>
      61             :   GetProtoObjectHandle(JSContext* aCx);
      62             : 
      63             :   JS::Handle<JSObject*>
      64             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
      65             : 
      66             :   JSObject*
      67             :   GetConstructorObject(JSContext* aCx);
      68             : 
      69             : } // namespace DOMExceptionBinding
      70             : 
      71             : 
      72             : 
      73             : namespace ExceptionBinding {
      74             : 
      75             :   typedef mozilla::dom::Exception NativeType;
      76             : 
      77             :   const JSClass*
      78             :   GetJSClass();
      79             : 
      80             :   bool
      81             :   Wrap(JSContext* aCx, mozilla::dom::Exception* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      82             : 
      83             :   template <class T>
      84        1979 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      85             :   {
      86        3958 :     JS::Rooted<JSObject*> reflector(aCx);
      87        3958 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      88             :   }
      89             : 
      90             :   // We declare this as an array so that retrieving a pointer to this
      91             :   // binding's property hooks only requires compile/link-time resolvable
      92             :   // address arithmetic.  Declaring it as a pointer instead would require
      93             :   // doing a run-time load to fetch a pointer to this binding's property
      94             :   // hooks.  And then structures which embedded a pointer to this structure
      95             :   // would require a run-time load for proper initialization, which would
      96             :   // then induce static constructors.  Lots of static constructors.
      97             :   extern const NativePropertyHooks sNativePropertyHooks[];
      98             : 
      99             :   void
     100             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     101             : 
     102             :   JS::Handle<JSObject*>
     103             :   GetProtoObjectHandle(JSContext* aCx);
     104             : 
     105             : } // namespace ExceptionBinding
     106             : 
     107             : 
     108             : 
     109             : } // namespace dom
     110             : } // namespace mozilla
     111             : 
     112             : #endif // mozilla_dom_DOMExceptionBinding_h

Generated by: LCOV version 1.13