Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/places/PlacesCompletionCallback.idl
*/
#ifndef __gen_PlacesCompletionCallback_h__
#define __gen_PlacesCompletionCallback_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
/* starting interface: PlacesCompletionCallback */
#define PLACESCOMPLETIONCALLBACK_IID_STR "ea26627b-d21a-4f97-b2d0-f8df7be24808"
#define PLACESCOMPLETIONCALLBACK_IID \
{0xea26627b, 0xd21a, 0x4f97, \
{ 0xb2, 0xd0, 0xf8, 0xdf, 0x7b, 0xe2, 0x48, 0x08 }}
class NS_NO_VTABLE PlacesCompletionCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(PLACESCOMPLETIONCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = PlacesCompletionCallback;
/* void complete (in nsresult status); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Complete(nsresult status) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(PlacesCompletionCallback, PLACESCOMPLETIONCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PLACESCOMPLETIONCALLBACK \
NS_IMETHOD Complete(nsresult status) 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_PLACESCOMPLETIONCALLBACK \
nsresult Complete(nsresult status);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PLACESCOMPLETIONCALLBACK(_to) \
NS_IMETHOD Complete(nsresult status) override { return _to Complete(status); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PLACESCOMPLETIONCALLBACK(_to) \
NS_IMETHOD Complete(nsresult status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(status); }
#endif /* __gen_PlacesCompletionCallback_h__ */