LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - FetchEventBinding.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 11 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 FetchEvent.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_FetchEventBinding_h
       4             : #define mozilla_dom_FetchEventBinding_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/Request.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : struct FetchEventInitAtoms;
      18             : struct NativePropertyHooks;
      19             : class ProtoAndIfaceCache;
      20             : class Request;
      21             : 
      22             : namespace workers {
      23             : 
      24             : class FetchEvent;
      25             : struct FetchEventAtoms;
      26             : 
      27             : } // namespace workers
      28             : 
      29             : } // namespace dom
      30             : } // namespace mozilla
      31             : 
      32             : namespace mozilla {
      33             : namespace dom {
      34             : 
      35           0 : struct FetchEventInit : public EventInit
      36             : {
      37             :   MOZ_INIT_OUTSIDE_CTOR nsString mClientId;
      38             :   MOZ_INIT_OUTSIDE_CTOR bool mIsReload;
      39             :   MOZ_INIT_OUTSIDE_CTOR OwningNonNull<mozilla::dom::Request> mRequest;
      40             : 
      41             :   FetchEventInit();
      42             : 
      43           0 :   explicit inline FetchEventInit(const FastDictionaryInitializer& )
      44           0 :     : EventInit(FastDictionaryInitializer())
      45             :   {
      46             :     // Do nothing here; this is used by our "Fast" subclass
      47           0 :   }
      48             : 
      49             :   explicit inline FetchEventInit(const FetchEventInit& aOther)
      50             :   {
      51             :     *this = aOther;
      52             :   }
      53             : 
      54             :   bool
      55             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      56             : 
      57             :   bool
      58             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      59             : 
      60             :   void
      61             :   TraceDictionary(JSTracer* trc);
      62             : 
      63             :   FetchEventInit&
      64             :   operator=(const FetchEventInit& aOther);
      65             : 
      66             : private:
      67             :   static bool
      68             :   InitIds(JSContext* cx, FetchEventInitAtoms* atomsCache);
      69             : };
      70             : 
      71             : namespace binding_detail {
      72           0 : struct FastFetchEventInit : public FetchEventInit
      73             : {
      74           0 :   inline FastFetchEventInit()
      75           0 :     : FetchEventInit(FastDictionaryInitializer())
      76             :   {
      77             :     // Doesn't matter what int we pass to the parent constructor
      78           0 :   }
      79             : };
      80             : } // namespace binding_detail
      81             : 
      82             : 
      83             : namespace FetchEventBinding {
      84             : 
      85             :   typedef mozilla::dom::workers::FetchEvent NativeType;
      86             : 
      87             :   bool
      88             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
      89             : 
      90             :   const JSClass*
      91             :   GetJSClass();
      92             : 
      93             :   bool
      94             :   Wrap(JSContext* aCx, mozilla::dom::workers::FetchEvent* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      95             : 
      96             :   template <class T>
      97           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      98             :   {
      99           0 :     JS::Rooted<JSObject*> reflector(aCx);
     100           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     101             :   }
     102             : 
     103             :   void
     104             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     105             : 
     106             :   JS::Handle<JSObject*>
     107             :   GetProtoObjectHandle(JSContext* aCx);
     108             : 
     109             :   JS::Handle<JSObject*>
     110             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     111             : 
     112             :   JSObject*
     113             :   GetConstructorObject(JSContext* aCx);
     114             : 
     115             : } // namespace FetchEventBinding
     116             : 
     117             : 
     118             : 
     119             : } // namespace dom
     120             : } // namespace mozilla
     121             : 
     122             : #endif // mozilla_dom_FetchEventBinding_h

Generated by: LCOV version 1.13