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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM PromiseRejectionEvent.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_PromiseRejectionEventBinding_h
       4             : #define mozilla_dom_PromiseRejectionEventBinding_h
       5             : 
       6             : #include "EventBinding.h"
       7             : #include "js/RootingAPI.h"
       8             : #include "jspubtd.h"
       9             : #include "mozilla/ErrorResult.h"
      10             : #include "mozilla/dom/BindingDeclarations.h"
      11             : #include "mozilla/dom/Nullable.h"
      12             : #include "mozilla/dom/Promise.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : struct NativePropertyHooks;
      18             : class Promise;
      19             : class PromiseRejectionEvent;
      20             : struct PromiseRejectionEventAtoms;
      21             : struct PromiseRejectionEventInitAtoms;
      22             : class ProtoAndIfaceCache;
      23             : 
      24             : } // namespace dom
      25             : } // namespace mozilla
      26             : 
      27             : namespace mozilla {
      28             : namespace dom {
      29             : 
      30           0 : struct PromiseRejectionEventInit : public EventInit
      31             : {
      32             :   MOZ_INIT_OUTSIDE_CTOR OwningNonNull<Promise> mPromise;
      33             :   MOZ_INIT_OUTSIDE_CTOR JS::Value mReason;
      34             : 
      35             :   PromiseRejectionEventInit();
      36             : 
      37           0 :   explicit inline PromiseRejectionEventInit(const FastDictionaryInitializer& )
      38           0 :     : EventInit(FastDictionaryInitializer()),
      39           0 :       mReason(JS::UndefinedValue())
      40             :   {
      41             :     // Do nothing here; this is used by our "Fast" subclass
      42           0 :   }
      43             : 
      44             : private:
      45             :   PromiseRejectionEventInit(const PromiseRejectionEventInit&) = delete;
      46             :   PromiseRejectionEventInit& operator=(const PromiseRejectionEventInit&) = delete;
      47             : 
      48             :   static bool
      49             :   InitIds(JSContext* cx, PromiseRejectionEventInitAtoms* atomsCache);
      50             : 
      51             : public:
      52             :   bool
      53             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      54             : 
      55             :   bool
      56             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      57             : 
      58             :   void
      59             :   TraceDictionary(JSTracer* trc);
      60             : };
      61             : 
      62             : namespace binding_detail {
      63           0 : struct FastPromiseRejectionEventInit : public PromiseRejectionEventInit
      64             : {
      65           0 :   inline FastPromiseRejectionEventInit()
      66           0 :     : PromiseRejectionEventInit(FastDictionaryInitializer())
      67             :   {
      68             :     // Doesn't matter what int we pass to the parent constructor
      69           0 :   }
      70             : };
      71             : } // namespace binding_detail
      72             : 
      73             : 
      74             : namespace PromiseRejectionEventBinding {
      75             : 
      76             :   typedef mozilla::dom::PromiseRejectionEvent NativeType;
      77             : 
      78             :   bool
      79             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
      80             : 
      81             :   JSObject*
      82             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      83             : 
      84             :   const JSClass*
      85             :   GetJSClass();
      86             : 
      87             :   bool
      88             :   Wrap(JSContext* aCx, mozilla::dom::PromiseRejectionEvent* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      89             : 
      90             :   template <class T>
      91           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      92             :   {
      93           0 :     JS::Rooted<JSObject*> reflector(aCx);
      94           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      95             :   }
      96             : 
      97             :   // We declare this as an array so that retrieving a pointer to this
      98             :   // binding's property hooks only requires compile/link-time resolvable
      99             :   // address arithmetic.  Declaring it as a pointer instead would require
     100             :   // doing a run-time load to fetch a pointer to this binding's property
     101             :   // hooks.  And then structures which embedded a pointer to this structure
     102             :   // would require a run-time load for proper initialization, which would
     103             :   // then induce static constructors.  Lots of static constructors.
     104             :   extern const NativePropertyHooks sNativePropertyHooks[];
     105             : 
     106             :   void
     107             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     108             : 
     109             :   JS::Handle<JSObject*>
     110             :   GetProtoObjectHandle(JSContext* aCx);
     111             : 
     112             :   JS::Handle<JSObject*>
     113             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     114             : 
     115             :   JSObject*
     116             :   GetConstructorObject(JSContext* aCx);
     117             : 
     118             : } // namespace PromiseRejectionEventBinding
     119             : 
     120             : 
     121             : 
     122             : } // namespace dom
     123             : } // namespace mozilla
     124             : 
     125             : #endif // mozilla_dom_PromiseRejectionEventBinding_h

Generated by: LCOV version 1.13