PageRenderTime 34ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSValueList.h

http://firefox-mac-pdf.googlecode.com/
C Header | 112 lines | 56 code | 28 blank | 28 comment | 0 complexity | ff46338b09cceea3983cd2c0d6d9edf9 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/css/nsIDOMCSSValueList.idl
  3. */
  4. #ifndef __gen_nsIDOMCSSValueList_h__
  5. #define __gen_nsIDOMCSSValueList_h__
  6. #ifndef __gen_nsIDOMCSSValue_h__
  7. #include "nsIDOMCSSValue.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: nsIDOMCSSValueList */
  14. #define NS_IDOMCSSVALUELIST_IID_STR "8f09fa84-39b9-4dca-9b2f-db0eeb186286"
  15. #define NS_IDOMCSSVALUELIST_IID \
  16. {0x8f09fa84, 0x39b9, 0x4dca, \
  17. { 0x9b, 0x2f, 0xdb, 0x0e, 0xeb, 0x18, 0x62, 0x86 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSValueList : public nsIDOMCSSValue {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSVALUELIST_IID)
  21. /**
  22. * The nsIDOMCSSValueList interface is a datatype for a list of CSS
  23. * values in the Document Object Model.
  24. *
  25. * For more information on this interface please see
  26. * http://www.w3.org/TR/DOM-Level-2-Style
  27. *
  28. * @status FROZEN
  29. */
  30. /* readonly attribute unsigned long length; */
  31. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  32. /* nsIDOMCSSValue item (in unsigned long index); */
  33. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_retval) = 0;
  34. };
  35. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSValueList, NS_IDOMCSSVALUELIST_IID)
  36. /* Use this macro when declaring classes that implement this interface. */
  37. #define NS_DECL_NSIDOMCSSVALUELIST \
  38. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
  39. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_retval);
  40. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  41. #define NS_FORWARD_NSIDOMCSSVALUELIST(_to) \
  42. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  43. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_retval) { return _to Item(index, _retval); }
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  45. #define NS_FORWARD_SAFE_NSIDOMCSSVALUELIST(_to) \
  46. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  47. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); }
  48. #if 0
  49. /* Use the code below as a template for the implementation class for this interface. */
  50. /* Header file */
  51. class nsDOMCSSValueList : public nsIDOMCSSValueList
  52. {
  53. public:
  54. NS_DECL_ISUPPORTS
  55. NS_DECL_NSIDOMCSSVALUELIST
  56. nsDOMCSSValueList();
  57. private:
  58. ~nsDOMCSSValueList();
  59. protected:
  60. /* additional members */
  61. };
  62. /* Implementation file */
  63. NS_IMPL_ISUPPORTS1(nsDOMCSSValueList, nsIDOMCSSValueList)
  64. nsDOMCSSValueList::nsDOMCSSValueList()
  65. {
  66. /* member initializers and constructor code */
  67. }
  68. nsDOMCSSValueList::~nsDOMCSSValueList()
  69. {
  70. /* destructor code */
  71. }
  72. /* readonly attribute unsigned long length; */
  73. NS_IMETHODIMP nsDOMCSSValueList::GetLength(PRUint32 *aLength)
  74. {
  75. return NS_ERROR_NOT_IMPLEMENTED;
  76. }
  77. /* nsIDOMCSSValue item (in unsigned long index); */
  78. NS_IMETHODIMP nsDOMCSSValueList::Item(PRUint32 index, nsIDOMCSSValue **_retval)
  79. {
  80. return NS_ERROR_NOT_IMPLEMENTED;
  81. }
  82. /* End of implementation class template. */
  83. #endif
  84. #endif /* __gen_nsIDOMCSSValueList_h__ */