Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/terminator/nsITerminatorTest.idl
*/
#ifndef __gen_nsITerminatorTest_h__
#define __gen_nsITerminatorTest_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: nsITerminatorTest */
#define NS_ITERMINATORTEST_IID_STR "a76599ef-78a4-441f-b258-4908dedef42d"
#define NS_ITERMINATORTEST_IID \
{0xa76599ef, 0x78a4, 0x441f, \
{ 0xb2, 0x58, 0x49, 0x08, 0xde, 0xde, 0xf4, 0x2d }}
class NS_NO_VTABLE nsITerminatorTest : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITERMINATORTEST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITerminatorTest;
/* [implicit_jscontext] jsval getTicksForShutdownPhases (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTicksForShutdownPhases(JSContext* cx, JS::MutableHandle<JS::Value> _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITerminatorTest, NS_ITERMINATORTEST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITERMINATORTEST \
NS_IMETHOD GetTicksForShutdownPhases(JSContext* cx, JS::MutableHandle<JS::Value> _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_NSITERMINATORTEST \
nsresult GetTicksForShutdownPhases(JSContext* cx, JS::MutableHandle<JS::Value> _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITERMINATORTEST(_to) \
NS_IMETHOD GetTicksForShutdownPhases(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return _to GetTicksForShutdownPhases(cx, _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_NSITERMINATORTEST(_to) \
NS_IMETHOD GetTicksForShutdownPhases(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTicksForShutdownPhases(cx, _retval); }
#endif /* __gen_nsITerminatorTest_h__ */