Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/aboutwindowsmessages/nsIAboutWindowsMessages.idl
*/
#ifndef __gen_nsIAboutWindowsMessages_h__
#define __gen_nsIAboutWindowsMessages_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
class mozIDOMWindowProxy; /* forward declaration */
/* starting interface: nsIAboutWindowsMessages */
#define NS_IABOUTWINDOWSMESSAGES_IID_STR "3c5cfbfd-545c-4910-a34a-203063914f96"
#define NS_IABOUTWINDOWSMESSAGES_IID \
{0x3c5cfbfd, 0x545c, 0x4910, \
{ 0xa3, 0x4a, 0x20, 0x30, 0x63, 0x91, 0x4f, 0x96 }}
class NS_NO_VTABLE nsIAboutWindowsMessages : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABOUTWINDOWSMESSAGES_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAboutWindowsMessages;
/* void getMessages (in mozIDOMWindowProxy currentWindow, out Array<Array<ACString>> messages, out Array<AString> windowTitles); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessages(mozIDOMWindowProxy *currentWindow, nsTArray<nsTArray<nsCString >>& messages, nsTArray<nsString >& windowTitles) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAboutWindowsMessages, NS_IABOUTWINDOWSMESSAGES_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABOUTWINDOWSMESSAGES \
NS_IMETHOD GetMessages(mozIDOMWindowProxy *currentWindow, nsTArray<nsTArray<nsCString >>& messages, nsTArray<nsString >& windowTitles) 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_NSIABOUTWINDOWSMESSAGES \
nsresult GetMessages(mozIDOMWindowProxy *currentWindow, nsTArray<nsTArray<nsCString >>& messages, nsTArray<nsString >& windowTitles);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABOUTWINDOWSMESSAGES(_to) \
NS_IMETHOD GetMessages(mozIDOMWindowProxy *currentWindow, nsTArray<nsTArray<nsCString >>& messages, nsTArray<nsString >& windowTitles) override { return _to GetMessages(currentWindow, messages, windowTitles); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABOUTWINDOWSMESSAGES(_to) \
NS_IMETHOD GetMessages(mozIDOMWindowProxy *currentWindow, nsTArray<nsTArray<nsCString >>& messages, nsTArray<nsString >& windowTitles) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessages(currentWindow, messages, windowTitles); }
#endif /* __gen_nsIAboutWindowsMessages_h__ */