PageRenderTime 158ms CodeModel.GetById 70ms app.highlight 17ms RepoModel.GetById 64ms app.codeStats 1ms

/gecko_api/include/nsIDOM3EventTarget.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 134 lines | 72 code | 32 blank | 30 comment | 0 complexity | 39857cec8dd0af43e553874319fd7bb6 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/events/nsIDOM3EventTarget.idl
  3 */
  4
  5#ifndef __gen_nsIDOM3EventTarget_h__
  6#define __gen_nsIDOM3EventTarget_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIDOM3EventTarget */
 19#define NS_IDOM3EVENTTARGET_IID_STR "3e9c01a7-de97-4c3b-8294-b4bd9d7056d1"
 20
 21#define NS_IDOM3EVENTTARGET_IID \
 22  {0x3e9c01a7, 0xde97, 0x4c3b, \
 23    { 0x82, 0x94, 0xb4, 0xbd, 0x9d, 0x70, 0x56, 0xd1 }}
 24
 25/**
 26 * The nsIDOMEventTarget interface is the interface implemented by all
 27 * event targets in the Document Object Model.
 28 *
 29 * For more information on this interface please see 
 30 * http://www.w3.org/TR/DOM-Level-3-Events/
 31 */
 32class NS_NO_VTABLE NS_SCRIPTABLE nsIDOM3EventTarget : public nsISupports {
 33 public: 
 34
 35  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOM3EVENTTARGET_IID)
 36
 37  /* void addGroupedEventListener (in DOMString type, in nsIDOMEventListener listener, in boolean useCapture, in nsIDOMEventGroup evtGroup); */
 38  NS_SCRIPTABLE NS_IMETHOD AddGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup) = 0;
 39
 40  /* void removeGroupedEventListener (in DOMString type, in nsIDOMEventListener listener, in boolean useCapture, in nsIDOMEventGroup evtGroup); */
 41  NS_SCRIPTABLE NS_IMETHOD RemoveGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup) = 0;
 42
 43  /* boolean canTrigger (in DOMString type); */
 44  NS_SCRIPTABLE NS_IMETHOD CanTrigger(const nsAString & type, PRBool *_retval) = 0;
 45
 46  /* boolean isRegisteredHere (in DOMString type); */
 47  NS_SCRIPTABLE NS_IMETHOD IsRegisteredHere(const nsAString & type, PRBool *_retval) = 0;
 48
 49};
 50
 51  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOM3EventTarget, NS_IDOM3EVENTTARGET_IID)
 52
 53/* Use this macro when declaring classes that implement this interface. */
 54#define NS_DECL_NSIDOM3EVENTTARGET \
 55  NS_SCRIPTABLE NS_IMETHOD AddGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup); \
 56  NS_SCRIPTABLE NS_IMETHOD RemoveGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup); \
 57  NS_SCRIPTABLE NS_IMETHOD CanTrigger(const nsAString & type, PRBool *_retval); \
 58  NS_SCRIPTABLE NS_IMETHOD IsRegisteredHere(const nsAString & type, PRBool *_retval); 
 59
 60/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 61#define NS_FORWARD_NSIDOM3EVENTTARGET(_to) \
 62  NS_SCRIPTABLE NS_IMETHOD AddGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup) { return _to AddGroupedEventListener(type, listener, useCapture, evtGroup); } \
 63  NS_SCRIPTABLE NS_IMETHOD RemoveGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup) { return _to RemoveGroupedEventListener(type, listener, useCapture, evtGroup); } \
 64  NS_SCRIPTABLE NS_IMETHOD CanTrigger(const nsAString & type, PRBool *_retval) { return _to CanTrigger(type, _retval); } \
 65  NS_SCRIPTABLE NS_IMETHOD IsRegisteredHere(const nsAString & type, PRBool *_retval) { return _to IsRegisteredHere(type, _retval); } 
 66
 67/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 68#define NS_FORWARD_SAFE_NSIDOM3EVENTTARGET(_to) \
 69  NS_SCRIPTABLE NS_IMETHOD AddGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddGroupedEventListener(type, listener, useCapture, evtGroup); } \
 70  NS_SCRIPTABLE NS_IMETHOD RemoveGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveGroupedEventListener(type, listener, useCapture, evtGroup); } \
 71  NS_SCRIPTABLE NS_IMETHOD CanTrigger(const nsAString & type, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanTrigger(type, _retval); } \
 72  NS_SCRIPTABLE NS_IMETHOD IsRegisteredHere(const nsAString & type, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsRegisteredHere(type, _retval); } 
 73
 74#if 0
 75/* Use the code below as a template for the implementation class for this interface. */
 76
 77/* Header file */
 78class nsDOM3EventTarget : public nsIDOM3EventTarget
 79{
 80public:
 81  NS_DECL_ISUPPORTS
 82  NS_DECL_NSIDOM3EVENTTARGET
 83
 84  nsDOM3EventTarget();
 85
 86private:
 87  ~nsDOM3EventTarget();
 88
 89protected:
 90  /* additional members */
 91};
 92
 93/* Implementation file */
 94NS_IMPL_ISUPPORTS1(nsDOM3EventTarget, nsIDOM3EventTarget)
 95
 96nsDOM3EventTarget::nsDOM3EventTarget()
 97{
 98  /* member initializers and constructor code */
 99}
100
101nsDOM3EventTarget::~nsDOM3EventTarget()
102{
103  /* destructor code */
104}
105
106/* void addGroupedEventListener (in DOMString type, in nsIDOMEventListener listener, in boolean useCapture, in nsIDOMEventGroup evtGroup); */
107NS_IMETHODIMP nsDOM3EventTarget::AddGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup)
108{
109    return NS_ERROR_NOT_IMPLEMENTED;
110}
111
112/* void removeGroupedEventListener (in DOMString type, in nsIDOMEventListener listener, in boolean useCapture, in nsIDOMEventGroup evtGroup); */
113NS_IMETHODIMP nsDOM3EventTarget::RemoveGroupedEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, nsIDOMEventGroup *evtGroup)
114{
115    return NS_ERROR_NOT_IMPLEMENTED;
116}
117
118/* boolean canTrigger (in DOMString type); */
119NS_IMETHODIMP nsDOM3EventTarget::CanTrigger(const nsAString & type, PRBool *_retval)
120{
121    return NS_ERROR_NOT_IMPLEMENTED;
122}
123
124/* boolean isRegisteredHere (in DOMString type); */
125NS_IMETHODIMP nsDOM3EventTarget::IsRegisteredHere(const nsAString & type, PRBool *_retval)
126{
127    return NS_ERROR_NOT_IMPLEMENTED;
128}
129
130/* End of implementation class template. */
131#endif
132
133
134#endif /* __gen_nsIDOM3EventTarget_h__ */