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

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

Generated by: LCOV version 1.13