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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM DOMTokenList.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_DOMTokenListBinding_h
       4             : #define mozilla_dom_DOMTokenListBinding_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/IterableIterator.h"
      11             : #include "mozilla/dom/Nullable.h"
      12             : 
      13             : class nsDOMTokenList;
      14             : struct nsDOMTokenListAtoms;
      15             : 
      16             : namespace mozilla {
      17             : namespace dom {
      18             : 
      19             : struct NativePropertyHooks;
      20             : class ProtoAndIfaceCache;
      21             : 
      22             : } // namespace dom
      23             : } // namespace mozilla
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : 
      28             : namespace DOMTokenListBinding {
      29             : 
      30             :   typedef nsDOMTokenList NativeType;
      31             : 
      32             :   JSObject*
      33             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      34             : 
      35             :   bool
      36             :   Wrap(JSContext* aCx, nsDOMTokenList* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      37             : 
      38             :   template <class T>
      39           8 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      40             :   {
      41          16 :     JS::Rooted<JSObject*> reflector(aCx);
      42          16 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      43             :   }
      44             : 
      45             :   // We declare this as an array so that retrieving a pointer to this
      46             :   // binding's property hooks only requires compile/link-time resolvable
      47             :   // address arithmetic.  Declaring it as a pointer instead would require
      48             :   // doing a run-time load to fetch a pointer to this binding's property
      49             :   // hooks.  And then structures which embedded a pointer to this structure
      50             :   // would require a run-time load for proper initialization, which would
      51             :   // then induce static constructors.  Lots of static constructors.
      52             :   extern const NativePropertyHooks sNativePropertyHooks[];
      53             : 
      54             :   void
      55             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
      56             : 
      57             :   JS::Handle<JSObject*>
      58             :   GetProtoObjectHandle(JSContext* aCx);
      59             : 
      60             :   JS::Handle<JSObject*>
      61             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
      62             : 
      63             :   JSObject*
      64             :   GetConstructorObject(JSContext* aCx);
      65             : 
      66             : } // namespace DOMTokenListBinding
      67             : 
      68             : 
      69             : 
      70             : } // namespace dom
      71             : } // namespace mozilla
      72             : 
      73             : #endif // mozilla_dom_DOMTokenListBinding_h

Generated by: LCOV version 1.13