/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/system/nsISystemInfo.idl */ #ifndef __gen_nsISystemInfo_h__ #define __gen_nsISystemInfo_h__ #include "nsISupports.h" #include "js/GCAnnotations.h" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif /* starting interface: nsISystemInfo */ #define NS_ISYSTEMINFO_IID_STR "09a0502b-cedc-4cae-bf7c-35662dbd1249" #define NS_ISYSTEMINFO_IID \ {0x09a0502b, 0xcedc, 0x4cae, \ { 0xbf, 0x7c, 0x35, 0x66, 0x2d, 0xbd, 0x12, 0x49 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISystemInfo) nsISystemInfo : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ISYSTEMINFO_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISystemInfo; /* [implicit_jscontext] readonly attribute Promise diskInfo; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISystemInfo_diskInfo) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDiskInfo(JSContext* cx, ::mozilla::dom::Promise * * aDiskInfo) = 0; /* [implicit_jscontext] readonly attribute Promise countryCode; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISystemInfo_countryCode) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCountryCode(JSContext* cx, ::mozilla::dom::Promise * * aCountryCode) = 0; /* [implicit_jscontext] readonly attribute Promise osInfo; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISystemInfo_osInfo) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOsInfo(JSContext* cx, ::mozilla::dom::Promise * * aOsInfo) = 0; /* [implicit_jscontext] readonly attribute Promise processInfo; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISystemInfo_processInfo) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProcessInfo(JSContext* cx, ::mozilla::dom::Promise * * aProcessInfo) = 0; /* boolean isWindows10BuildOrLater (in uint32_t aBuildNumber); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISystemInfo_isWindows10BuildOrLater) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsWindows10BuildOrLater(uint32_t aBuildNumber, bool *_retval) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISYSTEMINFO \ NS_IMETHOD GetDiskInfo(JSContext* cx, ::mozilla::dom::Promise * * aDiskInfo) override; \ NS_IMETHOD GetCountryCode(JSContext* cx, ::mozilla::dom::Promise * * aCountryCode) override; \ NS_IMETHOD GetOsInfo(JSContext* cx, ::mozilla::dom::Promise * * aOsInfo) override; \ NS_IMETHOD GetProcessInfo(JSContext* cx, ::mozilla::dom::Promise * * aProcessInfo) override; \ NS_IMETHOD IsWindows10BuildOrLater(uint32_t aBuildNumber, bool *_retval) 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_NSISYSTEMINFO \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISystemInfo_diskInfo)\ nsresult GetDiskInfo(JSContext* cx, ::mozilla::dom::Promise * * aDiskInfo); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISystemInfo_countryCode)\ nsresult GetCountryCode(JSContext* cx, ::mozilla::dom::Promise * * aCountryCode); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISystemInfo_osInfo)\ nsresult GetOsInfo(JSContext* cx, ::mozilla::dom::Promise * * aOsInfo); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISystemInfo_processInfo)\ nsresult GetProcessInfo(JSContext* cx, ::mozilla::dom::Promise * * aProcessInfo); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISystemInfo_isWindows10BuildOrLater)\ nsresult IsWindows10BuildOrLater(uint32_t aBuildNumber, bool *_retval); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISYSTEMINFO(_to) \ NS_IMETHOD GetDiskInfo(JSContext* cx, ::mozilla::dom::Promise * * aDiskInfo) override { return _to GetDiskInfo(cx, aDiskInfo); } \ NS_IMETHOD GetCountryCode(JSContext* cx, ::mozilla::dom::Promise * * aCountryCode) override { return _to GetCountryCode(cx, aCountryCode); } \ NS_IMETHOD GetOsInfo(JSContext* cx, ::mozilla::dom::Promise * * aOsInfo) override { return _to GetOsInfo(cx, aOsInfo); } \ NS_IMETHOD GetProcessInfo(JSContext* cx, ::mozilla::dom::Promise * * aProcessInfo) override { return _to GetProcessInfo(cx, aProcessInfo); } \ NS_IMETHOD IsWindows10BuildOrLater(uint32_t aBuildNumber, bool *_retval) override { return _to IsWindows10BuildOrLater(aBuildNumber, _retval); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISYSTEMINFO(_to) \ NS_IMETHOD GetDiskInfo(JSContext* cx, ::mozilla::dom::Promise * * aDiskInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDiskInfo(cx, aDiskInfo); } \ NS_IMETHOD GetCountryCode(JSContext* cx, ::mozilla::dom::Promise * * aCountryCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCountryCode(cx, aCountryCode); } \ NS_IMETHOD GetOsInfo(JSContext* cx, ::mozilla::dom::Promise * * aOsInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOsInfo(cx, aOsInfo); } \ NS_IMETHOD GetProcessInfo(JSContext* cx, ::mozilla::dom::Promise * * aProcessInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessInfo(cx, aProcessInfo); } \ NS_IMETHOD IsWindows10BuildOrLater(uint32_t aBuildNumber, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsWindows10BuildOrLater(aBuildNumber, _retval); } #endif /* __gen_nsISystemInfo_h__ */