/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAccessibleEventListener.idl
 */

#ifndef __gen_nsIAccessibleEventListener_h__
#define __gen_nsIAccessibleEventListener_h__


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

#ifndef __gen_nsIAccessible_h__
#include "nsIAccessible.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
// extra event data (currently used by ATK)
struct AccessibleEventData {
  PRUint32 aUnused;
};

/* starting interface:    nsIAccessibleEventListener */
#define NS_IACCESSIBLEEVENTLISTENER_IID_STR "bee49e7d-9d06-49bf-8984-1694c697d74f"

#define NS_IACCESSIBLEEVENTLISTENER_IID \
  {0xbee49e7d, 0x9d06, 0x49bf, \
    { 0x89, 0x84, 0x16, 0x94, 0xc6, 0x97, 0xd7, 0x4f }}

class NS_NO_VTABLE nsIAccessibleEventListener : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEEVENTLISTENER_IID)

  enum { EVENT_CREATE = 32768U };

  enum { EVENT_DESTROY = 32769U };

  enum { EVENT_SHOW = 32770U };

  enum { EVENT_HIDE = 32771U };

  enum { EVENT_REORDER = 32772U };

  enum { EVENT_FOCUS = 32773U };

  enum { EVENT_STATE_CHANGE = 32778U };

  enum { EVENT_LOCATION_CHANGE = 32779U };

  enum { EVENT_NAME_CHANGE = 32780U };

  enum { EVENT_DESCRIPTIONCHANGE = 32781U };

  enum { EVENT_VALUE_CHANGE = 32782U };

  enum { EVENT_PARENTCHANGE = 32783U };

  enum { EVENT_HELPCHANGE = 32784U };

  enum { EVENT_DEFACTIONCHANGE = 32785U };

  enum { EVENT_ACCELERATORCHANGE = 32786U };

  enum { EVENT_SELECTION = 32774U };

  enum { EVENT_SELECTION_ADD = 32775U };

  enum { EVENT_SELECTION_REMOVE = 32776U };

  enum { EVENT_SELECTION_WITHIN = 32777U };

  enum { EVENT_ALERT = 2U };

  enum { EVENT_FOREGROUND = 3U };

  enum { EVENT_MENUSTART = 4U };

  enum { EVENT_MENUEND = 5U };

  enum { EVENT_MENUPOPUPSTART = 6U };

  enum { EVENT_MENUPOPUPEND = 7U };

  enum { EVENT_CAPTURESTART = 8U };

  enum { EVENT_CAPTUREEND = 9U };

  enum { EVENT_MOVESIZESTART = 10U };

  enum { EVENT_MOVESIZEEND = 11U };

  enum { EVENT_CONTEXTHELPSTART = 12U };

  enum { EVENT_CONTEXTHELPEND = 13U };

  enum { EVENT_DRAGDROPSTART = 14U };

  enum { EVENT_DRAGDROPEND = 15U };

  enum { EVENT_DIALOGSTART = 16U };

  enum { EVENT_DIALOGEND = 17U };

  enum { EVENT_SCROLLINGSTART = 18U };

  enum { EVENT_SCROLLINGEND = 19U };

  enum { EVENT_MINIMIZESTART = 22U };

  enum { EVENT_MINIMIZEEND = 23U };

  enum { EVENT_ATK_PROPERTY_CHANGE = 256U };

  enum { EVENT_ATK_SELECTION_CHANGE = 257U };

  enum { EVENT_ATK_TEXT_CHANGE = 258U };

  enum { EVENT_ATK_TEXT_SELECTION_CHANGE = 259U };

  enum { EVENT_ATK_TEXT_CARET_MOVE = 260U };

  enum { EVENT_ATK_VISIBLE_DATA_CHANGE = 261U };

  enum { EVENT_ATK_TABLE_MODEL_CHANGE = 272U };

  enum { EVENT_ATK_TABLE_ROW_INSERT = 273U };

  enum { EVENT_ATK_TABLE_ROW_DELETE = 274U };

  enum { EVENT_ATK_TABLE_ROW_REORDER = 275U };

  enum { EVENT_ATK_TABLE_COLUMN_INSERT = 276U };

  enum { EVENT_ATK_TABLE_COLUMN_DELETE = 277U };

  enum { EVENT_ATK_TABLE_COLUMN_REORDER = 278U };

  /* [noscript] void handleEvent (in unsigned long aEvent, in nsIAccessible aTarget, in AccessibleEventData aData); */
  NS_IMETHOD HandleEvent(PRUint32 aEvent, nsIAccessible *aTarget, AccessibleEventData * aData) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACCESSIBLEEVENTLISTENER \
  NS_IMETHOD HandleEvent(PRUint32 aEvent, nsIAccessible *aTarget, AccessibleEventData * aData); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACCESSIBLEEVENTLISTENER(_to) \
  NS_IMETHOD HandleEvent(PRUint32 aEvent, nsIAccessible *aTarget, AccessibleEventData * aData) { return _to HandleEvent(aEvent, aTarget, aData); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACCESSIBLEEVENTLISTENER(_to) \
  NS_IMETHOD HandleEvent(PRUint32 aEvent, nsIAccessible *aTarget, AccessibleEventData * aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEvent(aEvent, aTarget, aData); } 

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

/* Header file */
class nsAccessibleEventListener : public nsIAccessibleEventListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIACCESSIBLEEVENTLISTENER

  nsAccessibleEventListener();
  virtual ~nsAccessibleEventListener();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAccessibleEventListener, nsIAccessibleEventListener)

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

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

/* [noscript] void handleEvent (in unsigned long aEvent, in nsIAccessible aTarget, in AccessibleEventData aData); */
NS_IMETHODIMP nsAccessibleEventListener::HandleEvent(PRUint32 aEvent, nsIAccessible *aTarget, AccessibleEventData * aData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIAccessibleEventListener_h__ */
