LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - MediaSourceBinding.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 MediaSource.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_MediaSourceBinding_h
       4             : #define mozilla_dom_MediaSourceBinding_h
       5             : 
       6             : #include "js/RootingAPI.h"
       7             : #include "jspubtd.h"
       8             : #include "mozilla/ErrorResult.h"
       9             : #include "mozilla/dom/BindingDeclarations.h"
      10             : #include "mozilla/dom/Nullable.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15             : class MediaSource;
      16             : struct MediaSourceAtoms;
      17             : struct NativePropertyHooks;
      18             : class ProtoAndIfaceCache;
      19             : 
      20             : } // namespace dom
      21             : } // namespace mozilla
      22             : 
      23             : namespace mozilla {
      24             : namespace dom {
      25             : 
      26             : enum class MediaSourceReadyState : uint8_t {
      27             :   Closed,
      28             :   Open,
      29             :   Ended,
      30             :   EndGuard_
      31             : };
      32             : 
      33             : namespace MediaSourceReadyStateValues {
      34             : extern const EnumEntry strings[4];
      35             : } // namespace MediaSourceReadyStateValues
      36             : 
      37             : bool
      38             : ToJSValue(JSContext* aCx, MediaSourceReadyState aArgument, JS::MutableHandle<JS::Value> aValue);
      39             : 
      40             : 
      41             : enum class MediaSourceEndOfStreamError : uint8_t {
      42             :   Network,
      43             :   Decode,
      44             :   EndGuard_
      45             : };
      46             : 
      47             : namespace MediaSourceEndOfStreamErrorValues {
      48             : extern const EnumEntry strings[3];
      49             : } // namespace MediaSourceEndOfStreamErrorValues
      50             : 
      51             : bool
      52             : ToJSValue(JSContext* aCx, MediaSourceEndOfStreamError aArgument, JS::MutableHandle<JS::Value> aValue);
      53             : 
      54             : 
      55             : namespace MediaSourceBinding {
      56             : 
      57             :   typedef mozilla::dom::MediaSource NativeType;
      58             : 
      59             :   bool
      60             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
      61             : 
      62             :   JSObject*
      63             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      64             : 
      65             :   const JSClass*
      66             :   GetJSClass();
      67             : 
      68             :   bool
      69             :   Wrap(JSContext* aCx, mozilla::dom::MediaSource* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      70             : 
      71             :   template <class T>
      72           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      73             :   {
      74           0 :     JS::Rooted<JSObject*> reflector(aCx);
      75           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      76             :   }
      77             : 
      78             :   // We declare this as an array so that retrieving a pointer to this
      79             :   // binding's property hooks only requires compile/link-time resolvable
      80             :   // address arithmetic.  Declaring it as a pointer instead would require
      81             :   // doing a run-time load to fetch a pointer to this binding's property
      82             :   // hooks.  And then structures which embedded a pointer to this structure
      83             :   // would require a run-time load for proper initialization, which would
      84             :   // then induce static constructors.  Lots of static constructors.
      85             :   extern const NativePropertyHooks sNativePropertyHooks[];
      86             : 
      87             :   void
      88             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
      89             : 
      90             :   JS::Handle<JSObject*>
      91             :   GetProtoObjectHandle(JSContext* aCx);
      92             : 
      93             :   JS::Handle<JSObject*>
      94             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
      95             : 
      96             :   JSObject*
      97             :   GetConstructorObject(JSContext* aCx);
      98             : 
      99             : } // namespace MediaSourceBinding
     100             : 
     101             : 
     102             : 
     103             : } // namespace dom
     104             : } // namespace mozilla
     105             : 
     106             : #endif // mozilla_dom_MediaSourceBinding_h

Generated by: LCOV version 1.13