Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/media/test/rdd_process_xpcom/nsIRddProcessTest.idl
*/
#ifndef __gen_nsIRddProcessTest_h__
#define __gen_nsIRddProcessTest_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
/* starting interface: nsIRddProcessTest */
#define NS_IRDDPROCESSTEST_IID_STR "12f7d302-5368-412d-bdc9-26d151518e6c"
#define NS_IRDDPROCESSTEST_IID \
{0x12f7d302, 0x5368, 0x412d, \
{ 0xbd, 0xc9, 0x26, 0xd1, 0x51, 0x51, 0x8e, 0x6c }}
class NS_NO_VTABLE nsIRddProcessTest : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDDPROCESSTEST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIRddProcessTest;
/* [implicit_jscontext] Promise testTelemetryProbes (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestTelemetryProbes(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* void stopProcess (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StopProcess(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIRddProcessTest, NS_IRDDPROCESSTEST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIRDDPROCESSTEST \
NS_IMETHOD TestTelemetryProbes(JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD StopProcess(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_NSIRDDPROCESSTEST \
nsresult TestTelemetryProbes(JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult StopProcess(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIRDDPROCESSTEST(_to) \
NS_IMETHOD TestTelemetryProbes(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to TestTelemetryProbes(cx, _retval); } \
NS_IMETHOD StopProcess(void) override { return _to StopProcess(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIRDDPROCESSTEST(_to) \
NS_IMETHOD TestTelemetryProbes(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestTelemetryProbes(cx, _retval); } \
NS_IMETHOD StopProcess(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopProcess(); }
#endif /* __gen_nsIRddProcessTest_h__ */