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

Generated by: LCOV version 1.13