Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIMacUserActivityUpdater.idl
*/
#ifndef __gen_nsIMacUserActivityUpdater_h__
#define __gen_nsIMacUserActivityUpdater_h__
#include "nsISupports.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 nsIBaseWindow; /* forward declaration */
/* starting interface: nsIMacUserActivityUpdater */
#define NS_IMACUSERACTIVITYUPDATER_IID_STR "29046c8f-cba6-4ffa-9141-1685e96c4ea0"
#define NS_IMACUSERACTIVITYUPDATER_IID \
{0x29046c8f, 0xcba6, 0x4ffa, \
{ 0x91, 0x41, 0x16, 0x85, 0xe9, 0x6c, 0x4e, 0xa0 }}
class NS_NO_VTABLE nsIMacUserActivityUpdater : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMACUSERACTIVITYUPDATER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMacUserActivityUpdater;
/* void updateLocation (in AString pageUrl, in AString pageTitle, in nsIBaseWindow window); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateLocation(const nsAString& pageUrl, const nsAString& pageTitle, nsIBaseWindow *window) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMacUserActivityUpdater, NS_IMACUSERACTIVITYUPDATER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMACUSERACTIVITYUPDATER \
NS_IMETHOD UpdateLocation(const nsAString& pageUrl, const nsAString& pageTitle, nsIBaseWindow *window) 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_NSIMACUSERACTIVITYUPDATER \
nsresult UpdateLocation(const nsAString& pageUrl, const nsAString& pageTitle, nsIBaseWindow *window);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMACUSERACTIVITYUPDATER(_to) \
NS_IMETHOD UpdateLocation(const nsAString& pageUrl, const nsAString& pageTitle, nsIBaseWindow *window) override { return _to UpdateLocation(pageUrl, pageTitle, window); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMACUSERACTIVITYUPDATER(_to) \
NS_IMETHOD UpdateLocation(const nsAString& pageUrl, const nsAString& pageTitle, nsIBaseWindow *window) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateLocation(pageUrl, pageTitle, window); }
#endif /* __gen_nsIMacUserActivityUpdater_h__ */