/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsICocoaAppShellTestUtils.idl
*/
#ifndef __gen_nsICocoaAppShellTestUtils_h__
#define __gen_nsICocoaAppShellTestUtils_h__
#include "nsISupports.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsICocoaAppShellTestUtils */
#define NS_ICOCOAAPPSHELLTESTUTILS_IID_STR "1398d18e-b1f2-4bb6-af24-f08d91da429d"
#define NS_ICOCOAAPPSHELLTESTUTILS_IID \
{0x1398d18e, 0xb1f2, 0x4bb6, \
{ 0xaf, 0x24, 0xf0, 0x8d, 0x91, 0xda, 0x42, 0x9d }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsICocoaAppShellTestUtils) nsICocoaAppShellTestUtils : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICOCOAAPPSHELLTESTUTILS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICocoaAppShellTestUtils;
/* void postNativeTestEvent (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsICocoaAppShellTestUtils_postNativeTestEvent)
NS_IMETHOD PostNativeTestEvent(void) = 0;
/* readonly attribute unsigned long lostNativeWakeups; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICocoaAppShellTestUtils_lostNativeWakeups)
NS_IMETHOD GetLostNativeWakeups(uint32_t *aLostNativeWakeups) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOCOAAPPSHELLTESTUTILS \
NS_IMETHOD PostNativeTestEvent(void) override; \
NS_IMETHOD GetLostNativeWakeups(uint32_t *aLostNativeWakeups) 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_NSICOCOAAPPSHELLTESTUTILS \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsICocoaAppShellTestUtils_postNativeTestEvent)\
nsresult PostNativeTestEvent(void); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICocoaAppShellTestUtils_lostNativeWakeups)\
nsresult GetLostNativeWakeups(uint32_t *aLostNativeWakeups);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOCOAAPPSHELLTESTUTILS(_to) \
NS_IMETHOD PostNativeTestEvent(void) override { return _to PostNativeTestEvent(); } \
NS_IMETHOD GetLostNativeWakeups(uint32_t *aLostNativeWakeups) override { return _to GetLostNativeWakeups(aLostNativeWakeups); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICOCOAAPPSHELLTESTUTILS(_to) \
NS_IMETHOD PostNativeTestEvent(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PostNativeTestEvent(); } \
NS_IMETHOD GetLostNativeWakeups(uint32_t *aLostNativeWakeups) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLostNativeWakeups(aLostNativeWakeups); }
#endif /* __gen_nsICocoaAppShellTestUtils_h__ */