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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM ExtendableEvent.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_ExtendableEventBinding_h
       4             : #define mozilla_dom_ExtendableEventBinding_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             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16             : struct NativePropertyHooks;
      17             : class ProtoAndIfaceCache;
      18             : 
      19             : namespace workers {
      20             : 
      21             : class ExtendableEvent;
      22             : struct ExtendableEventAtoms;
      23             : 
      24             : } // namespace workers
      25             : 
      26             : } // namespace dom
      27             : } // namespace mozilla
      28             : 
      29             : namespace mozilla {
      30             : namespace dom {
      31             : 
      32             : struct ExtendableEventInit : public EventInit
      33             : {
      34             :   ExtendableEventInit();
      35             : 
      36           0 :   explicit inline ExtendableEventInit(const FastDictionaryInitializer& )
      37           0 :     : EventInit(FastDictionaryInitializer())
      38             :   {
      39             :     // Do nothing here; this is used by our "Fast" subclass
      40           0 :   }
      41             : 
      42             :   explicit inline ExtendableEventInit(const ExtendableEventInit& aOther)
      43             :   {
      44             :     *this = aOther;
      45             :   }
      46             : 
      47             :   bool
      48             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      49             : 
      50             :   bool
      51             :   Init(const nsAString& aJSON);
      52             : 
      53             :   bool
      54             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      55             : 
      56             :   bool
      57             :   ToJSON(nsAString& aJSON) const;
      58             : 
      59             :   void
      60             :   TraceDictionary(JSTracer* trc);
      61             : 
      62             :   ExtendableEventInit&
      63             :   operator=(const ExtendableEventInit& aOther);
      64             : };
      65             : 
      66             : namespace binding_detail {
      67             : struct FastExtendableEventInit : public ExtendableEventInit
      68             : {
      69           0 :   inline FastExtendableEventInit()
      70           0 :     : ExtendableEventInit(FastDictionaryInitializer())
      71             :   {
      72             :     // Doesn't matter what int we pass to the parent constructor
      73           0 :   }
      74             : };
      75             : } // namespace binding_detail
      76             : 
      77             : 
      78             : namespace ExtendableEventBinding {
      79             : 
      80             :   typedef mozilla::dom::workers::ExtendableEvent NativeType;
      81             : 
      82             :   bool
      83             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
      84             : 
      85             :   const JSClass*
      86             :   GetJSClass();
      87             : 
      88             :   bool
      89             :   Wrap(JSContext* aCx, mozilla::dom::workers::ExtendableEvent* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      90             : 
      91             :   template <class T>
      92           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      93             :   {
      94           0 :     JS::Rooted<JSObject*> reflector(aCx);
      95           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      96             :   }
      97             : 
      98             :   void
      99             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     100             : 
     101             :   JS::Handle<JSObject*>
     102             :   GetProtoObjectHandle(JSContext* aCx);
     103             : 
     104             :   JSObject*
     105             :   GetProtoObject(JSContext* aCx);
     106             : 
     107             :   JS::Handle<JSObject*>
     108             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     109             : 
     110             :   JSObject*
     111             :   GetConstructorObject(JSContext* aCx);
     112             : 
     113             : } // namespace ExtendableEventBinding
     114             : 
     115             : 
     116             : 
     117             : } // namespace dom
     118             : } // namespace mozilla
     119             : 
     120             : #endif // mozilla_dom_ExtendableEventBinding_h

Generated by: LCOV version 1.13