LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - MediaKeysBinding.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 MediaKeys.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_MediaKeysBinding_h
       4             : #define mozilla_dom_MediaKeysBinding_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 MediaKeys;
      16             : struct MediaKeysAtoms;
      17             : struct NativePropertyHooks;
      18             : class ProtoAndIfaceCache;
      19             : 
      20             : } // namespace dom
      21             : } // namespace mozilla
      22             : 
      23             : namespace mozilla {
      24             : namespace dom {
      25             : 
      26             : enum class MediaKeySessionType : uint8_t {
      27             :   Temporary,
      28             :   Persistent_license,
      29             :   EndGuard_
      30             : };
      31             : 
      32             : namespace MediaKeySessionTypeValues {
      33             : extern const EnumEntry strings[3];
      34             : } // namespace MediaKeySessionTypeValues
      35             : 
      36             : bool
      37             : ToJSValue(JSContext* aCx, MediaKeySessionType aArgument, JS::MutableHandle<JS::Value> aValue);
      38             : 
      39             : 
      40             : namespace MediaKeysBinding {
      41             : 
      42             :   typedef mozilla::dom::MediaKeys NativeType;
      43             : 
      44             :   JSObject*
      45             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      46             : 
      47             :   const JSClass*
      48             :   GetJSClass();
      49             : 
      50             :   bool
      51             :   Wrap(JSContext* aCx, mozilla::dom::MediaKeys* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      52             : 
      53             :   template <class T>
      54           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      55             :   {
      56           0 :     JS::Rooted<JSObject*> reflector(aCx);
      57           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      58             :   }
      59             : 
      60             :   // We declare this as an array so that retrieving a pointer to this
      61             :   // binding's property hooks only requires compile/link-time resolvable
      62             :   // address arithmetic.  Declaring it as a pointer instead would require
      63             :   // doing a run-time load to fetch a pointer to this binding's property
      64             :   // hooks.  And then structures which embedded a pointer to this structure
      65             :   // would require a run-time load for proper initialization, which would
      66             :   // then induce static constructors.  Lots of static constructors.
      67             :   extern const NativePropertyHooks sNativePropertyHooks[];
      68             : 
      69             :   void
      70             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
      71             : 
      72             :   JS::Handle<JSObject*>
      73             :   GetProtoObjectHandle(JSContext* aCx);
      74             : 
      75             :   JS::Handle<JSObject*>
      76             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
      77             : 
      78             :   JSObject*
      79             :   GetConstructorObject(JSContext* aCx);
      80             : 
      81             : } // namespace MediaKeysBinding
      82             : 
      83             : 
      84             : 
      85             : } // namespace dom
      86             : } // namespace mozilla
      87             : 
      88             : #endif // mozilla_dom_MediaKeysBinding_h

Generated by: LCOV version 1.13