/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/backgroundhangmonitor/nsIHangDetails.idl */ #ifndef __gen_nsIHangDetails_h__ #define __gen_nsIHangDetails_h__ #include "nsISupports.h" #include "js/Value.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 // %{C++:8-10 namespace mozilla { class HangDetails; } // %} /* starting interface: nsIHangDetails */ #define NS_IHANGDETAILS_IID_STR "23d63fff-38d6-4003-9c57-2c90aca1180a" #define NS_IHANGDETAILS_IID \ {0x23d63fff, 0x38d6, 0x4003, \ { 0x9c, 0x57, 0x2c, 0x90, 0xac, 0xa1, 0x18, 0x0a }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIHangDetails) nsIHangDetails : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IHANGDETAILS_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIHangDetails; /* readonly attribute boolean wasPersisted; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_wasPersisted) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWasPersisted(bool *aWasPersisted) = 0; /* readonly attribute double duration; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_duration) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDuration(double *aDuration) = 0; /* readonly attribute ACString thread; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_thread) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThread(nsACString& aThread) = 0; /* readonly attribute ACString runnableName; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_runnableName) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRunnableName(nsACString& aRunnableName) = 0; /* readonly attribute ACString process; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_process) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProcess(nsACString& aProcess) = 0; /* readonly attribute AUTF8String remoteType; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_remoteType) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRemoteType(nsACString& aRemoteType) = 0; /* [implicit_jscontext] readonly attribute jsval stack; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_stack) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStack(JSContext* cx, JS::MutableHandle aStack) = 0; /* [implicit_jscontext] readonly attribute jsval modules; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_modules) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetModules(JSContext* cx, JS::MutableHandle aModules) = 0; /* [implicit_jscontext] readonly attribute jsval annotations; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_annotations) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAnnotations(JSContext* cx, JS::MutableHandle aAnnotations) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIHANGDETAILS \ NS_IMETHOD GetWasPersisted(bool *aWasPersisted) override; \ NS_IMETHOD GetDuration(double *aDuration) override; \ NS_IMETHOD GetThread(nsACString& aThread) override; \ NS_IMETHOD GetRunnableName(nsACString& aRunnableName) override; \ NS_IMETHOD GetProcess(nsACString& aProcess) override; \ NS_IMETHOD GetRemoteType(nsACString& aRemoteType) override; \ NS_IMETHOD GetStack(JSContext* cx, JS::MutableHandle aStack) override; \ NS_IMETHOD GetModules(JSContext* cx, JS::MutableHandle aModules) override; \ NS_IMETHOD GetAnnotations(JSContext* cx, JS::MutableHandle aAnnotations) 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_NSIHANGDETAILS \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_wasPersisted)\ nsresult GetWasPersisted(bool *aWasPersisted); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_duration)\ nsresult GetDuration(double *aDuration); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_thread)\ nsresult GetThread(nsACString& aThread); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_runnableName)\ nsresult GetRunnableName(nsACString& aRunnableName); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_process)\ nsresult GetProcess(nsACString& aProcess); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_remoteType)\ nsresult GetRemoteType(nsACString& aRemoteType); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_stack)\ nsresult GetStack(JSContext* cx, JS::MutableHandle aStack); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_modules)\ nsresult GetModules(JSContext* cx, JS::MutableHandle aModules); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHangDetails_annotations)\ nsresult GetAnnotations(JSContext* cx, JS::MutableHandle aAnnotations); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIHANGDETAILS(_to) \ NS_IMETHOD GetWasPersisted(bool *aWasPersisted) override { return _to GetWasPersisted(aWasPersisted); } \ NS_IMETHOD GetDuration(double *aDuration) override { return _to GetDuration(aDuration); } \ NS_IMETHOD GetThread(nsACString& aThread) override { return _to GetThread(aThread); } \ NS_IMETHOD GetRunnableName(nsACString& aRunnableName) override { return _to GetRunnableName(aRunnableName); } \ NS_IMETHOD GetProcess(nsACString& aProcess) override { return _to GetProcess(aProcess); } \ NS_IMETHOD GetRemoteType(nsACString& aRemoteType) override { return _to GetRemoteType(aRemoteType); } \ NS_IMETHOD GetStack(JSContext* cx, JS::MutableHandle aStack) override { return _to GetStack(cx, aStack); } \ NS_IMETHOD GetModules(JSContext* cx, JS::MutableHandle aModules) override { return _to GetModules(cx, aModules); } \ NS_IMETHOD GetAnnotations(JSContext* cx, JS::MutableHandle aAnnotations) override { return _to GetAnnotations(cx, aAnnotations); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIHANGDETAILS(_to) \ NS_IMETHOD GetWasPersisted(bool *aWasPersisted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWasPersisted(aWasPersisted); } \ NS_IMETHOD GetDuration(double *aDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDuration(aDuration); } \ NS_IMETHOD GetThread(nsACString& aThread) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThread(aThread); } \ NS_IMETHOD GetRunnableName(nsACString& aRunnableName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRunnableName(aRunnableName); } \ NS_IMETHOD GetProcess(nsACString& aProcess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcess(aProcess); } \ NS_IMETHOD GetRemoteType(nsACString& aRemoteType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRemoteType(aRemoteType); } \ NS_IMETHOD GetStack(JSContext* cx, JS::MutableHandle aStack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStack(cx, aStack); } \ NS_IMETHOD GetModules(JSContext* cx, JS::MutableHandle aModules) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetModules(cx, aModules); } \ NS_IMETHOD GetAnnotations(JSContext* cx, JS::MutableHandle aAnnotations) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnnotations(cx, aAnnotations); } #endif /* __gen_nsIHangDetails_h__ */