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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMediaManager.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIMediaManager_h__
       6             : #define __gen_nsIMediaManager_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsIArray; /* forward declaration */
      18             : 
      19             : class nsIDOMWindow; /* forward declaration */
      20             : 
      21             : #define NS_MEDIAMANAGERSERVICE_CID {0xabc622ea, 0x9655, 0x4123, {0x80, 0xd9, 0x22, 0x62, 0x1b, 0xdd, 0x54, 0x65}}
      22             : #define MEDIAMANAGERSERVICE_CONTRACTID "@mozilla.org/mediaManagerService;1"
      23             : 
      24             : /* starting interface:    nsIMediaManagerService */
      25             : #define NS_IMEDIAMANAGERSERVICE_IID_STR "24b23e01-33fd-401f-ba25-6e52658750b0"
      26             : 
      27             : #define NS_IMEDIAMANAGERSERVICE_IID \
      28             :   {0x24b23e01, 0x33fd, 0x401f, \
      29             :     { 0xba, 0x25, 0x6e, 0x52, 0x65, 0x87, 0x50, 0xb0 }}
      30             : 
      31           0 : class NS_NO_VTABLE nsIMediaManagerService : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMEDIAMANAGERSERVICE_IID)
      35             : 
      36             :   /* readonly attribute nsIArray activeMediaCaptureWindows; */
      37             :   NS_IMETHOD GetActiveMediaCaptureWindows(nsIArray * *aActiveMediaCaptureWindows) = 0;
      38             : 
      39             :   /* void mediaCaptureWindowState (in nsIDOMWindow aWindow, out boolean aVideo, out boolean aAudio, [optional] out boolean aScreenShare, [optional] out boolean aWindowShare, [optional] out boolean aAppShare, [optional] out boolean aBrowserShare); */
      40             :   NS_IMETHOD MediaCaptureWindowState(nsIDOMWindow *aWindow, bool *aVideo, bool *aAudio, bool *aScreenShare = nullptr, bool *aWindowShare = nullptr, bool *aAppShare = nullptr, bool *aBrowserShare = nullptr) = 0;
      41             : 
      42             :   /* void sanitizeDeviceIds (in long long sinceWhen); */
      43             :   NS_IMETHOD SanitizeDeviceIds(int64_t sinceWhen) = 0;
      44             : 
      45             : };
      46             : 
      47             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMediaManagerService, NS_IMEDIAMANAGERSERVICE_IID)
      48             : 
      49             : /* Use this macro when declaring classes that implement this interface. */
      50             : #define NS_DECL_NSIMEDIAMANAGERSERVICE \
      51             :   NS_IMETHOD GetActiveMediaCaptureWindows(nsIArray * *aActiveMediaCaptureWindows) override; \
      52             :   NS_IMETHOD MediaCaptureWindowState(nsIDOMWindow *aWindow, bool *aVideo, bool *aAudio, bool *aScreenShare = nullptr, bool *aWindowShare = nullptr, bool *aAppShare = nullptr, bool *aBrowserShare = nullptr) override; \
      53             :   NS_IMETHOD SanitizeDeviceIds(int64_t sinceWhen) override; 
      54             : 
      55             : /* Use this macro when declaring the members of this interface when the
      56             :    class doesn't implement the interface. This is useful for forwarding. */
      57             : #define NS_DECL_NON_VIRTUAL_NSIMEDIAMANAGERSERVICE \
      58             :   nsresult GetActiveMediaCaptureWindows(nsIArray * *aActiveMediaCaptureWindows); \
      59             :   nsresult MediaCaptureWindowState(nsIDOMWindow *aWindow, bool *aVideo, bool *aAudio, bool *aScreenShare = nullptr, bool *aWindowShare = nullptr, bool *aAppShare = nullptr, bool *aBrowserShare = nullptr); \
      60             :   nsresult SanitizeDeviceIds(int64_t sinceWhen); 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      63             : #define NS_FORWARD_NSIMEDIAMANAGERSERVICE(_to) \
      64             :   NS_IMETHOD GetActiveMediaCaptureWindows(nsIArray * *aActiveMediaCaptureWindows) override { return _to GetActiveMediaCaptureWindows(aActiveMediaCaptureWindows); } \
      65             :   NS_IMETHOD MediaCaptureWindowState(nsIDOMWindow *aWindow, bool *aVideo, bool *aAudio, bool *aScreenShare = nullptr, bool *aWindowShare = nullptr, bool *aAppShare = nullptr, bool *aBrowserShare = nullptr) override { return _to MediaCaptureWindowState(aWindow, aVideo, aAudio, aScreenShare, aWindowShare, aAppShare, aBrowserShare); } \
      66             :   NS_IMETHOD SanitizeDeviceIds(int64_t sinceWhen) override { return _to SanitizeDeviceIds(sinceWhen); } 
      67             : 
      68             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      69             : #define NS_FORWARD_SAFE_NSIMEDIAMANAGERSERVICE(_to) \
      70             :   NS_IMETHOD GetActiveMediaCaptureWindows(nsIArray * *aActiveMediaCaptureWindows) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveMediaCaptureWindows(aActiveMediaCaptureWindows); } \
      71             :   NS_IMETHOD MediaCaptureWindowState(nsIDOMWindow *aWindow, bool *aVideo, bool *aAudio, bool *aScreenShare = nullptr, bool *aWindowShare = nullptr, bool *aAppShare = nullptr, bool *aBrowserShare = nullptr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MediaCaptureWindowState(aWindow, aVideo, aAudio, aScreenShare, aWindowShare, aAppShare, aBrowserShare); } \
      72             :   NS_IMETHOD SanitizeDeviceIds(int64_t sinceWhen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SanitizeDeviceIds(sinceWhen); } 
      73             : 
      74             : #if 0
      75             : /* Use the code below as a template for the implementation class for this interface. */
      76             : 
      77             : /* Header file */
      78             : class nsMediaManagerService : public nsIMediaManagerService
      79             : {
      80             : public:
      81             :   NS_DECL_ISUPPORTS
      82             :   NS_DECL_NSIMEDIAMANAGERSERVICE
      83             : 
      84             :   nsMediaManagerService();
      85             : 
      86             : private:
      87             :   ~nsMediaManagerService();
      88             : 
      89             : protected:
      90             :   /* additional members */
      91             : };
      92             : 
      93             : /* Implementation file */
      94             : NS_IMPL_ISUPPORTS(nsMediaManagerService, nsIMediaManagerService)
      95             : 
      96             : nsMediaManagerService::nsMediaManagerService()
      97             : {
      98             :   /* member initializers and constructor code */
      99             : }
     100             : 
     101             : nsMediaManagerService::~nsMediaManagerService()
     102             : {
     103             :   /* destructor code */
     104             : }
     105             : 
     106             : /* readonly attribute nsIArray activeMediaCaptureWindows; */
     107             : NS_IMETHODIMP nsMediaManagerService::GetActiveMediaCaptureWindows(nsIArray * *aActiveMediaCaptureWindows)
     108             : {
     109             :     return NS_ERROR_NOT_IMPLEMENTED;
     110             : }
     111             : 
     112             : /* void mediaCaptureWindowState (in nsIDOMWindow aWindow, out boolean aVideo, out boolean aAudio, [optional] out boolean aScreenShare, [optional] out boolean aWindowShare, [optional] out boolean aAppShare, [optional] out boolean aBrowserShare); */
     113             : NS_IMETHODIMP nsMediaManagerService::MediaCaptureWindowState(nsIDOMWindow *aWindow, bool *aVideo, bool *aAudio, bool *aScreenShare = nullptr, bool *aWindowShare = nullptr, bool *aAppShare = nullptr, bool *aBrowserShare = nullptr)
     114             : {
     115             :     return NS_ERROR_NOT_IMPLEMENTED;
     116             : }
     117             : 
     118             : /* void sanitizeDeviceIds (in long long sinceWhen); */
     119             : NS_IMETHODIMP nsMediaManagerService::SanitizeDeviceIds(int64_t sinceWhen)
     120             : {
     121             :     return NS_ERROR_NOT_IMPLEMENTED;
     122             : }
     123             : 
     124             : /* End of implementation class template. */
     125             : #endif
     126             : 
     127             : 
     128             : #endif /* __gen_nsIMediaManager_h__ */

Generated by: LCOV version 1.13