nsIDOM3EventTarget.h 5.7 KB

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