PageRenderTime 49ms CodeModel.GetById 41ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLOptionsCollection.h

http://firefox-mac-pdf.googlecode.com/
C Header | 132 lines | 72 code | 30 blank | 30 comment | 0 complexity | d3a4892c1ec19be630c13dc284ee2274 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/nsIDOMHTMLOptionsCollection.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLOptionsCollection_h__
  5. #define __gen_nsIDOMHTMLOptionsCollection_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: nsIDOMHTMLOptionsCollection */
  14. #define NS_IDOMHTMLOPTIONSCOLLECTION_IID_STR "bce0213c-f70f-488f-b93f-688acca55d63"
  15. #define NS_IDOMHTMLOPTIONSCOLLECTION_IID \
  16. {0xbce0213c, 0xf70f, 0x488f, \
  17. { 0xb9, 0x3f, 0x68, 0x8a, 0xcc, 0xa5, 0x5d, 0x63 }}
  18. /**
  19. * The nsIDOMHTMLOptionsCollection interface is the interface to a
  20. * collection of [X]HTML option elements.
  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 nsIDOMHTMLOptionsCollection : public nsISupports {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTIONSCOLLECTION_IID)
  30. /* attribute unsigned long length; */
  31. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  32. NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) = 0;
  33. /* nsIDOMNode item (in unsigned long index); */
  34. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) = 0;
  35. /* nsIDOMNode namedItem (in DOMString name); */
  36. NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
  37. };
  38. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLOptionsCollection, NS_IDOMHTMLOPTIONSCOLLECTION_IID)
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION \
  41. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
  42. NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength); \
  43. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval); \
  44. NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval);
  45. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  46. #define NS_FORWARD_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
  47. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  48. NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return _to SetLength(aLength); } \
  49. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return _to Item(index, _retval); } \
  50. NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return _to NamedItem(name, _retval); }
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  52. #define NS_FORWARD_SAFE_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
  53. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  54. NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLength(aLength); } \
  55. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  56. NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); }
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59. /* Header file */
  60. class nsDOMHTMLOptionsCollection : public nsIDOMHTMLOptionsCollection
  61. {
  62. public:
  63. NS_DECL_ISUPPORTS
  64. NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION
  65. nsDOMHTMLOptionsCollection();
  66. private:
  67. ~nsDOMHTMLOptionsCollection();
  68. protected:
  69. /* additional members */
  70. };
  71. /* Implementation file */
  72. NS_IMPL_ISUPPORTS1(nsDOMHTMLOptionsCollection, nsIDOMHTMLOptionsCollection)
  73. nsDOMHTMLOptionsCollection::nsDOMHTMLOptionsCollection()
  74. {
  75. /* member initializers and constructor code */
  76. }
  77. nsDOMHTMLOptionsCollection::~nsDOMHTMLOptionsCollection()
  78. {
  79. /* destructor code */
  80. }
  81. /* attribute unsigned long length; */
  82. NS_IMETHODIMP nsDOMHTMLOptionsCollection::GetLength(PRUint32 *aLength)
  83. {
  84. return NS_ERROR_NOT_IMPLEMENTED;
  85. }
  86. NS_IMETHODIMP nsDOMHTMLOptionsCollection::SetLength(PRUint32 aLength)
  87. {
  88. return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90. /* nsIDOMNode item (in unsigned long index); */
  91. NS_IMETHODIMP nsDOMHTMLOptionsCollection::Item(PRUint32 index, nsIDOMNode **_retval)
  92. {
  93. return NS_ERROR_NOT_IMPLEMENTED;
  94. }
  95. /* nsIDOMNode namedItem (in DOMString name); */
  96. NS_IMETHODIMP nsDOMHTMLOptionsCollection::NamedItem(const nsAString & name, nsIDOMNode **_retval)
  97. {
  98. return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100. /* End of implementation class template. */
  101. #endif
  102. #endif /* __gen_nsIDOMHTMLOptionsCollection_h__ */