LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDOMNavigatorUserMedia.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 4 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMNavigatorUserMedia.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDOMNavigatorUserMedia_h__
       6             : #define __gen_nsIDOMNavigatorUserMedia_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIVariant_h__
      14             : #include "nsIVariant.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : 
      22             : /* starting interface:    nsIMediaDevice */
      23             : #define NS_IMEDIADEVICE_IID_STR "ba3b2e08-1c07-4cd3-8822-f4d7e35ff2ae"
      24             : 
      25             : #define NS_IMEDIADEVICE_IID \
      26             :   {0xba3b2e08, 0x1c07, 0x4cd3, \
      27             :     { 0x88, 0x22, 0xf4, 0xd7, 0xe3, 0x5f, 0xf2, 0xae }}
      28             : 
      29           0 : class NS_NO_VTABLE nsIMediaDevice : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMEDIADEVICE_IID)
      33             : 
      34             :   /* readonly attribute DOMString type; */
      35             :   NS_IMETHOD GetType(nsAString & aType) = 0;
      36             : 
      37             :   /* readonly attribute DOMString name; */
      38             :   NS_IMETHOD GetName(nsAString & aName) = 0;
      39             : 
      40             :   /* readonly attribute DOMString id; */
      41             :   NS_IMETHOD GetId(nsAString & aId) = 0;
      42             : 
      43             :   /* readonly attribute DOMString mediaSource; */
      44             :   NS_IMETHOD GetMediaSource(nsAString & aMediaSource) = 0;
      45             : 
      46             :   /* readonly attribute DOMString rawId; */
      47             :   NS_IMETHOD GetRawId(nsAString & aRawId) = 0;
      48             : 
      49             :   /* readonly attribute boolean scary; */
      50             :   NS_IMETHOD GetScary(bool *aScary) = 0;
      51             : 
      52             : };
      53             : 
      54             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMediaDevice, NS_IMEDIADEVICE_IID)
      55             : 
      56             : /* Use this macro when declaring classes that implement this interface. */
      57             : #define NS_DECL_NSIMEDIADEVICE \
      58             :   NS_IMETHOD GetType(nsAString & aType) override; \
      59             :   NS_IMETHOD GetName(nsAString & aName) override; \
      60             :   NS_IMETHOD GetId(nsAString & aId) override; \
      61             :   NS_IMETHOD GetMediaSource(nsAString & aMediaSource) override; \
      62             :   NS_IMETHOD GetRawId(nsAString & aRawId) override; \
      63             :   NS_IMETHOD GetScary(bool *aScary) override; 
      64             : 
      65             : /* Use this macro when declaring the members of this interface when the
      66             :    class doesn't implement the interface. This is useful for forwarding. */
      67             : #define NS_DECL_NON_VIRTUAL_NSIMEDIADEVICE \
      68             :   nsresult GetType(nsAString & aType); \
      69             :   nsresult GetName(nsAString & aName); \
      70             :   nsresult GetId(nsAString & aId); \
      71             :   nsresult GetMediaSource(nsAString & aMediaSource); \
      72             :   nsresult GetRawId(nsAString & aRawId); \
      73             :   nsresult GetScary(bool *aScary); 
      74             : 
      75             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      76             : #define NS_FORWARD_NSIMEDIADEVICE(_to) \
      77             :   NS_IMETHOD GetType(nsAString & aType) override { return _to GetType(aType); } \
      78             :   NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
      79             :   NS_IMETHOD GetId(nsAString & aId) override { return _to GetId(aId); } \
      80             :   NS_IMETHOD GetMediaSource(nsAString & aMediaSource) override { return _to GetMediaSource(aMediaSource); } \
      81             :   NS_IMETHOD GetRawId(nsAString & aRawId) override { return _to GetRawId(aRawId); } \
      82             :   NS_IMETHOD GetScary(bool *aScary) override { return _to GetScary(aScary); } 
      83             : 
      84             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      85             : #define NS_FORWARD_SAFE_NSIMEDIADEVICE(_to) \
      86             :   NS_IMETHOD GetType(nsAString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
      87             :   NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
      88             :   NS_IMETHOD GetId(nsAString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
      89             :   NS_IMETHOD GetMediaSource(nsAString & aMediaSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMediaSource(aMediaSource); } \
      90             :   NS_IMETHOD GetRawId(nsAString & aRawId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRawId(aRawId); } \
      91             :   NS_IMETHOD GetScary(bool *aScary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScary(aScary); } 
      92             : 
      93             : #if 0
      94             : /* Use the code below as a template for the implementation class for this interface. */
      95             : 
      96             : /* Header file */
      97             : class nsMediaDevice : public nsIMediaDevice
      98             : {
      99             : public:
     100             :   NS_DECL_ISUPPORTS
     101             :   NS_DECL_NSIMEDIADEVICE
     102             : 
     103             :   nsMediaDevice();
     104             : 
     105             : private:
     106             :   ~nsMediaDevice();
     107             : 
     108             : protected:
     109             :   /* additional members */
     110             : };
     111             : 
     112             : /* Implementation file */
     113             : NS_IMPL_ISUPPORTS(nsMediaDevice, nsIMediaDevice)
     114             : 
     115             : nsMediaDevice::nsMediaDevice()
     116             : {
     117             :   /* member initializers and constructor code */
     118             : }
     119             : 
     120             : nsMediaDevice::~nsMediaDevice()
     121             : {
     122             :   /* destructor code */
     123             : }
     124             : 
     125             : /* readonly attribute DOMString type; */
     126             : NS_IMETHODIMP nsMediaDevice::GetType(nsAString & aType)
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* readonly attribute DOMString name; */
     132             : NS_IMETHODIMP nsMediaDevice::GetName(nsAString & aName)
     133             : {
     134             :     return NS_ERROR_NOT_IMPLEMENTED;
     135             : }
     136             : 
     137             : /* readonly attribute DOMString id; */
     138             : NS_IMETHODIMP nsMediaDevice::GetId(nsAString & aId)
     139             : {
     140             :     return NS_ERROR_NOT_IMPLEMENTED;
     141             : }
     142             : 
     143             : /* readonly attribute DOMString mediaSource; */
     144             : NS_IMETHODIMP nsMediaDevice::GetMediaSource(nsAString & aMediaSource)
     145             : {
     146             :     return NS_ERROR_NOT_IMPLEMENTED;
     147             : }
     148             : 
     149             : /* readonly attribute DOMString rawId; */
     150             : NS_IMETHODIMP nsMediaDevice::GetRawId(nsAString & aRawId)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* readonly attribute boolean scary; */
     156             : NS_IMETHODIMP nsMediaDevice::GetScary(bool *aScary)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* End of implementation class template. */
     162             : #endif
     163             : 
     164             : 
     165             : /* starting interface:    nsIGetUserMediaDevicesSuccessCallback */
     166             : #define NS_IGETUSERMEDIADEVICESSUCCESSCALLBACK_IID_STR "24544878-d35e-4962-8c5f-fb84e97bdfee"
     167             : 
     168             : #define NS_IGETUSERMEDIADEVICESSUCCESSCALLBACK_IID \
     169             :   {0x24544878, 0xd35e, 0x4962, \
     170             :     { 0x8c, 0x5f, 0xfb, 0x84, 0xe9, 0x7b, 0xdf, 0xee }}
     171             : 
     172           0 : class NS_NO_VTABLE nsIGetUserMediaDevicesSuccessCallback : public nsISupports {
     173             :  public:
     174             : 
     175             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGETUSERMEDIADEVICESSUCCESSCALLBACK_IID)
     176             : 
     177             :   /* void onSuccess (in nsIVariant devices); */
     178             :   NS_IMETHOD OnSuccess(nsIVariant *devices) = 0;
     179             : 
     180             : };
     181             : 
     182             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIGetUserMediaDevicesSuccessCallback, NS_IGETUSERMEDIADEVICESSUCCESSCALLBACK_IID)
     183             : 
     184             : /* Use this macro when declaring classes that implement this interface. */
     185             : #define NS_DECL_NSIGETUSERMEDIADEVICESSUCCESSCALLBACK \
     186             :   NS_IMETHOD OnSuccess(nsIVariant *devices) override; 
     187             : 
     188             : /* Use this macro when declaring the members of this interface when the
     189             :    class doesn't implement the interface. This is useful for forwarding. */
     190             : #define NS_DECL_NON_VIRTUAL_NSIGETUSERMEDIADEVICESSUCCESSCALLBACK \
     191             :   nsresult OnSuccess(nsIVariant *devices); 
     192             : 
     193             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     194             : #define NS_FORWARD_NSIGETUSERMEDIADEVICESSUCCESSCALLBACK(_to) \
     195             :   NS_IMETHOD OnSuccess(nsIVariant *devices) override { return _to OnSuccess(devices); } 
     196             : 
     197             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     198             : #define NS_FORWARD_SAFE_NSIGETUSERMEDIADEVICESSUCCESSCALLBACK(_to) \
     199             :   NS_IMETHOD OnSuccess(nsIVariant *devices) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSuccess(devices); } 
     200             : 
     201             : #if 0
     202             : /* Use the code below as a template for the implementation class for this interface. */
     203             : 
     204             : /* Header file */
     205             : class nsGetUserMediaDevicesSuccessCallback : public nsIGetUserMediaDevicesSuccessCallback
     206             : {
     207             : public:
     208             :   NS_DECL_ISUPPORTS
     209             :   NS_DECL_NSIGETUSERMEDIADEVICESSUCCESSCALLBACK
     210             : 
     211             :   nsGetUserMediaDevicesSuccessCallback();
     212             : 
     213             : private:
     214             :   ~nsGetUserMediaDevicesSuccessCallback();
     215             : 
     216             : protected:
     217             :   /* additional members */
     218             : };
     219             : 
     220             : /* Implementation file */
     221             : NS_IMPL_ISUPPORTS(nsGetUserMediaDevicesSuccessCallback, nsIGetUserMediaDevicesSuccessCallback)
     222             : 
     223             : nsGetUserMediaDevicesSuccessCallback::nsGetUserMediaDevicesSuccessCallback()
     224             : {
     225             :   /* member initializers and constructor code */
     226             : }
     227             : 
     228             : nsGetUserMediaDevicesSuccessCallback::~nsGetUserMediaDevicesSuccessCallback()
     229             : {
     230             :   /* destructor code */
     231             : }
     232             : 
     233             : /* void onSuccess (in nsIVariant devices); */
     234             : NS_IMETHODIMP nsGetUserMediaDevicesSuccessCallback::OnSuccess(nsIVariant *devices)
     235             : {
     236             :     return NS_ERROR_NOT_IMPLEMENTED;
     237             : }
     238             : 
     239             : /* End of implementation class template. */
     240             : #endif
     241             : 
     242             : 
     243             : /* starting interface:    nsIDOMGetUserMediaSuccessCallback */
     244             : #define NS_IDOMGETUSERMEDIASUCCESSCALLBACK_IID_STR "f2a144fc-3534-4761-8c5d-989ae720f89a"
     245             : 
     246             : #define NS_IDOMGETUSERMEDIASUCCESSCALLBACK_IID \
     247             :   {0xf2a144fc, 0x3534, 0x4761, \
     248             :     { 0x8c, 0x5d, 0x98, 0x9a, 0xe7, 0x20, 0xf8, 0x9a }}
     249             : 
     250           0 : class NS_NO_VTABLE nsIDOMGetUserMediaSuccessCallback : public nsISupports {
     251             :  public:
     252             : 
     253             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMGETUSERMEDIASUCCESSCALLBACK_IID)
     254             : 
     255             :   /* void onSuccess (in nsISupports value); */
     256             :   NS_IMETHOD OnSuccess(nsISupports *value) = 0;
     257             : 
     258             : };
     259             : 
     260             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMGetUserMediaSuccessCallback, NS_IDOMGETUSERMEDIASUCCESSCALLBACK_IID)
     261             : 
     262             : /* Use this macro when declaring classes that implement this interface. */
     263             : #define NS_DECL_NSIDOMGETUSERMEDIASUCCESSCALLBACK \
     264             :   NS_IMETHOD OnSuccess(nsISupports *value) override; 
     265             : 
     266             : /* Use this macro when declaring the members of this interface when the
     267             :    class doesn't implement the interface. This is useful for forwarding. */
     268             : #define NS_DECL_NON_VIRTUAL_NSIDOMGETUSERMEDIASUCCESSCALLBACK \
     269             :   nsresult OnSuccess(nsISupports *value); 
     270             : 
     271             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     272             : #define NS_FORWARD_NSIDOMGETUSERMEDIASUCCESSCALLBACK(_to) \
     273             :   NS_IMETHOD OnSuccess(nsISupports *value) override { return _to OnSuccess(value); } 
     274             : 
     275             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     276             : #define NS_FORWARD_SAFE_NSIDOMGETUSERMEDIASUCCESSCALLBACK(_to) \
     277             :   NS_IMETHOD OnSuccess(nsISupports *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSuccess(value); } 
     278             : 
     279             : #if 0
     280             : /* Use the code below as a template for the implementation class for this interface. */
     281             : 
     282             : /* Header file */
     283             : class nsDOMGetUserMediaSuccessCallback : public nsIDOMGetUserMediaSuccessCallback
     284             : {
     285             : public:
     286             :   NS_DECL_ISUPPORTS
     287             :   NS_DECL_NSIDOMGETUSERMEDIASUCCESSCALLBACK
     288             : 
     289             :   nsDOMGetUserMediaSuccessCallback();
     290             : 
     291             : private:
     292             :   ~nsDOMGetUserMediaSuccessCallback();
     293             : 
     294             : protected:
     295             :   /* additional members */
     296             : };
     297             : 
     298             : /* Implementation file */
     299             : NS_IMPL_ISUPPORTS(nsDOMGetUserMediaSuccessCallback, nsIDOMGetUserMediaSuccessCallback)
     300             : 
     301             : nsDOMGetUserMediaSuccessCallback::nsDOMGetUserMediaSuccessCallback()
     302             : {
     303             :   /* member initializers and constructor code */
     304             : }
     305             : 
     306             : nsDOMGetUserMediaSuccessCallback::~nsDOMGetUserMediaSuccessCallback()
     307             : {
     308             :   /* destructor code */
     309             : }
     310             : 
     311             : /* void onSuccess (in nsISupports value); */
     312             : NS_IMETHODIMP nsDOMGetUserMediaSuccessCallback::OnSuccess(nsISupports *value)
     313             : {
     314             :     return NS_ERROR_NOT_IMPLEMENTED;
     315             : }
     316             : 
     317             : /* End of implementation class template. */
     318             : #endif
     319             : 
     320             : 
     321             : /* starting interface:    nsIDOMGetUserMediaErrorCallback */
     322             : #define NS_IDOMGETUSERMEDIAERRORCALLBACK_IID_STR "39e96c61-2636-4f0e-918e-9bb64276492a"
     323             : 
     324             : #define NS_IDOMGETUSERMEDIAERRORCALLBACK_IID \
     325             :   {0x39e96c61, 0x2636, 0x4f0e, \
     326             :     { 0x91, 0x8e, 0x9b, 0xb6, 0x42, 0x76, 0x49, 0x2a }}
     327             : 
     328           0 : class NS_NO_VTABLE nsIDOMGetUserMediaErrorCallback : public nsISupports {
     329             :  public:
     330             : 
     331             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMGETUSERMEDIAERRORCALLBACK_IID)
     332             : 
     333             :   /* void onError (in nsISupports error); */
     334             :   NS_IMETHOD OnError(nsISupports *error) = 0;
     335             : 
     336             : };
     337             : 
     338             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMGetUserMediaErrorCallback, NS_IDOMGETUSERMEDIAERRORCALLBACK_IID)
     339             : 
     340             : /* Use this macro when declaring classes that implement this interface. */
     341             : #define NS_DECL_NSIDOMGETUSERMEDIAERRORCALLBACK \
     342             :   NS_IMETHOD OnError(nsISupports *error) override; 
     343             : 
     344             : /* Use this macro when declaring the members of this interface when the
     345             :    class doesn't implement the interface. This is useful for forwarding. */
     346             : #define NS_DECL_NON_VIRTUAL_NSIDOMGETUSERMEDIAERRORCALLBACK \
     347             :   nsresult OnError(nsISupports *error); 
     348             : 
     349             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     350             : #define NS_FORWARD_NSIDOMGETUSERMEDIAERRORCALLBACK(_to) \
     351             :   NS_IMETHOD OnError(nsISupports *error) override { return _to OnError(error); } 
     352             : 
     353             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     354             : #define NS_FORWARD_SAFE_NSIDOMGETUSERMEDIAERRORCALLBACK(_to) \
     355             :   NS_IMETHOD OnError(nsISupports *error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(error); } 
     356             : 
     357             : #if 0
     358             : /* Use the code below as a template for the implementation class for this interface. */
     359             : 
     360             : /* Header file */
     361             : class nsDOMGetUserMediaErrorCallback : public nsIDOMGetUserMediaErrorCallback
     362             : {
     363             : public:
     364             :   NS_DECL_ISUPPORTS
     365             :   NS_DECL_NSIDOMGETUSERMEDIAERRORCALLBACK
     366             : 
     367             :   nsDOMGetUserMediaErrorCallback();
     368             : 
     369             : private:
     370             :   ~nsDOMGetUserMediaErrorCallback();
     371             : 
     372             : protected:
     373             :   /* additional members */
     374             : };
     375             : 
     376             : /* Implementation file */
     377             : NS_IMPL_ISUPPORTS(nsDOMGetUserMediaErrorCallback, nsIDOMGetUserMediaErrorCallback)
     378             : 
     379             : nsDOMGetUserMediaErrorCallback::nsDOMGetUserMediaErrorCallback()
     380             : {
     381             :   /* member initializers and constructor code */
     382             : }
     383             : 
     384             : nsDOMGetUserMediaErrorCallback::~nsDOMGetUserMediaErrorCallback()
     385             : {
     386             :   /* destructor code */
     387             : }
     388             : 
     389             : /* void onError (in nsISupports error); */
     390             : NS_IMETHODIMP nsDOMGetUserMediaErrorCallback::OnError(nsISupports *error)
     391             : {
     392             :     return NS_ERROR_NOT_IMPLEMENTED;
     393             : }
     394             : 
     395             : /* End of implementation class template. */
     396             : #endif
     397             : 
     398             : 
     399             : #endif /* __gen_nsIDOMNavigatorUserMedia_h__ */

Generated by: LCOV version 1.13