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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM MediaKeyStatusMap.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_MediaKeyStatusMapBinding_h
       4             : #define mozilla_dom_MediaKeyStatusMapBinding_h
       5             : 
       6             : #include "MediaKeyStatusMapBinding.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/IterableIterator.h"
      12             : #include "mozilla/dom/Nullable.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : class MediaKeyStatusMap;
      18             : struct MediaKeyStatusMapAtoms;
      19             : struct NativePropertyHooks;
      20             : class ProtoAndIfaceCache;
      21             : 
      22             : } // namespace dom
      23             : } // namespace mozilla
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : 
      28             : enum class MediaKeyStatus : uint8_t {
      29             :   Usable,
      30             :   Expired,
      31             :   Released,
      32             :   Output_restricted,
      33             :   Output_downscaled,
      34             :   Status_pending,
      35             :   Internal_error,
      36             :   EndGuard_
      37             : };
      38             : 
      39             : namespace MediaKeyStatusValues {
      40             : extern const EnumEntry strings[8];
      41             : } // namespace MediaKeyStatusValues
      42             : 
      43             : bool
      44             : ToJSValue(JSContext* aCx, MediaKeyStatus aArgument, JS::MutableHandle<JS::Value> aValue);
      45             : 
      46             : 
      47             : namespace MediaKeyStatusMapBinding {
      48             : 
      49             :   typedef mozilla::dom::MediaKeyStatusMap NativeType;
      50             : 
      51             :   JSObject*
      52             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      53             : 
      54             :   const JSClass*
      55             :   GetJSClass();
      56             : 
      57             :   bool
      58             :   Wrap(JSContext* aCx, mozilla::dom::MediaKeyStatusMap* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      59             : 
      60             :   template <class T>
      61           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      62             :   {
      63           0 :     JS::Rooted<JSObject*> reflector(aCx);
      64           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      65             :   }
      66             : 
      67             :   // We declare this as an array so that retrieving a pointer to this
      68             :   // binding's property hooks only requires compile/link-time resolvable
      69             :   // address arithmetic.  Declaring it as a pointer instead would require
      70             :   // doing a run-time load to fetch a pointer to this binding's property
      71             :   // hooks.  And then structures which embedded a pointer to this structure
      72             :   // would require a run-time load for proper initialization, which would
      73             :   // then induce static constructors.  Lots of static constructors.
      74             :   extern const NativePropertyHooks sNativePropertyHooks[];
      75             : 
      76             :   void
      77             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
      78             : 
      79             :   JS::Handle<JSObject*>
      80             :   GetProtoObjectHandle(JSContext* aCx);
      81             : 
      82             :   JS::Handle<JSObject*>
      83             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
      84             : 
      85             :   JSObject*
      86             :   GetConstructorObject(JSContext* aCx);
      87             : 
      88             : } // namespace MediaKeyStatusMapBinding
      89             : 
      90             : 
      91             : 
      92             : namespace MediaKeyStatusMapIteratorBinding {
      93             : 
      94             :   typedef mozilla::dom::IterableIterator<mozilla::dom::MediaKeyStatusMap> NativeType;
      95             : 
      96             :   const JSClass*
      97             :   GetJSClass();
      98             : 
      99             :   bool
     100             :   Wrap(JSContext* aCx, mozilla::dom::IterableIterator<mozilla::dom::MediaKeyStatusMap>* aObject, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
     101             : 
     102             :   // We declare this as an array so that retrieving a pointer to this
     103             :   // binding's property hooks only requires compile/link-time resolvable
     104             :   // address arithmetic.  Declaring it as a pointer instead would require
     105             :   // doing a run-time load to fetch a pointer to this binding's property
     106             :   // hooks.  And then structures which embedded a pointer to this structure
     107             :   // would require a run-time load for proper initialization, which would
     108             :   // then induce static constructors.  Lots of static constructors.
     109             :   extern const NativePropertyHooks sNativePropertyHooks[];
     110             : 
     111             :   void
     112             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     113             : 
     114             :   JS::Handle<JSObject*>
     115             :   GetProtoObjectHandle(JSContext* aCx);
     116             : 
     117             : } // namespace MediaKeyStatusMapIteratorBinding
     118             : 
     119             : 
     120             : 
     121             : } // namespace dom
     122             : } // namespace mozilla
     123             : 
     124             : #endif // mozilla_dom_MediaKeyStatusMapBinding_h

Generated by: LCOV version 1.13