LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - DeviceLightEventBinding.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 DeviceLightEvent.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_DeviceLightEventBinding_h
       4             : #define mozilla_dom_DeviceLightEventBinding_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             : class DeviceLightEvent;
      17             : struct DeviceLightEventAtoms;
      18             : struct DeviceLightEventInitAtoms;
      19             : struct NativePropertyHooks;
      20             : class ProtoAndIfaceCache;
      21             : 
      22             : } // namespace dom
      23             : } // namespace mozilla
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : 
      28             : struct DeviceLightEventInit : public EventInit
      29             : {
      30             :   MOZ_INIT_OUTSIDE_CTOR double mValue;
      31             : 
      32             :   DeviceLightEventInit();
      33             : 
      34           0 :   explicit inline DeviceLightEventInit(const FastDictionaryInitializer& )
      35           0 :     : EventInit(FastDictionaryInitializer())
      36             :   {
      37             :     // Do nothing here; this is used by our "Fast" subclass
      38           0 :   }
      39             : 
      40             :   explicit inline DeviceLightEventInit(const DeviceLightEventInit& aOther)
      41             :   {
      42             :     *this = aOther;
      43             :   }
      44             : 
      45             :   bool
      46             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      47             : 
      48             :   bool
      49             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      50             : 
      51             :   void
      52             :   TraceDictionary(JSTracer* trc);
      53             : 
      54             :   DeviceLightEventInit&
      55             :   operator=(const DeviceLightEventInit& aOther);
      56             : 
      57             : private:
      58             :   static bool
      59             :   InitIds(JSContext* cx, DeviceLightEventInitAtoms* atomsCache);
      60             : };
      61             : 
      62             : namespace binding_detail {
      63             : struct FastDeviceLightEventInit : public DeviceLightEventInit
      64             : {
      65           0 :   inline FastDeviceLightEventInit()
      66           0 :     : DeviceLightEventInit(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 DeviceLightEventBinding {
      75             : 
      76             :   typedef mozilla::dom::DeviceLightEvent NativeType;
      77             : 
      78             :   JSObject*
      79             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      80             : 
      81             :   const JSClass*
      82             :   GetJSClass();
      83             : 
      84             :   bool
      85             :   Wrap(JSContext* aCx, mozilla::dom::DeviceLightEvent* 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             :   JS::Handle<JSObject*>
     110             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     111             : 
     112             :   JSObject*
     113             :   GetConstructorObject(JSContext* aCx);
     114             : 
     115             : } // namespace DeviceLightEventBinding
     116             : 
     117             : 
     118             : 
     119             : } // namespace dom
     120             : } // namespace mozilla
     121             : 
     122             : #endif // mozilla_dom_DeviceLightEventBinding_h

Generated by: LCOV version 1.13