/gecko_api/include/nsIDOMHTMLMapElement.h

http://firefox-mac-pdf.googlecode.com/ · C Header · 120 lines · 64 code · 28 blank · 28 comment · 0 complexity · 017e9d62eb49ed631be279556b3600f1 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/html/nsIDOMHTMLMapElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLMapElement_h__
  5. #define __gen_nsIDOMHTMLMapElement_h__
  6. #ifndef __gen_nsIDOMHTMLElement_h__
  7. #include "nsIDOMHTMLElement.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: nsIDOMHTMLMapElement */
  14. #define NS_IDOMHTMLMAPELEMENT_IID_STR "a6cf90af-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLMAPELEMENT_IID \
  16. {0xa6cf90af, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLMapElement interface is the interface to a [X]HTML
  20. * map element.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-HTML/
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLMapElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLMAPELEMENT_IID)
  30. /* readonly attribute nsIDOMHTMLCollection areas; */
  31. NS_SCRIPTABLE NS_IMETHOD GetAreas(nsIDOMHTMLCollection * *aAreas) = 0;
  32. /* attribute DOMString name; */
  33. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
  34. NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
  35. };
  36. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLMapElement, NS_IDOMHTMLMAPELEMENT_IID)
  37. /* Use this macro when declaring classes that implement this interface. */
  38. #define NS_DECL_NSIDOMHTMLMAPELEMENT \
  39. NS_SCRIPTABLE NS_IMETHOD GetAreas(nsIDOMHTMLCollection * *aAreas); \
  40. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
  41. NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName);
  42. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  43. #define NS_FORWARD_NSIDOMHTMLMAPELEMENT(_to) \
  44. NS_SCRIPTABLE NS_IMETHOD GetAreas(nsIDOMHTMLCollection * *aAreas) { return _to GetAreas(aAreas); } \
  45. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  46. NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); }
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIDOMHTMLMAPELEMENT(_to) \
  49. NS_SCRIPTABLE NS_IMETHOD GetAreas(nsIDOMHTMLCollection * *aAreas) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAreas(aAreas); } \
  50. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  51. NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); }
  52. #if 0
  53. /* Use the code below as a template for the implementation class for this interface. */
  54. /* Header file */
  55. class nsDOMHTMLMapElement : public nsIDOMHTMLMapElement
  56. {
  57. public:
  58. NS_DECL_ISUPPORTS
  59. NS_DECL_NSIDOMHTMLMAPELEMENT
  60. nsDOMHTMLMapElement();
  61. private:
  62. ~nsDOMHTMLMapElement();
  63. protected:
  64. /* additional members */
  65. };
  66. /* Implementation file */
  67. NS_IMPL_ISUPPORTS1(nsDOMHTMLMapElement, nsIDOMHTMLMapElement)
  68. nsDOMHTMLMapElement::nsDOMHTMLMapElement()
  69. {
  70. /* member initializers and constructor code */
  71. }
  72. nsDOMHTMLMapElement::~nsDOMHTMLMapElement()
  73. {
  74. /* destructor code */
  75. }
  76. /* readonly attribute nsIDOMHTMLCollection areas; */
  77. NS_IMETHODIMP nsDOMHTMLMapElement::GetAreas(nsIDOMHTMLCollection * *aAreas)
  78. {
  79. return NS_ERROR_NOT_IMPLEMENTED;
  80. }
  81. /* attribute DOMString name; */
  82. NS_IMETHODIMP nsDOMHTMLMapElement::GetName(nsAString & aName)
  83. {
  84. return NS_ERROR_NOT_IMPLEMENTED;
  85. }
  86. NS_IMETHODIMP nsDOMHTMLMapElement::SetName(const nsAString & aName)
  87. {
  88. return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90. /* End of implementation class template. */
  91. #endif
  92. #endif /* __gen_nsIDOMHTMLMapElement_h__ */