Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIGfxInfo.idl
*/
#ifndef __gen_nsIGfxInfo_h__
#define __gen_nsIGfxInfo_h__
#include "nsISupports.h"
#include "nsTArray.h"
#include "js/Value.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIGfxInfo */
#define NS_IGFXINFO_IID_STR "1accd618-4c80-4703-9d29-ecf257d397c8"
#define NS_IGFXINFO_IID \
{0x1accd618, 0x4c80, 0x4703, \
{ 0x9d, 0x29, 0xec, 0xf2, 0x57, 0xd3, 0x97, 0xc8 }}
class nsIGfxInfo : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGFXINFO_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGfxInfo;
/* readonly attribute boolean D2DEnabled; */
NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled) = 0;
/* readonly attribute boolean DWriteEnabled; */
NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled) = 0;
/* readonly attribute boolean EmbeddedInFirefoxReality; */
NS_IMETHOD GetEmbeddedInFirefoxReality(bool *aEmbeddedInFirefoxReality) = 0;
/* readonly attribute AString AzureCanvasBackend; */
NS_IMETHOD GetAzureCanvasBackend(nsAString& aAzureCanvasBackend) = 0;
/* readonly attribute AString AzureContentBackend; */
NS_IMETHOD GetAzureContentBackend(nsAString& aAzureContentBackend) = 0;
/* readonly attribute boolean usingGPUProcess; */
NS_IMETHOD GetUsingGPUProcess(bool *aUsingGPUProcess) = 0;
/* readonly attribute boolean usingRemoteCanvas; */
NS_IMETHOD GetUsingRemoteCanvas(bool *aUsingRemoteCanvas) = 0;
/* readonly attribute boolean usingAcceleratedCanvas; */
NS_IMETHOD GetUsingAcceleratedCanvas(bool *aUsingAcceleratedCanvas) = 0;
/* readonly attribute boolean hasBattery; */
NS_IMETHOD GetHasBattery(bool *aHasBattery) = 0;
/* readonly attribute AString DWriteVersion; */
NS_IMETHOD GetDWriteVersion(nsAString& aDWriteVersion) = 0;
/* readonly attribute AString cleartypeParameters; */
NS_IMETHOD GetCleartypeParameters(nsAString& aCleartypeParameters) = 0;
/* readonly attribute float textScaleFactor; */
NS_IMETHOD GetTextScaleFactor(float *aTextScaleFactor) = 0;
/* readonly attribute AString windowProtocol; */
NS_IMETHOD GetWindowProtocol(nsAString& aWindowProtocol) = 0;
/* readonly attribute AString testType; */
NS_IMETHOD GetTestType(nsAString& aTestType) = 0;
/* readonly attribute AString ContentBackend; */
NS_IMETHOD GetContentBackend(nsAString& aContentBackend) = 0;
/* readonly attribute boolean isHeadless; */
NS_IMETHOD GetIsHeadless(bool *aIsHeadless) = 0;
/* readonly attribute unsigned long TargetFrameRate; */
NS_IMETHOD GetTargetFrameRate(uint32_t *aTargetFrameRate) = 0;
/* readonly attribute ACString CodecSupportInfo; */
NS_IMETHOD GetCodecSupportInfo(nsACString& aCodecSupportInfo) = 0;
enum FontVisibilityDeviceDetermination : uint8_t {
Unassigned = 0,
Unknown_Platform = 1,
Windows_Platform = 2,
MacOS_Unknown = 3,
Android_Unknown_Release_Version = 4,
Android_Unknown_Peloton = 5,
Android_Unknown_vbox = 6,
Android_Unknown_mitv = 7,
Android_Chromebook = 8,
Android_Amazon = 9,
Android_sub_9 = 10,
Android_9_11 = 11,
Android_12_plus = 12,
Linux_Unknown = 13,
Linux_Ubuntu_any = 14,
Linux_Ubuntu_20 = 15,
Linux_Ubuntu_22 = 16,
Linux_Fedora_any = 17,
Linux_Fedora_38 = 18,
Linux_Fedora_39 = 19,
MacOS_13_plus = 20,
MacOS_sub_13 = 21,
};
/* readonly attribute nsIGfxInfo_FontVisibilityDeviceDetermination fontVisibilityDetermination; */
NS_IMETHOD GetFontVisibilityDetermination(nsIGfxInfo::FontVisibilityDeviceDetermination *aFontVisibilityDetermination) = 0;
/* readonly attribute AString fontVisibilityDeterminationStr; */
NS_IMETHOD GetFontVisibilityDeterminationStr(nsAString& aFontVisibilityDeterminationStr) = 0;
/* readonly attribute AString adapterDescription; */
NS_IMETHOD GetAdapterDescription(nsAString& aAdapterDescription) = 0;
/* readonly attribute AString adapterDescription2; */
NS_IMETHOD GetAdapterDescription2(nsAString& aAdapterDescription2) = 0;
/* readonly attribute AString adapterDriver; */
NS_IMETHOD GetAdapterDriver(nsAString& aAdapterDriver) = 0;
/* readonly attribute AString adapterDriver2; */
NS_IMETHOD GetAdapterDriver2(nsAString& aAdapterDriver2) = 0;
/* readonly attribute AString adapterVendorID; */
NS_IMETHOD GetAdapterVendorID(nsAString& aAdapterVendorID) = 0;
/* readonly attribute AString adapterVendorID2; */
NS_IMETHOD GetAdapterVendorID2(nsAString& aAdapterVendorID2) = 0;
/* readonly attribute AString adapterDeviceID; */
NS_IMETHOD GetAdapterDeviceID(nsAString& aAdapterDeviceID) = 0;
/* readonly attribute AString adapterDeviceID2; */
NS_IMETHOD GetAdapterDeviceID2(nsAString& aAdapterDeviceID2) = 0;
/* readonly attribute AString adapterSubsysID; */
NS_IMETHOD GetAdapterSubsysID(nsAString& aAdapterSubsysID) = 0;
/* readonly attribute AString adapterSubsysID2; */
NS_IMETHOD GetAdapterSubsysID2(nsAString& aAdapterSubsysID2) = 0;
/* readonly attribute unsigned long adapterRAM; */
NS_IMETHOD GetAdapterRAM(uint32_t *aAdapterRAM) = 0;
/* readonly attribute unsigned long adapterRAM2; */
NS_IMETHOD GetAdapterRAM2(uint32_t *aAdapterRAM2) = 0;
/* readonly attribute AString adapterDriverVendor; */
NS_IMETHOD GetAdapterDriverVendor(nsAString& aAdapterDriverVendor) = 0;
/* readonly attribute AString adapterDriverVendor2; */
NS_IMETHOD GetAdapterDriverVendor2(nsAString& aAdapterDriverVendor2) = 0;
/* readonly attribute AString adapterDriverVersion; */
NS_IMETHOD GetAdapterDriverVersion(nsAString& aAdapterDriverVersion) = 0;
/* readonly attribute AString adapterDriverVersion2; */
NS_IMETHOD GetAdapterDriverVersion2(nsAString& aAdapterDriverVersion2) = 0;
/* readonly attribute AString adapterDriverDate; */
NS_IMETHOD GetAdapterDriverDate(nsAString& aAdapterDriverDate) = 0;
/* readonly attribute AString adapterDriverDate2; */
NS_IMETHOD GetAdapterDriverDate2(nsAString& aAdapterDriverDate2) = 0;
/* readonly attribute boolean isGPU2Active; */
NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active) = 0;
/* readonly attribute ACString drmRenderDevice; */
NS_IMETHOD GetDrmRenderDevice(nsACString& aDrmRenderDevice) = 0;
/* [implicit_jscontext] jsval getMonitors (); */
NS_IMETHOD GetMonitors(JSContext* cx, JS::MutableHandle<JS::Value> _retval) = 0;
/* Array<ACString> getFailures (out Array<long> indices); */
NS_IMETHOD GetFailures(nsTArray<int32_t >& indices, nsTArray<nsCString >& _retval) = 0;
/* [noscript,notxpcom] void logFailure (in ACString failure); */
NS_IMETHOD_(void) LogFailure(const nsACString& failure) = 0;
/*
* A set of constants for features that we can ask this GfxInfo object
* about via GetFeatureStatus
*/
enum FeatureType : uint8_t {
FEATURE_INVALID = 0,
#define GFXINFO_FEATURE(id, name, pref) FEATURE_##id,
#include "mozilla/widget/GfxInfoFeatureDefs.h"
#undef GFXINFO_FEATURE
FEATURE_COUNT,
/* This must be the first value after INVALID/ALL/OPTIONAL. */
FEATURE_START = FEATURE_DIRECT2D
};
/*
* A set of return values from GetFeatureStatus
*/
enum FeatureStatusType : uint8_t {
FEATURE_STATUS_INVALID = 0,
#define GFXINFO_FEATURE_STATUS(id) FEATURE_##id,
#include "mozilla/widget/GfxInfoFeatureStatusDefs.h"
#undef GFXINFO_FEATURE_STATUS
};
/* long getFeatureStatus (in long aFeature, [optional] out ACString aFailureId); */
NS_IMETHOD GetFeatureStatus(int32_t aFeature, nsACString& aFailureId, int32_t *_retval) = 0;
/* AString getFeatureStatusStr (in AString aFeature, [optional] out ACString aFailureId); */
NS_IMETHOD GetFeatureStatusStr(const nsAString& aFeature, nsACString& aFailureId, nsAString& _retval) = 0;
/* AString getFeatureSuggestedDriverVersion (in long aFeature); */
NS_IMETHOD GetFeatureSuggestedDriverVersion(int32_t aFeature, nsAString& _retval) = 0;
/* AString getFeatureSuggestedDriverVersionStr (in AString aFeature); */
NS_IMETHOD GetFeatureSuggestedDriverVersionStr(const nsAString& aFeature, nsAString& _retval) = 0;
/* [noscript,notxpcom] void GetData (); */
NS_IMETHOD_(void) GetData(void) = 0;
/* [noscript,notxpcom] long GetMaxRefreshRate (out boolean aMixed); */
NS_IMETHOD_(int32_t) GetMaxRefreshRate(bool *aMixed) = 0;
/* [implicit_jscontext] jsval getInfo (); */
NS_IMETHOD GetInfo(JSContext* cx, JS::MutableHandle<JS::Value> _retval) = 0;
/* [implicit_jscontext] jsval getFeatureLog (); */
NS_IMETHOD GetFeatureLog(JSContext* cx, JS::MutableHandle<JS::Value> _retval) = 0;
/* [implicit_jscontext] jsval getFeatures (); */
NS_IMETHOD GetFeatures(JSContext* cx, JS::MutableHandle<JS::Value> _retval) = 0;
/* [implicit_jscontext] jsval getActiveCrashGuards (); */
NS_IMETHOD GetActiveCrashGuards(JSContext* cx, JS::MutableHandle<JS::Value> _retval) = 0;
/* boolean controlGPUProcessForXPCShell (in boolean aEnable); */
NS_IMETHOD ControlGPUProcessForXPCShell(bool aEnable, bool *_retval) = 0;
/* void killGPUProcessForTests (); */
NS_IMETHOD KillGPUProcessForTests(void) = 0;
/* void crashGPUProcessForTests (); */
NS_IMETHOD CrashGPUProcessForTests(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGfxInfo, NS_IGFXINFO_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGFXINFO \
NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled) override; \
NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled) override; \
NS_IMETHOD GetEmbeddedInFirefoxReality(bool *aEmbeddedInFirefoxReality) override; \
NS_IMETHOD GetAzureCanvasBackend(nsAString& aAzureCanvasBackend) override; \
NS_IMETHOD GetAzureContentBackend(nsAString& aAzureContentBackend) override; \
NS_IMETHOD GetUsingGPUProcess(bool *aUsingGPUProcess) override; \
NS_IMETHOD GetUsingRemoteCanvas(bool *aUsingRemoteCanvas) override; \
NS_IMETHOD GetUsingAcceleratedCanvas(bool *aUsingAcceleratedCanvas) override; \
NS_IMETHOD GetHasBattery(bool *aHasBattery) override; \
NS_IMETHOD GetDWriteVersion(nsAString& aDWriteVersion) override; \
NS_IMETHOD GetCleartypeParameters(nsAString& aCleartypeParameters) override; \
NS_IMETHOD GetTextScaleFactor(float *aTextScaleFactor) override; \
NS_IMETHOD GetWindowProtocol(nsAString& aWindowProtocol) override; \
NS_IMETHOD GetTestType(nsAString& aTestType) override; \
NS_IMETHOD GetContentBackend(nsAString& aContentBackend) override; \
NS_IMETHOD GetIsHeadless(bool *aIsHeadless) override; \
NS_IMETHOD GetTargetFrameRate(uint32_t *aTargetFrameRate) override; \
NS_IMETHOD GetCodecSupportInfo(nsACString& aCodecSupportInfo) override; \
NS_IMETHOD GetFontVisibilityDetermination(nsIGfxInfo::FontVisibilityDeviceDetermination *aFontVisibilityDetermination) override; \
NS_IMETHOD GetFontVisibilityDeterminationStr(nsAString& aFontVisibilityDeterminationStr) override; \
NS_IMETHOD GetAdapterDescription(nsAString& aAdapterDescription) override; \
NS_IMETHOD GetAdapterDescription2(nsAString& aAdapterDescription2) override; \
NS_IMETHOD GetAdapterDriver(nsAString& aAdapterDriver) override; \
NS_IMETHOD GetAdapterDriver2(nsAString& aAdapterDriver2) override; \
NS_IMETHOD GetAdapterVendorID(nsAString& aAdapterVendorID) override; \
NS_IMETHOD GetAdapterVendorID2(nsAString& aAdapterVendorID2) override; \
NS_IMETHOD GetAdapterDeviceID(nsAString& aAdapterDeviceID) override; \
NS_IMETHOD GetAdapterDeviceID2(nsAString& aAdapterDeviceID2) override; \
NS_IMETHOD GetAdapterSubsysID(nsAString& aAdapterSubsysID) override; \
NS_IMETHOD GetAdapterSubsysID2(nsAString& aAdapterSubsysID2) override; \
NS_IMETHOD GetAdapterRAM(uint32_t *aAdapterRAM) override; \
NS_IMETHOD GetAdapterRAM2(uint32_t *aAdapterRAM2) override; \
NS_IMETHOD GetAdapterDriverVendor(nsAString& aAdapterDriverVendor) override; \
NS_IMETHOD GetAdapterDriverVendor2(nsAString& aAdapterDriverVendor2) override; \
NS_IMETHOD GetAdapterDriverVersion(nsAString& aAdapterDriverVersion) override; \
NS_IMETHOD GetAdapterDriverVersion2(nsAString& aAdapterDriverVersion2) override; \
NS_IMETHOD GetAdapterDriverDate(nsAString& aAdapterDriverDate) override; \
NS_IMETHOD GetAdapterDriverDate2(nsAString& aAdapterDriverDate2) override; \
NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active) override; \
NS_IMETHOD GetDrmRenderDevice(nsACString& aDrmRenderDevice) override; \
NS_IMETHOD GetMonitors(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetFailures(nsTArray<int32_t >& indices, nsTArray<nsCString >& _retval) override; \
NS_IMETHOD_(void) LogFailure(const nsACString& failure) override; \
NS_IMETHOD GetFeatureStatus(int32_t aFeature, nsACString& aFailureId, int32_t *_retval) override; \
NS_IMETHOD GetFeatureStatusStr(const nsAString& aFeature, nsACString& aFailureId, nsAString& _retval) override; \
NS_IMETHOD GetFeatureSuggestedDriverVersion(int32_t aFeature, nsAString& _retval) override; \
NS_IMETHOD GetFeatureSuggestedDriverVersionStr(const nsAString& aFeature, nsAString& _retval) override; \
NS_IMETHOD_(void) GetData(void) override; \
NS_IMETHOD_(int32_t) GetMaxRefreshRate(bool *aMixed) override; \
NS_IMETHOD GetInfo(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetFeatureLog(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetFeatures(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetActiveCrashGuards(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD ControlGPUProcessForXPCShell(bool aEnable, bool *_retval) override; \
NS_IMETHOD KillGPUProcessForTests(void) override; \
NS_IMETHOD CrashGPUProcessForTests(void) 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_NSIGFXINFO \
nsresult GetD2DEnabled(bool *aD2DEnabled); \
nsresult GetDWriteEnabled(bool *aDWriteEnabled); \
nsresult GetEmbeddedInFirefoxReality(bool *aEmbeddedInFirefoxReality); \
nsresult GetAzureCanvasBackend(nsAString& aAzureCanvasBackend); \
nsresult GetAzureContentBackend(nsAString& aAzureContentBackend); \
nsresult GetUsingGPUProcess(bool *aUsingGPUProcess); \
nsresult GetUsingRemoteCanvas(bool *aUsingRemoteCanvas); \
nsresult GetUsingAcceleratedCanvas(bool *aUsingAcceleratedCanvas); \
nsresult GetHasBattery(bool *aHasBattery); \
nsresult GetDWriteVersion(nsAString& aDWriteVersion); \
nsresult GetCleartypeParameters(nsAString& aCleartypeParameters); \
nsresult GetTextScaleFactor(float *aTextScaleFactor); \
nsresult GetWindowProtocol(nsAString& aWindowProtocol); \
nsresult GetTestType(nsAString& aTestType); \
nsresult GetContentBackend(nsAString& aContentBackend); \
nsresult GetIsHeadless(bool *aIsHeadless); \
nsresult GetTargetFrameRate(uint32_t *aTargetFrameRate); \
nsresult GetCodecSupportInfo(nsACString& aCodecSupportInfo); \
nsresult GetFontVisibilityDetermination(nsIGfxInfo::FontVisibilityDeviceDetermination *aFontVisibilityDetermination); \
nsresult GetFontVisibilityDeterminationStr(nsAString& aFontVisibilityDeterminationStr); \
nsresult GetAdapterDescription(nsAString& aAdapterDescription); \
nsresult GetAdapterDescription2(nsAString& aAdapterDescription2); \
nsresult GetAdapterDriver(nsAString& aAdapterDriver); \
nsresult GetAdapterDriver2(nsAString& aAdapterDriver2); \
nsresult GetAdapterVendorID(nsAString& aAdapterVendorID); \
nsresult GetAdapterVendorID2(nsAString& aAdapterVendorID2); \
nsresult GetAdapterDeviceID(nsAString& aAdapterDeviceID); \
nsresult GetAdapterDeviceID2(nsAString& aAdapterDeviceID2); \
nsresult GetAdapterSubsysID(nsAString& aAdapterSubsysID); \
nsresult GetAdapterSubsysID2(nsAString& aAdapterSubsysID2); \
nsresult GetAdapterRAM(uint32_t *aAdapterRAM); \
nsresult GetAdapterRAM2(uint32_t *aAdapterRAM2); \
nsresult GetAdapterDriverVendor(nsAString& aAdapterDriverVendor); \
nsresult GetAdapterDriverVendor2(nsAString& aAdapterDriverVendor2); \
nsresult GetAdapterDriverVersion(nsAString& aAdapterDriverVersion); \
nsresult GetAdapterDriverVersion2(nsAString& aAdapterDriverVersion2); \
nsresult GetAdapterDriverDate(nsAString& aAdapterDriverDate); \
nsresult GetAdapterDriverDate2(nsAString& aAdapterDriverDate2); \
nsresult GetIsGPU2Active(bool *aIsGPU2Active); \
nsresult GetDrmRenderDevice(nsACString& aDrmRenderDevice); \
nsresult GetMonitors(JSContext* cx, JS::MutableHandle<JS::Value> _retval); \
nsresult GetFailures(nsTArray<int32_t >& indices, nsTArray<nsCString >& _retval); \
nsresult_(void) LogFailure(const nsACString& failure); \
nsresult GetFeatureStatus(int32_t aFeature, nsACString& aFailureId, int32_t *_retval); \
nsresult GetFeatureStatusStr(const nsAString& aFeature, nsACString& aFailureId, nsAString& _retval); \
nsresult GetFeatureSuggestedDriverVersion(int32_t aFeature, nsAString& _retval); \
nsresult GetFeatureSuggestedDriverVersionStr(const nsAString& aFeature, nsAString& _retval); \
nsresult_(void) GetData(void); \
nsresult_(int32_t) GetMaxRefreshRate(bool *aMixed); \
nsresult GetInfo(JSContext* cx, JS::MutableHandle<JS::Value> _retval); \
nsresult GetFeatureLog(JSContext* cx, JS::MutableHandle<JS::Value> _retval); \
nsresult GetFeatures(JSContext* cx, JS::MutableHandle<JS::Value> _retval); \
nsresult GetActiveCrashGuards(JSContext* cx, JS::MutableHandle<JS::Value> _retval); \
nsresult ControlGPUProcessForXPCShell(bool aEnable, bool *_retval); \
nsresult KillGPUProcessForTests(void); \
nsresult CrashGPUProcessForTests(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGFXINFO(_to) \
NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled) override { return _to GetD2DEnabled(aD2DEnabled); } \
NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled) override { return _to GetDWriteEnabled(aDWriteEnabled); } \
NS_IMETHOD GetEmbeddedInFirefoxReality(bool *aEmbeddedInFirefoxReality) override { return _to GetEmbeddedInFirefoxReality(aEmbeddedInFirefoxReality); } \
NS_IMETHOD GetAzureCanvasBackend(nsAString& aAzureCanvasBackend) override { return _to GetAzureCanvasBackend(aAzureCanvasBackend); } \
NS_IMETHOD GetAzureContentBackend(nsAString& aAzureContentBackend) override { return _to GetAzureContentBackend(aAzureContentBackend); } \
NS_IMETHOD GetUsingGPUProcess(bool *aUsingGPUProcess) override { return _to GetUsingGPUProcess(aUsingGPUProcess); } \
NS_IMETHOD GetUsingRemoteCanvas(bool *aUsingRemoteCanvas) override { return _to GetUsingRemoteCanvas(aUsingRemoteCanvas); } \
NS_IMETHOD GetUsingAcceleratedCanvas(bool *aUsingAcceleratedCanvas) override { return _to GetUsingAcceleratedCanvas(aUsingAcceleratedCanvas); } \
NS_IMETHOD GetHasBattery(bool *aHasBattery) override { return _to GetHasBattery(aHasBattery); } \
NS_IMETHOD GetDWriteVersion(nsAString& aDWriteVersion) override { return _to GetDWriteVersion(aDWriteVersion); } \
NS_IMETHOD GetCleartypeParameters(nsAString& aCleartypeParameters) override { return _to GetCleartypeParameters(aCleartypeParameters); } \
NS_IMETHOD GetTextScaleFactor(float *aTextScaleFactor) override { return _to GetTextScaleFactor(aTextScaleFactor); } \
NS_IMETHOD GetWindowProtocol(nsAString& aWindowProtocol) override { return _to GetWindowProtocol(aWindowProtocol); } \
NS_IMETHOD GetTestType(nsAString& aTestType) override { return _to GetTestType(aTestType); } \
NS_IMETHOD GetContentBackend(nsAString& aContentBackend) override { return _to GetContentBackend(aContentBackend); } \
NS_IMETHOD GetIsHeadless(bool *aIsHeadless) override { return _to GetIsHeadless(aIsHeadless); } \
NS_IMETHOD GetTargetFrameRate(uint32_t *aTargetFrameRate) override { return _to GetTargetFrameRate(aTargetFrameRate); } \
NS_IMETHOD GetCodecSupportInfo(nsACString& aCodecSupportInfo) override { return _to GetCodecSupportInfo(aCodecSupportInfo); } \
NS_IMETHOD GetFontVisibilityDetermination(nsIGfxInfo::FontVisibilityDeviceDetermination *aFontVisibilityDetermination) override { return _to GetFontVisibilityDetermination(aFontVisibilityDetermination); } \
NS_IMETHOD GetFontVisibilityDeterminationStr(nsAString& aFontVisibilityDeterminationStr) override { return _to GetFontVisibilityDeterminationStr(aFontVisibilityDeterminationStr); } \
NS_IMETHOD GetAdapterDescription(nsAString& aAdapterDescription) override { return _to GetAdapterDescription(aAdapterDescription); } \
NS_IMETHOD GetAdapterDescription2(nsAString& aAdapterDescription2) override { return _to GetAdapterDescription2(aAdapterDescription2); } \
NS_IMETHOD GetAdapterDriver(nsAString& aAdapterDriver) override { return _to GetAdapterDriver(aAdapterDriver); } \
NS_IMETHOD GetAdapterDriver2(nsAString& aAdapterDriver2) override { return _to GetAdapterDriver2(aAdapterDriver2); } \
NS_IMETHOD GetAdapterVendorID(nsAString& aAdapterVendorID) override { return _to GetAdapterVendorID(aAdapterVendorID); } \
NS_IMETHOD GetAdapterVendorID2(nsAString& aAdapterVendorID2) override { return _to GetAdapterVendorID2(aAdapterVendorID2); } \
NS_IMETHOD GetAdapterDeviceID(nsAString& aAdapterDeviceID) override { return _to GetAdapterDeviceID(aAdapterDeviceID); } \
NS_IMETHOD GetAdapterDeviceID2(nsAString& aAdapterDeviceID2) override { return _to GetAdapterDeviceID2(aAdapterDeviceID2); } \
NS_IMETHOD GetAdapterSubsysID(nsAString& aAdapterSubsysID) override { return _to GetAdapterSubsysID(aAdapterSubsysID); } \
NS_IMETHOD GetAdapterSubsysID2(nsAString& aAdapterSubsysID2) override { return _to GetAdapterSubsysID2(aAdapterSubsysID2); } \
NS_IMETHOD GetAdapterRAM(uint32_t *aAdapterRAM) override { return _to GetAdapterRAM(aAdapterRAM); } \
NS_IMETHOD GetAdapterRAM2(uint32_t *aAdapterRAM2) override { return _to GetAdapterRAM2(aAdapterRAM2); } \
NS_IMETHOD GetAdapterDriverVendor(nsAString& aAdapterDriverVendor) override { return _to GetAdapterDriverVendor(aAdapterDriverVendor); } \
NS_IMETHOD GetAdapterDriverVendor2(nsAString& aAdapterDriverVendor2) override { return _to GetAdapterDriverVendor2(aAdapterDriverVendor2); } \
NS_IMETHOD GetAdapterDriverVersion(nsAString& aAdapterDriverVersion) override { return _to GetAdapterDriverVersion(aAdapterDriverVersion); } \
NS_IMETHOD GetAdapterDriverVersion2(nsAString& aAdapterDriverVersion2) override { return _to GetAdapterDriverVersion2(aAdapterDriverVersion2); } \
NS_IMETHOD GetAdapterDriverDate(nsAString& aAdapterDriverDate) override { return _to GetAdapterDriverDate(aAdapterDriverDate); } \
NS_IMETHOD GetAdapterDriverDate2(nsAString& aAdapterDriverDate2) override { return _to GetAdapterDriverDate2(aAdapterDriverDate2); } \
NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active) override { return _to GetIsGPU2Active(aIsGPU2Active); } \
NS_IMETHOD GetDrmRenderDevice(nsACString& aDrmRenderDevice) override { return _to GetDrmRenderDevice(aDrmRenderDevice); } \
NS_IMETHOD GetMonitors(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return _to GetMonitors(cx, _retval); } \
NS_IMETHOD GetFailures(nsTArray<int32_t >& indices, nsTArray<nsCString >& _retval) override { return _to GetFailures(indices, _retval); } \
NS_IMETHOD_(void) LogFailure(const nsACString& failure) override { return _to LogFailure(failure); } \
NS_IMETHOD GetFeatureStatus(int32_t aFeature, nsACString& aFailureId, int32_t *_retval) override { return _to GetFeatureStatus(aFeature, aFailureId, _retval); } \
NS_IMETHOD GetFeatureStatusStr(const nsAString& aFeature, nsACString& aFailureId, nsAString& _retval) override { return _to GetFeatureStatusStr(aFeature, aFailureId, _retval); } \
NS_IMETHOD GetFeatureSuggestedDriverVersion(int32_t aFeature, nsAString& _retval) override { return _to GetFeatureSuggestedDriverVersion(aFeature, _retval); } \
NS_IMETHOD GetFeatureSuggestedDriverVersionStr(const nsAString& aFeature, nsAString& _retval) override { return _to GetFeatureSuggestedDriverVersionStr(aFeature, _retval); } \
NS_IMETHOD_(void) GetData(void) override { return _to GetData(); } \
NS_IMETHOD_(int32_t) GetMaxRefreshRate(bool *aMixed) override { return _to GetMaxRefreshRate(aMixed); } \
NS_IMETHOD GetInfo(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return _to GetInfo(cx, _retval); } \
NS_IMETHOD GetFeatureLog(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return _to GetFeatureLog(cx, _retval); } \
NS_IMETHOD GetFeatures(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return _to GetFeatures(cx, _retval); } \
NS_IMETHOD GetActiveCrashGuards(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return _to GetActiveCrashGuards(cx, _retval); } \
NS_IMETHOD ControlGPUProcessForXPCShell(bool aEnable, bool *_retval) override { return _to ControlGPUProcessForXPCShell(aEnable, _retval); } \
NS_IMETHOD KillGPUProcessForTests(void) override { return _to KillGPUProcessForTests(); } \
NS_IMETHOD CrashGPUProcessForTests(void) override { return _to CrashGPUProcessForTests(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGFXINFO(_to) \
NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetD2DEnabled(aD2DEnabled); } \
NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDWriteEnabled(aDWriteEnabled); } \
NS_IMETHOD GetEmbeddedInFirefoxReality(bool *aEmbeddedInFirefoxReality) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmbeddedInFirefoxReality(aEmbeddedInFirefoxReality); } \
NS_IMETHOD GetAzureCanvasBackend(nsAString& aAzureCanvasBackend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAzureCanvasBackend(aAzureCanvasBackend); } \
NS_IMETHOD GetAzureContentBackend(nsAString& aAzureContentBackend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAzureContentBackend(aAzureContentBackend); } \
NS_IMETHOD GetUsingGPUProcess(bool *aUsingGPUProcess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsingGPUProcess(aUsingGPUProcess); } \
NS_IMETHOD GetUsingRemoteCanvas(bool *aUsingRemoteCanvas) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsingRemoteCanvas(aUsingRemoteCanvas); } \
NS_IMETHOD GetUsingAcceleratedCanvas(bool *aUsingAcceleratedCanvas) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsingAcceleratedCanvas(aUsingAcceleratedCanvas); } \
NS_IMETHOD GetHasBattery(bool *aHasBattery) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasBattery(aHasBattery); } \
NS_IMETHOD GetDWriteVersion(nsAString& aDWriteVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDWriteVersion(aDWriteVersion); } \
NS_IMETHOD GetCleartypeParameters(nsAString& aCleartypeParameters) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCleartypeParameters(aCleartypeParameters); } \
NS_IMETHOD GetTextScaleFactor(float *aTextScaleFactor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextScaleFactor(aTextScaleFactor); } \
NS_IMETHOD GetWindowProtocol(nsAString& aWindowProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowProtocol(aWindowProtocol); } \
NS_IMETHOD GetTestType(nsAString& aTestType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTestType(aTestType); } \
NS_IMETHOD GetContentBackend(nsAString& aContentBackend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentBackend(aContentBackend); } \
NS_IMETHOD GetIsHeadless(bool *aIsHeadless) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHeadless(aIsHeadless); } \
NS_IMETHOD GetTargetFrameRate(uint32_t *aTargetFrameRate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetFrameRate(aTargetFrameRate); } \
NS_IMETHOD GetCodecSupportInfo(nsACString& aCodecSupportInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCodecSupportInfo(aCodecSupportInfo); } \
NS_IMETHOD GetFontVisibilityDetermination(nsIGfxInfo::FontVisibilityDeviceDetermination *aFontVisibilityDetermination) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontVisibilityDetermination(aFontVisibilityDetermination); } \
NS_IMETHOD GetFontVisibilityDeterminationStr(nsAString& aFontVisibilityDeterminationStr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontVisibilityDeterminationStr(aFontVisibilityDeterminationStr); } \
NS_IMETHOD GetAdapterDescription(nsAString& aAdapterDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDescription(aAdapterDescription); } \
NS_IMETHOD GetAdapterDescription2(nsAString& aAdapterDescription2) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDescription2(aAdapterDescription2); } \
NS_IMETHOD GetAdapterDriver(nsAString& aAdapterDriver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDriver(aAdapterDriver); } \
NS_IMETHOD GetAdapterDriver2(nsAString& aAdapterDriver2) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDriver2(aAdapterDriver2); } \
NS_IMETHOD GetAdapterVendorID(nsAString& aAdapterVendorID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterVendorID(aAdapterVendorID); } \
NS_IMETHOD GetAdapterVendorID2(nsAString& aAdapterVendorID2) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterVendorID2(aAdapterVendorID2); } \
NS_IMETHOD GetAdapterDeviceID(nsAString& aAdapterDeviceID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDeviceID(aAdapterDeviceID); } \
NS_IMETHOD GetAdapterDeviceID2(nsAString& aAdapterDeviceID2) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDeviceID2(aAdapterDeviceID2); } \
NS_IMETHOD GetAdapterSubsysID(nsAString& aAdapterSubsysID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterSubsysID(aAdapterSubsysID); } \
NS_IMETHOD GetAdapterSubsysID2(nsAString& aAdapterSubsysID2) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterSubsysID2(aAdapterSubsysID2); } \
NS_IMETHOD GetAdapterRAM(uint32_t *aAdapterRAM) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterRAM(aAdapterRAM); } \
NS_IMETHOD GetAdapterRAM2(uint32_t *aAdapterRAM2) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterRAM2(aAdapterRAM2); } \
NS_IMETHOD GetAdapterDriverVendor(nsAString& aAdapterDriverVendor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDriverVendor(aAdapterDriverVendor); } \
NS_IMETHOD GetAdapterDriverVendor2(nsAString& aAdapterDriverVendor2) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDriverVendor2(aAdapterDriverVendor2); } \
NS_IMETHOD GetAdapterDriverVersion(nsAString& aAdapterDriverVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDriverVersion(aAdapterDriverVersion); } \
NS_IMETHOD GetAdapterDriverVersion2(nsAString& aAdapterDriverVersion2) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDriverVersion2(aAdapterDriverVersion2); } \
NS_IMETHOD GetAdapterDriverDate(nsAString& aAdapterDriverDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDriverDate(aAdapterDriverDate); } \
NS_IMETHOD GetAdapterDriverDate2(nsAString& aAdapterDriverDate2) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdapterDriverDate2(aAdapterDriverDate2); } \
NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsGPU2Active(aIsGPU2Active); } \
NS_IMETHOD GetDrmRenderDevice(nsACString& aDrmRenderDevice) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDrmRenderDevice(aDrmRenderDevice); } \
NS_IMETHOD GetMonitors(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMonitors(cx, _retval); } \
NS_IMETHOD GetFailures(nsTArray<int32_t >& indices, nsTArray<nsCString >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailures(indices, _retval); } \
NS_IMETHOD_(void) LogFailure(const nsACString& failure) override; \
NS_IMETHOD GetFeatureStatus(int32_t aFeature, nsACString& aFailureId, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeatureStatus(aFeature, aFailureId, _retval); } \
NS_IMETHOD GetFeatureStatusStr(const nsAString& aFeature, nsACString& aFailureId, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeatureStatusStr(aFeature, aFailureId, _retval); } \
NS_IMETHOD GetFeatureSuggestedDriverVersion(int32_t aFeature, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeatureSuggestedDriverVersion(aFeature, _retval); } \
NS_IMETHOD GetFeatureSuggestedDriverVersionStr(const nsAString& aFeature, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeatureSuggestedDriverVersionStr(aFeature, _retval); } \
NS_IMETHOD_(void) GetData(void) override; \
NS_IMETHOD_(int32_t) GetMaxRefreshRate(bool *aMixed) override; \
NS_IMETHOD GetInfo(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInfo(cx, _retval); } \
NS_IMETHOD GetFeatureLog(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeatureLog(cx, _retval); } \
NS_IMETHOD GetFeatures(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeatures(cx, _retval); } \
NS_IMETHOD GetActiveCrashGuards(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveCrashGuards(cx, _retval); } \
NS_IMETHOD ControlGPUProcessForXPCShell(bool aEnable, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ControlGPUProcessForXPCShell(aEnable, _retval); } \
NS_IMETHOD KillGPUProcessForTests(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->KillGPUProcessForTests(); } \
NS_IMETHOD CrashGPUProcessForTests(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CrashGPUProcessForTests(); }
#endif /* __gen_nsIGfxInfo_h__ */