DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/dom/media/nsIMediaManager.idl
 */

#ifndef __gen_nsIMediaManager_h__
#define __gen_nsIMediaManager_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIArray; /* forward declaration */

class nsIDOMWindow; /* forward declaration */

#define NS_MEDIAMANAGERSERVICE_CID {0xabc622ea, 0x9655, 0x4123, {0x80, 0xd9, 0x22, 0x62, 0x1b, 0xdd, 0x54, 0x65}}
#define MEDIAMANAGERSERVICE_CONTRACTID "@mozilla.org/mediaManagerService;1"

/* starting interface:    nsIMediaManagerService */
#define NS_IMEDIAMANAGERSERVICE_IID_STR "24b23e01-33fd-401f-ba25-6e52658750b0"

#define NS_IMEDIAMANAGERSERVICE_IID \
  {0x24b23e01, 0x33fd, 0x401f, \
    { 0xba, 0x25, 0x6e, 0x52, 0x65, 0x87, 0x50, 0xb0 }}

class NS_NO_VTABLE nsIMediaManagerService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMEDIAMANAGERSERVICE_IID)

  /* readonly attribute nsIArray activeMediaCaptureWindows; */
  NS_IMETHOD GetActiveMediaCaptureWindows(nsIArray **aActiveMediaCaptureWindows) = 0;

  enum {
    STATE_NOCAPTURE = 0U,
    STATE_CAPTURE_ENABLED = 1U,
    STATE_CAPTURE_DISABLED = 2U
  };

  /* void mediaCaptureWindowState (in nsIDOMWindow aWindow, out unsigned short aCamera, out unsigned short aMicrophone, [optional] out unsigned short aScreenShare, [optional] out unsigned short aWindowShare, [optional] out unsigned short aAppShare, [optional] out unsigned short aBrowserShare); */
  NS_IMETHOD MediaCaptureWindowState(nsIDOMWindow *aWindow, uint16_t *aCamera, uint16_t *aMicrophone, uint16_t *aScreenShare = nullptr, uint16_t *aWindowShare = nullptr, uint16_t *aAppShare = nullptr, uint16_t *aBrowserShare = nullptr) = 0;

  /* void sanitizeDeviceIds (in long long sinceWhen); */
  NS_IMETHOD SanitizeDeviceIds(int64_t sinceWhen) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMediaManagerService, NS_IMEDIAMANAGERSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMEDIAMANAGERSERVICE \
  NS_IMETHOD GetActiveMediaCaptureWindows(nsIArray **aActiveMediaCaptureWindows) override; \
  NS_IMETHOD MediaCaptureWindowState(nsIDOMWindow *aWindow, uint16_t *aCamera, uint16_t *aMicrophone, uint16_t *aScreenShare = nullptr, uint16_t *aWindowShare = nullptr, uint16_t *aAppShare = nullptr, uint16_t *aBrowserShare = nullptr) override; \
  NS_IMETHOD SanitizeDeviceIds(int64_t sinceWhen) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMEDIAMANAGERSERVICE \
  nsresult GetActiveMediaCaptureWindows(nsIArray **aActiveMediaCaptureWindows); \
  nsresult MediaCaptureWindowState(nsIDOMWindow *aWindow, uint16_t *aCamera, uint16_t *aMicrophone, uint16_t *aScreenShare = nullptr, uint16_t *aWindowShare = nullptr, uint16_t *aAppShare = nullptr, uint16_t *aBrowserShare = nullptr); \
  nsresult SanitizeDeviceIds(int64_t sinceWhen); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMEDIAMANAGERSERVICE(_to) \
  NS_IMETHOD GetActiveMediaCaptureWindows(nsIArray **aActiveMediaCaptureWindows) override { return _to GetActiveMediaCaptureWindows(aActiveMediaCaptureWindows); } \
  NS_IMETHOD MediaCaptureWindowState(nsIDOMWindow *aWindow, uint16_t *aCamera, uint16_t *aMicrophone, uint16_t *aScreenShare = nullptr, uint16_t *aWindowShare = nullptr, uint16_t *aAppShare = nullptr, uint16_t *aBrowserShare = nullptr) override { return _to MediaCaptureWindowState(aWindow, aCamera, aMicrophone, aScreenShare, aWindowShare, aAppShare, aBrowserShare); } \
  NS_IMETHOD SanitizeDeviceIds(int64_t sinceWhen) override { return _to SanitizeDeviceIds(sinceWhen); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMEDIAMANAGERSERVICE(_to) \
  NS_IMETHOD GetActiveMediaCaptureWindows(nsIArray **aActiveMediaCaptureWindows) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveMediaCaptureWindows(aActiveMediaCaptureWindows); } \
  NS_IMETHOD MediaCaptureWindowState(nsIDOMWindow *aWindow, uint16_t *aCamera, uint16_t *aMicrophone, uint16_t *aScreenShare = nullptr, uint16_t *aWindowShare = nullptr, uint16_t *aAppShare = nullptr, uint16_t *aBrowserShare = nullptr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MediaCaptureWindowState(aWindow, aCamera, aMicrophone, aScreenShare, aWindowShare, aAppShare, aBrowserShare); } \
  NS_IMETHOD SanitizeDeviceIds(int64_t sinceWhen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SanitizeDeviceIds(sinceWhen); } 


#endif /* __gen_nsIMediaManager_h__ */