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

Generated by: LCOV version 1.13