nsIDOMDocumentEvent.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/events/nsIDOMDocumentEvent.idl
  3. */
  4. #ifndef __gen_nsIDOMDocumentEvent_h__
  5. #define __gen_nsIDOMDocumentEvent_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: nsIDOMDocumentEvent */
  14. #define NS_IDOMDOCUMENTEVENT_IID_STR "46b91d66-28e2-11d4-ab1e-0010830123b4"
  15. #define NS_IDOMDOCUMENTEVENT_IID \
  16. {0x46b91d66, 0x28e2, 0x11d4, \
  17. { 0xab, 0x1e, 0x00, 0x10, 0x83, 0x01, 0x23, 0xb4 }}
  18. /**
  19. * The nsIDOMDocumentEvent interface is the interface to the event
  20. * factory method on a DOM document object.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-Events/
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE nsIDOMDocumentEvent : public nsISupports {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTEVENT_IID)
  30. /* nsIDOMEvent createEvent (in DOMString eventType) raises (DOMException); */
  31. NS_IMETHOD CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval) = 0;
  32. };
  33. /* Use this macro when declaring classes that implement this interface. */
  34. #define NS_DECL_NSIDOMDOCUMENTEVENT \
  35. NS_IMETHOD CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval);
  36. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  37. #define NS_FORWARD_NSIDOMDOCUMENTEVENT(_to) \
  38. NS_IMETHOD CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval) { return _to CreateEvent(eventType, _retval); }
  39. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  40. #define NS_FORWARD_SAFE_NSIDOMDOCUMENTEVENT(_to) \
  41. NS_IMETHOD CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateEvent(eventType, _retval); }
  42. #if 0
  43. /* Use the code below as a template for the implementation class for this interface. */
  44. /* Header file */
  45. class nsDOMDocumentEvent : public nsIDOMDocumentEvent
  46. {
  47. public:
  48. NS_DECL_ISUPPORTS
  49. NS_DECL_NSIDOMDOCUMENTEVENT
  50. nsDOMDocumentEvent();
  51. private:
  52. ~nsDOMDocumentEvent();
  53. protected:
  54. /* additional members */
  55. };
  56. /* Implementation file */
  57. NS_IMPL_ISUPPORTS1(nsDOMDocumentEvent, nsIDOMDocumentEvent)
  58. nsDOMDocumentEvent::nsDOMDocumentEvent()
  59. {
  60. /* member initializers and constructor code */
  61. }
  62. nsDOMDocumentEvent::~nsDOMDocumentEvent()
  63. {
  64. /* destructor code */
  65. }
  66. /* nsIDOMEvent createEvent (in DOMString eventType) raises (DOMException); */
  67. NS_IMETHODIMP nsDOMDocumentEvent::CreateEvent(const nsAString & eventType, nsIDOMEvent **_retval)
  68. {
  69. return NS_ERROR_NOT_IMPLEMENTED;
  70. }
  71. /* End of implementation class template. */
  72. #endif
  73. #endif /* __gen_nsIDOMDocumentEvent_h__ */