Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/media/nsIMediaDevice.idl
*/
#ifndef __gen_nsIMediaDevice_h__
#define __gen_nsIMediaDevice_h__
#include "nsISupports.h"
#include "nsIVariant.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIMediaDevice */
#define NS_IMEDIADEVICE_IID_STR "d16af630-2fca-11ec-932f-0800200c9a66"
#define NS_IMEDIADEVICE_IID \
{0xd16af630, 0x2fca, 0x11ec, \
{ 0x93, 0x2f, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
class NS_NO_VTABLE nsIMediaDevice : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMEDIADEVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMediaDevice;
/* readonly attribute AString type; */
NS_IMETHOD GetType(nsAString& aType) = 0;
/* readonly attribute AString mediaSource; */
NS_IMETHOD GetMediaSource(nsAString& aMediaSource) = 0;
/* readonly attribute AString rawId; */
NS_IMETHOD GetRawId(nsAString& aRawId) = 0;
/* readonly attribute AString id; */
NS_IMETHOD GetId(nsAString& aId) = 0;
/* readonly attribute boolean scary; */
NS_IMETHOD GetScary(bool *aScary) = 0;
/* readonly attribute boolean canRequestOsLevelPrompt; */
NS_IMETHOD GetCanRequestOsLevelPrompt(bool *aCanRequestOsLevelPrompt) = 0;
/* readonly attribute AString rawName; */
NS_IMETHOD GetRawName(nsAString& aRawName) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMediaDevice, NS_IMEDIADEVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMEDIADEVICE \
NS_IMETHOD GetType(nsAString& aType) override; \
NS_IMETHOD GetMediaSource(nsAString& aMediaSource) override; \
NS_IMETHOD GetRawId(nsAString& aRawId) override; \
NS_IMETHOD GetId(nsAString& aId) override; \
NS_IMETHOD GetScary(bool *aScary) override; \
NS_IMETHOD GetCanRequestOsLevelPrompt(bool *aCanRequestOsLevelPrompt) override; \
NS_IMETHOD GetRawName(nsAString& aRawName) 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_NSIMEDIADEVICE \
nsresult GetType(nsAString& aType); \
nsresult GetMediaSource(nsAString& aMediaSource); \
nsresult GetRawId(nsAString& aRawId); \
nsresult GetId(nsAString& aId); \
nsresult GetScary(bool *aScary); \
nsresult GetCanRequestOsLevelPrompt(bool *aCanRequestOsLevelPrompt); \
nsresult GetRawName(nsAString& aRawName);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMEDIADEVICE(_to) \
NS_IMETHOD GetType(nsAString& aType) override { return _to GetType(aType); } \
NS_IMETHOD GetMediaSource(nsAString& aMediaSource) override { return _to GetMediaSource(aMediaSource); } \
NS_IMETHOD GetRawId(nsAString& aRawId) override { return _to GetRawId(aRawId); } \
NS_IMETHOD GetId(nsAString& aId) override { return _to GetId(aId); } \
NS_IMETHOD GetScary(bool *aScary) override { return _to GetScary(aScary); } \
NS_IMETHOD GetCanRequestOsLevelPrompt(bool *aCanRequestOsLevelPrompt) override { return _to GetCanRequestOsLevelPrompt(aCanRequestOsLevelPrompt); } \
NS_IMETHOD GetRawName(nsAString& aRawName) override { return _to GetRawName(aRawName); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMEDIADEVICE(_to) \
NS_IMETHOD GetType(nsAString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
NS_IMETHOD GetMediaSource(nsAString& aMediaSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMediaSource(aMediaSource); } \
NS_IMETHOD GetRawId(nsAString& aRawId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRawId(aRawId); } \
NS_IMETHOD GetId(nsAString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
NS_IMETHOD GetScary(bool *aScary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScary(aScary); } \
NS_IMETHOD GetCanRequestOsLevelPrompt(bool *aCanRequestOsLevelPrompt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanRequestOsLevelPrompt(aCanRequestOsLevelPrompt); } \
NS_IMETHOD GetRawName(nsAString& aRawName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRawName(aRawName); }
#endif /* __gen_nsIMediaDevice_h__ */