/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl\nsIWindowMediatorListener.idl
 */

#ifndef __gen_nsIWindowMediatorListener_h__
#define __gen_nsIWindowMediatorListener_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIXULWindow; /* forward declaration */


/* starting interface:    nsIWindowMediatorListener */
#define NS_IWINDOWMEDIATORLISTENER_IID_STR "2f276982-0d60-4377-a595-d350ba516395"

#define NS_IWINDOWMEDIATORLISTENER_IID \
  {0x2f276982, 0x0d60, 0x4377, \
    { 0xa5, 0x95, 0xd3, 0x50, 0xba, 0x51, 0x63, 0x95 }}

class NS_NO_VTABLE nsIWindowMediatorListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWMEDIATORLISTENER_IID)

  /* void onWindowTitleChange (in nsIXULWindow window, in wstring newTitle); */
  NS_IMETHOD OnWindowTitleChange(nsIXULWindow *window, const char16_t * newTitle) = 0;

  /* void onOpenWindow (in nsIXULWindow window); */
  NS_IMETHOD OnOpenWindow(nsIXULWindow *window) = 0;

  /* void onCloseWindow (in nsIXULWindow window); */
  NS_IMETHOD OnCloseWindow(nsIXULWindow *window) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWindowMediatorListener, NS_IWINDOWMEDIATORLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINDOWMEDIATORLISTENER \
  NS_IMETHOD OnWindowTitleChange(nsIXULWindow *window, const char16_t * newTitle) override; \
  NS_IMETHOD OnOpenWindow(nsIXULWindow *window) override; \
  NS_IMETHOD OnCloseWindow(nsIXULWindow *window) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINDOWMEDIATORLISTENER(_to) \
  NS_IMETHOD OnWindowTitleChange(nsIXULWindow *window, const char16_t * newTitle) override { return _to OnWindowTitleChange(window, newTitle); } \
  NS_IMETHOD OnOpenWindow(nsIXULWindow *window) override { return _to OnOpenWindow(window); } \
  NS_IMETHOD OnCloseWindow(nsIXULWindow *window) override { return _to OnCloseWindow(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_NSIWINDOWMEDIATORLISTENER(_to) \
  NS_IMETHOD OnWindowTitleChange(nsIXULWindow *window, const char16_t * newTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnWindowTitleChange(window, newTitle); } \
  NS_IMETHOD OnOpenWindow(nsIXULWindow *window) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnOpenWindow(window); } \
  NS_IMETHOD OnCloseWindow(nsIXULWindow *window) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCloseWindow(window); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsWindowMediatorListener : public nsIWindowMediatorListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWINDOWMEDIATORLISTENER

  nsWindowMediatorListener();

private:
  ~nsWindowMediatorListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsWindowMediatorListener, nsIWindowMediatorListener)

nsWindowMediatorListener::nsWindowMediatorListener()
{
  /* member initializers and constructor code */
}

nsWindowMediatorListener::~nsWindowMediatorListener()
{
  /* destructor code */
}

/* void onWindowTitleChange (in nsIXULWindow window, in wstring newTitle); */
NS_IMETHODIMP nsWindowMediatorListener::OnWindowTitleChange(nsIXULWindow *window, const char16_t * newTitle)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onOpenWindow (in nsIXULWindow window); */
NS_IMETHODIMP nsWindowMediatorListener::OnOpenWindow(nsIXULWindow *window)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onCloseWindow (in nsIXULWindow window); */
NS_IMETHODIMP nsWindowMediatorListener::OnCloseWindow(nsIXULWindow *window)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIWindowMediatorListener_h__ */
