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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM DesktopNotification.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_DesktopNotificationBinding_h
       4             : #define mozilla_dom_DesktopNotificationBinding_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 DesktopNotification;
      16             : struct DesktopNotificationAtoms;
      17             : class DesktopNotificationCenter;
      18             : struct DesktopNotificationCenterAtoms;
      19             : struct NativePropertyHooks;
      20             : class ProtoAndIfaceCache;
      21             : 
      22             : } // namespace dom
      23             : } // namespace mozilla
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : 
      28             : namespace DesktopNotificationBinding {
      29             : 
      30             :   typedef mozilla::dom::DesktopNotification 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::DesktopNotification* 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 DesktopNotificationBinding
      70             : 
      71             : 
      72             : 
      73             : namespace DesktopNotificationCenterBinding {
      74             : 
      75             :   typedef mozilla::dom::DesktopNotificationCenter NativeType;
      76             : 
      77             :   JSObject*
      78             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      79             : 
      80             :   const JSClass*
      81             :   GetJSClass();
      82             : 
      83             :   bool
      84             :   Wrap(JSContext* aCx, mozilla::dom::DesktopNotificationCenter* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      85             : 
      86             :   template <class T>
      87           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      88             :   {
      89           0 :     JS::Rooted<JSObject*> reflector(aCx);
      90           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      91             :   }
      92             : 
      93             :   // We declare this as an array so that retrieving a pointer to this
      94             :   // binding's property hooks only requires compile/link-time resolvable
      95             :   // address arithmetic.  Declaring it as a pointer instead would require
      96             :   // doing a run-time load to fetch a pointer to this binding's property
      97             :   // hooks.  And then structures which embedded a pointer to this structure
      98             :   // would require a run-time load for proper initialization, which would
      99             :   // then induce static constructors.  Lots of static constructors.
     100             :   extern const NativePropertyHooks sNativePropertyHooks[];
     101             : 
     102             :   void
     103             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     104             : 
     105             :   JS::Handle<JSObject*>
     106             :   GetProtoObjectHandle(JSContext* aCx);
     107             : 
     108             :   JS::Handle<JSObject*>
     109             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     110             : 
     111             :   JSObject*
     112             :   GetConstructorObject(JSContext* aCx);
     113             : 
     114             : } // namespace DesktopNotificationCenterBinding
     115             : 
     116             : 
     117             : 
     118             : } // namespace dom
     119             : } // namespace mozilla
     120             : 
     121             : #endif // mozilla_dom_DesktopNotificationBinding_h

Generated by: LCOV version 1.13