Copy as Markdown
Other Tools
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM $SRCDIR/widget/windows/nsIWindowsTestDebug.idl
 */
#ifndef __gen_nsIWindowsTestDebug_h__
#define __gen_nsIWindowsTestDebug_h__
#include "nsISupports.h"
#include "nsTArray.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:    nsIWindowsDebugProcessData */
#define NS_IWINDOWSDEBUGPROCESSDATA_IID_STR "19904b57-e6b8-4c0f-86eb-5ffce4c8d675"
#define NS_IWINDOWSDEBUGPROCESSDATA_IID \
  {0x19904b57, 0xe6b8, 0x4c0f, \
    { 0x86, 0xeb, 0x5f, 0xfc, 0xe4, 0xc8, 0xd6, 0x75 }}
class NS_NO_VTABLE nsIWindowsDebugProcessData : public nsISupports {
 public:
  NS_INLINE_DECL_STATIC_IID(NS_IWINDOWSDEBUGPROCESSDATA_IID)
  /* Used by ToJSValue to check which scriptable interface is implemented. */
  using ScriptableInterfaceType = nsIWindowsDebugProcessData;
  /* readonly attribute AString name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsAString& aName) = 0;
  /* readonly attribute AString executablePath; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetExecutablePath(nsAString& aExecutablePath) = 0;
  /* readonly attribute unsigned long pid; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPid(uint32_t *aPid) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINDOWSDEBUGPROCESSDATA \
  NS_IMETHOD GetName(nsAString& aName) override; \
  NS_IMETHOD GetExecutablePath(nsAString& aExecutablePath) override; \
  NS_IMETHOD GetPid(uint32_t *aPid) 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_NSIWINDOWSDEBUGPROCESSDATA \
  nsresult GetName(nsAString& aName); \
  nsresult GetExecutablePath(nsAString& aExecutablePath); \
  nsresult GetPid(uint32_t *aPid); 
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINDOWSDEBUGPROCESSDATA(_to) \
  NS_IMETHOD GetName(nsAString& aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetExecutablePath(nsAString& aExecutablePath) override { return _to GetExecutablePath(aExecutablePath); } \
  NS_IMETHOD GetPid(uint32_t *aPid) override { return _to GetPid(aPid); } 
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWINDOWSDEBUGPROCESSDATA(_to) \
  NS_IMETHOD GetName(nsAString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetExecutablePath(nsAString& aExecutablePath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExecutablePath(aExecutablePath); } \
  NS_IMETHOD GetPid(uint32_t *aPid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPid(aPid); } 
/* starting interface:    nsIWindowsTestDebug */
#define NS_IWINDOWSTESTDEBUG_IID_STR "15725b2d-08d1-4b18-9e83-0cccfb87b982"
#define NS_IWINDOWSTESTDEBUG_IID \
  {0x15725b2d, 0x08d1, 0x4b18, \
    { 0x9e, 0x83, 0x0c, 0xcc, 0xfb, 0x87, 0xb9, 0x82 }}
class NS_NO_VTABLE nsIWindowsTestDebug : public nsISupports {
 public:
  NS_INLINE_DECL_STATIC_IID(NS_IWINDOWSTESTDEBUG_IID)
  /* Used by ToJSValue to check which scriptable interface is implemented. */
  using ScriptableInterfaceType = nsIWindowsTestDebug;
  /* Array<nsIWindowsDebugProcessData> processesThatOpenedFile (in AString aFilename); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ProcessesThatOpenedFile(const nsAString& aFilename, nsTArray<RefPtr<nsIWindowsDebugProcessData>>& _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINDOWSTESTDEBUG \
  NS_IMETHOD ProcessesThatOpenedFile(const nsAString& aFilename, nsTArray<RefPtr<nsIWindowsDebugProcessData>>& _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_NSIWINDOWSTESTDEBUG \
  nsresult ProcessesThatOpenedFile(const nsAString& aFilename, nsTArray<RefPtr<nsIWindowsDebugProcessData>>& _retval); 
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINDOWSTESTDEBUG(_to) \
  NS_IMETHOD ProcessesThatOpenedFile(const nsAString& aFilename, nsTArray<RefPtr<nsIWindowsDebugProcessData>>& _retval) override { return _to ProcessesThatOpenedFile(aFilename, _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_NSIWINDOWSTESTDEBUG(_to) \
  NS_IMETHOD ProcessesThatOpenedFile(const nsAString& aFilename, nsTArray<RefPtr<nsIWindowsDebugProcessData>>& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessesThatOpenedFile(aFilename, _retval); } 
#endif /* __gen_nsIWindowsTestDebug_h__ */