LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - VRDisplayEventBinding.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 VRDisplayEvent.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_VRDisplayEventBinding_h
       4             : #define mozilla_dom_VRDisplayEventBinding_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/VRDisplay.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : struct NativePropertyHooks;
      18             : class ProtoAndIfaceCache;
      19             : class VRDisplay;
      20             : class VRDisplayEvent;
      21             : struct VRDisplayEventAtoms;
      22             : struct VRDisplayEventInitAtoms;
      23             : 
      24             : } // namespace dom
      25             : } // namespace mozilla
      26             : 
      27             : namespace mozilla {
      28             : namespace dom {
      29             : 
      30             : enum class VRDisplayEventReason : uint8_t {
      31             :   Mounted,
      32             :   Navigation,
      33             :   Requested,
      34             :   Unmounted,
      35             :   EndGuard_
      36             : };
      37             : 
      38             : namespace VRDisplayEventReasonValues {
      39             : extern const EnumEntry strings[5];
      40             : } // namespace VRDisplayEventReasonValues
      41             : 
      42             : bool
      43             : ToJSValue(JSContext* aCx, VRDisplayEventReason aArgument, JS::MutableHandle<JS::Value> aValue);
      44             : 
      45             : 
      46           0 : struct VRDisplayEventInit : public EventInit
      47             : {
      48             :   MOZ_INIT_OUTSIDE_CTOR OwningNonNull<mozilla::dom::VRDisplay> mDisplay;
      49             :   MOZ_INIT_OUTSIDE_CTOR Optional<VRDisplayEventReason> mReason;
      50             : 
      51             :   VRDisplayEventInit();
      52             : 
      53           0 :   explicit inline VRDisplayEventInit(const FastDictionaryInitializer& )
      54           0 :     : EventInit(FastDictionaryInitializer())
      55             :   {
      56             :     // Do nothing here; this is used by our "Fast" subclass
      57           0 :   }
      58             : 
      59             :   explicit inline VRDisplayEventInit(const VRDisplayEventInit& aOther)
      60             :   {
      61             :     *this = aOther;
      62             :   }
      63             : 
      64             :   bool
      65             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      66             : 
      67             :   bool
      68             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      69             : 
      70             :   void
      71             :   TraceDictionary(JSTracer* trc);
      72             : 
      73             :   VRDisplayEventInit&
      74             :   operator=(const VRDisplayEventInit& aOther);
      75             : 
      76             : private:
      77             :   static bool
      78             :   InitIds(JSContext* cx, VRDisplayEventInitAtoms* atomsCache);
      79             : };
      80             : 
      81             : namespace binding_detail {
      82           0 : struct FastVRDisplayEventInit : public VRDisplayEventInit
      83             : {
      84           0 :   inline FastVRDisplayEventInit()
      85           0 :     : VRDisplayEventInit(FastDictionaryInitializer())
      86             :   {
      87             :     // Doesn't matter what int we pass to the parent constructor
      88           0 :   }
      89             : };
      90             : } // namespace binding_detail
      91             : 
      92             : 
      93             : namespace VRDisplayEventBinding {
      94             : 
      95             :   typedef mozilla::dom::VRDisplayEvent NativeType;
      96             : 
      97             :   bool
      98             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
      99             : 
     100             :   JSObject*
     101             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
     102             : 
     103             :   const JSClass*
     104             :   GetJSClass();
     105             : 
     106             :   bool
     107             :   Wrap(JSContext* aCx, mozilla::dom::VRDisplayEvent* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
     108             : 
     109             :   template <class T>
     110           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
     111             :   {
     112           0 :     JS::Rooted<JSObject*> reflector(aCx);
     113           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     114             :   }
     115             : 
     116             :   // We declare this as an array so that retrieving a pointer to this
     117             :   // binding's property hooks only requires compile/link-time resolvable
     118             :   // address arithmetic.  Declaring it as a pointer instead would require
     119             :   // doing a run-time load to fetch a pointer to this binding's property
     120             :   // hooks.  And then structures which embedded a pointer to this structure
     121             :   // would require a run-time load for proper initialization, which would
     122             :   // then induce static constructors.  Lots of static constructors.
     123             :   extern const NativePropertyHooks sNativePropertyHooks[];
     124             : 
     125             :   void
     126             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     127             : 
     128             :   JS::Handle<JSObject*>
     129             :   GetProtoObjectHandle(JSContext* aCx);
     130             : 
     131             :   JS::Handle<JSObject*>
     132             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     133             : 
     134             :   JSObject*
     135             :   GetConstructorObject(JSContext* aCx);
     136             : 
     137             : } // namespace VRDisplayEventBinding
     138             : 
     139             : 
     140             : 
     141             : } // namespace dom
     142             : } // namespace mozilla
     143             : 
     144             : #endif // mozilla_dom_VRDisplayEventBinding_h

Generated by: LCOV version 1.13