/gecko_api/include/nsIDOMCustomEvent.h

http://firefox-mac-pdf.googlecode.com/ · C Header · 110 lines · 56 code · 28 blank · 26 comment · 0 complexity · a839d8707c1246641b18eff964812924 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/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 NS_SCRIPTABLE nsIDOMCustomEvent : public nsIDOMEvent {
  26. public:
  27. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCUSTOMEVENT_IID)
  28. /* void setCurrentTarget (in nsIDOMNode target); */
  29. NS_SCRIPTABLE NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) = 0;
  30. /* void setEventPhase (in unsigned short phase); */
  31. NS_SCRIPTABLE NS_IMETHOD SetEventPhase(PRUint16 phase) = 0;
  32. };
  33. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCustomEvent, NS_IDOMCUSTOMEVENT_IID)
  34. /* Use this macro when declaring classes that implement this interface. */
  35. #define NS_DECL_NSIDOMCUSTOMEVENT \
  36. NS_SCRIPTABLE NS_IMETHOD SetCurrentTarget(nsIDOMNode *target); \
  37. NS_SCRIPTABLE NS_IMETHOD SetEventPhase(PRUint16 phase);
  38. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  39. #define NS_FORWARD_NSIDOMCUSTOMEVENT(_to) \
  40. NS_SCRIPTABLE NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) { return _to SetCurrentTarget(target); } \
  41. NS_SCRIPTABLE NS_IMETHOD SetEventPhase(PRUint16 phase) { return _to SetEventPhase(phase); }
  42. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  43. #define NS_FORWARD_SAFE_NSIDOMCUSTOMEVENT(_to) \
  44. NS_SCRIPTABLE NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentTarget(target); } \
  45. NS_SCRIPTABLE NS_IMETHOD SetEventPhase(PRUint16 phase) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEventPhase(phase); }
  46. #if 0
  47. /* Use the code below as a template for the implementation class for this interface. */
  48. /* Header file */
  49. class nsDOMCustomEvent : public nsIDOMCustomEvent
  50. {
  51. public:
  52. NS_DECL_ISUPPORTS
  53. NS_DECL_NSIDOMCUSTOMEVENT
  54. nsDOMCustomEvent();
  55. private:
  56. ~nsDOMCustomEvent();
  57. protected:
  58. /* additional members */
  59. };
  60. /* Implementation file */
  61. NS_IMPL_ISUPPORTS1(nsDOMCustomEvent, nsIDOMCustomEvent)
  62. nsDOMCustomEvent::nsDOMCustomEvent()
  63. {
  64. /* member initializers and constructor code */
  65. }
  66. nsDOMCustomEvent::~nsDOMCustomEvent()
  67. {
  68. /* destructor code */
  69. }
  70. /* void setCurrentTarget (in nsIDOMNode target); */
  71. NS_IMETHODIMP nsDOMCustomEvent::SetCurrentTarget(nsIDOMNode *target)
  72. {
  73. return NS_ERROR_NOT_IMPLEMENTED;
  74. }
  75. /* void setEventPhase (in unsigned short phase); */
  76. NS_IMETHODIMP nsDOMCustomEvent::SetEventPhase(PRUint16 phase)
  77. {
  78. return NS_ERROR_NOT_IMPLEMENTED;
  79. }
  80. /* End of implementation class template. */
  81. #endif
  82. #endif /* __gen_nsIDOMCustomEvent_h__ */