nsIDOMCustomEvent.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/events/nsIDOMCustomEvent.idl
  3. */
  4. #ifndef __gen_nsIDOMCustomEvent_h__
  5. #define __gen_nsIDOMCustomEvent_h__
  6. #ifndef __gen_nsIDOMEvent_h__
  7. #include "nsIDOMEvent.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: nsIDOMCustomEvent */
  14. #define NS_IDOMCUSTOMEVENT_IID_STR "55c7af7b-1a64-40bf-87eb-2c2cbee0491b"
  15. #define NS_IDOMCUSTOMEVENT_IID \
  16. {0x55c7af7b, 0x1a64, 0x40bf, \
  17. { 0x87, 0xeb, 0x2c, 0x2c, 0xbe, 0xe0, 0x49, 0x1b }}
  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 nsIDOMCustomEvent : public nsIDOMEvent {
  26. public:
  27. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCUSTOMEVENT_IID)
  28. /* void setCurrentTarget (in nsIDOMNode target); */
  29. NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) = 0;
  30. /* void setEventPhase (in unsigned short phase); */
  31. NS_IMETHOD SetEventPhase(PRUint16 phase) = 0;
  32. };
  33. /* Use this macro when declaring classes that implement this interface. */
  34. #define NS_DECL_NSIDOMCUSTOMEVENT \
  35. NS_IMETHOD SetCurrentTarget(nsIDOMNode *target); \
  36. NS_IMETHOD SetEventPhase(PRUint16 phase);
  37. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  38. #define NS_FORWARD_NSIDOMCUSTOMEVENT(_to) \
  39. NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) { return _to SetCurrentTarget(target); } \
  40. NS_IMETHOD SetEventPhase(PRUint16 phase) { return _to SetEventPhase(phase); }
  41. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  42. #define NS_FORWARD_SAFE_NSIDOMCUSTOMEVENT(_to) \
  43. NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentTarget(target); } \
  44. NS_IMETHOD SetEventPhase(PRUint16 phase) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEventPhase(phase); }
  45. #if 0
  46. /* Use the code below as a template for the implementation class for this interface. */
  47. /* Header file */
  48. class nsDOMCustomEvent : public nsIDOMCustomEvent
  49. {
  50. public:
  51. NS_DECL_ISUPPORTS
  52. NS_DECL_NSIDOMCUSTOMEVENT
  53. nsDOMCustomEvent();
  54. private:
  55. ~nsDOMCustomEvent();
  56. protected:
  57. /* additional members */
  58. };
  59. /* Implementation file */
  60. NS_IMPL_ISUPPORTS1(nsDOMCustomEvent, nsIDOMCustomEvent)
  61. nsDOMCustomEvent::nsDOMCustomEvent()
  62. {
  63. /* member initializers and constructor code */
  64. }
  65. nsDOMCustomEvent::~nsDOMCustomEvent()
  66. {
  67. /* destructor code */
  68. }
  69. /* void setCurrentTarget (in nsIDOMNode target); */
  70. NS_IMETHODIMP nsDOMCustomEvent::SetCurrentTarget(nsIDOMNode *target)
  71. {
  72. return NS_ERROR_NOT_IMPLEMENTED;
  73. }
  74. /* void setEventPhase (in unsigned short phase); */
  75. NS_IMETHODIMP nsDOMCustomEvent::SetEventPhase(PRUint16 phase)
  76. {
  77. return NS_ERROR_NOT_IMPLEMENTED;
  78. }
  79. /* End of implementation class template. */
  80. #endif
  81. #endif /* __gen_nsIDOMCustomEvent_h__ */