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

Generated by: LCOV version 1.13