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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM ImageCaptureErrorEvent.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_ImageCaptureErrorEventBinding_h
       4             : #define mozilla_dom_ImageCaptureErrorEventBinding_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/ImageCaptureError.h"
      12             : #include "mozilla/dom/Nullable.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : class ImageCaptureError;
      18             : struct ImageCaptureErrorAtoms;
      19             : class ImageCaptureErrorEvent;
      20             : struct ImageCaptureErrorEventAtoms;
      21             : struct ImageCaptureErrorEventInitAtoms;
      22             : struct NativePropertyHooks;
      23             : class ProtoAndIfaceCache;
      24             : 
      25             : } // namespace dom
      26             : } // namespace mozilla
      27             : 
      28             : namespace mozilla {
      29             : namespace dom {
      30             : 
      31           0 : struct ImageCaptureErrorEventInit : public EventInit
      32             : {
      33             :   MOZ_INIT_OUTSIDE_CTOR RefPtr<mozilla::dom::ImageCaptureError> mImageCaptureError;
      34             : 
      35             :   ImageCaptureErrorEventInit();
      36             : 
      37           0 :   explicit inline ImageCaptureErrorEventInit(const FastDictionaryInitializer& )
      38           0 :     : EventInit(FastDictionaryInitializer())
      39             :   {
      40             :     // Do nothing here; this is used by our "Fast" subclass
      41           0 :   }
      42             : 
      43             :   explicit inline ImageCaptureErrorEventInit(const ImageCaptureErrorEventInit& aOther)
      44             :   {
      45             :     *this = aOther;
      46             :   }
      47             : 
      48             :   bool
      49             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      50             : 
      51             :   bool
      52             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      53             : 
      54             :   void
      55             :   TraceDictionary(JSTracer* trc);
      56             : 
      57             :   ImageCaptureErrorEventInit&
      58             :   operator=(const ImageCaptureErrorEventInit& aOther);
      59             : 
      60             : private:
      61             :   static bool
      62             :   InitIds(JSContext* cx, ImageCaptureErrorEventInitAtoms* atomsCache);
      63             : };
      64             : 
      65             : namespace binding_detail {
      66           0 : struct FastImageCaptureErrorEventInit : public ImageCaptureErrorEventInit
      67             : {
      68           0 :   inline FastImageCaptureErrorEventInit()
      69           0 :     : ImageCaptureErrorEventInit(FastDictionaryInitializer())
      70             :   {
      71             :     // Doesn't matter what int we pass to the parent constructor
      72           0 :   }
      73             : };
      74             : } // namespace binding_detail
      75             : 
      76             : 
      77             : namespace ImageCaptureErrorBinding {
      78             : 
      79             :   typedef mozilla::dom::ImageCaptureError NativeType;
      80             : 
      81             :   const JSClass*
      82             :   GetJSClass();
      83             : 
      84             :   bool
      85             :   Wrap(JSContext* aCx, mozilla::dom::ImageCaptureError* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      86             : 
      87             :   template <class T>
      88           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      89             :   {
      90           0 :     JS::Rooted<JSObject*> reflector(aCx);
      91           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      92             :   }
      93             : 
      94             :   // We declare this as an array so that retrieving a pointer to this
      95             :   // binding's property hooks only requires compile/link-time resolvable
      96             :   // address arithmetic.  Declaring it as a pointer instead would require
      97             :   // doing a run-time load to fetch a pointer to this binding's property
      98             :   // hooks.  And then structures which embedded a pointer to this structure
      99             :   // would require a run-time load for proper initialization, which would
     100             :   // then induce static constructors.  Lots of static constructors.
     101             :   extern const NativePropertyHooks sNativePropertyHooks[];
     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             : } // namespace ImageCaptureErrorBinding
     110             : 
     111             : 
     112             : 
     113             : namespace ImageCaptureErrorEventBinding {
     114             : 
     115             :   typedef mozilla::dom::ImageCaptureErrorEvent NativeType;
     116             : 
     117             :   bool
     118             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
     119             : 
     120             :   JSObject*
     121             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
     122             : 
     123             :   const JSClass*
     124             :   GetJSClass();
     125             : 
     126             :   bool
     127             :   Wrap(JSContext* aCx, mozilla::dom::ImageCaptureErrorEvent* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
     128             : 
     129             :   template <class T>
     130           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
     131             :   {
     132           0 :     JS::Rooted<JSObject*> reflector(aCx);
     133           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     134             :   }
     135             : 
     136             :   // We declare this as an array so that retrieving a pointer to this
     137             :   // binding's property hooks only requires compile/link-time resolvable
     138             :   // address arithmetic.  Declaring it as a pointer instead would require
     139             :   // doing a run-time load to fetch a pointer to this binding's property
     140             :   // hooks.  And then structures which embedded a pointer to this structure
     141             :   // would require a run-time load for proper initialization, which would
     142             :   // then induce static constructors.  Lots of static constructors.
     143             :   extern const NativePropertyHooks sNativePropertyHooks[];
     144             : 
     145             :   void
     146             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     147             : 
     148             :   JS::Handle<JSObject*>
     149             :   GetProtoObjectHandle(JSContext* aCx);
     150             : 
     151             :   JS::Handle<JSObject*>
     152             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     153             : 
     154             :   JSObject*
     155             :   GetConstructorObject(JSContext* aCx);
     156             : 
     157             : } // namespace ImageCaptureErrorEventBinding
     158             : 
     159             : 
     160             : 
     161             : } // namespace dom
     162             : } // namespace mozilla
     163             : 
     164             : #endif // mozilla_dom_ImageCaptureErrorEventBinding_h

Generated by: LCOV version 1.13