PageRenderTime 23ms CodeModel.GetById 8ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSRuleList.h

http://firefox-mac-pdf.googlecode.com/
C Header | 112 lines | 56 code | 28 blank | 28 comment | 0 complexity | 8ff601f7caecc7e63d6be456867ca06b 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/nsIDOMCSSRuleList.idl
  3. */
  4. #ifndef __gen_nsIDOMCSSRuleList_h__
  5. #define __gen_nsIDOMCSSRuleList_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: nsIDOMCSSRuleList */
  14. #define NS_IDOMCSSRULELIST_IID_STR "a6cf90c0-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMCSSRULELIST_IID \
  16. {0xa6cf90c0, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSRuleList : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSRULELIST_IID)
  21. /**
  22. * The nsIDOMCSSRuleList interface is a datatype for a list of CSS
  23. * style rules 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. /* nsIDOMCSSRule item (in unsigned long index); */
  33. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) = 0;
  34. };
  35. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSRuleList, NS_IDOMCSSRULELIST_IID)
  36. /* Use this macro when declaring classes that implement this interface. */
  37. #define NS_DECL_NSIDOMCSSRULELIST \
  38. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
  39. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval);
  40. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  41. #define NS_FORWARD_NSIDOMCSSRULELIST(_to) \
  42. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  43. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_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_NSIDOMCSSRULELIST(_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, nsIDOMCSSRule **_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 nsDOMCSSRuleList : public nsIDOMCSSRuleList
  52. {
  53. public:
  54. NS_DECL_ISUPPORTS
  55. NS_DECL_NSIDOMCSSRULELIST
  56. nsDOMCSSRuleList();
  57. private:
  58. ~nsDOMCSSRuleList();
  59. protected:
  60. /* additional members */
  61. };
  62. /* Implementation file */
  63. NS_IMPL_ISUPPORTS1(nsDOMCSSRuleList, nsIDOMCSSRuleList)
  64. nsDOMCSSRuleList::nsDOMCSSRuleList()
  65. {
  66. /* member initializers and constructor code */
  67. }
  68. nsDOMCSSRuleList::~nsDOMCSSRuleList()
  69. {
  70. /* destructor code */
  71. }
  72. /* readonly attribute unsigned long length; */
  73. NS_IMETHODIMP nsDOMCSSRuleList::GetLength(PRUint32 *aLength)
  74. {
  75. return NS_ERROR_NOT_IMPLEMENTED;
  76. }
  77. /* nsIDOMCSSRule item (in unsigned long index); */
  78. NS_IMETHODIMP nsDOMCSSRuleList::Item(PRUint32 index, nsIDOMCSSRule **_retval)
  79. {
  80. return NS_ERROR_NOT_IMPLEMENTED;
  81. }
  82. /* End of implementation class template. */
  83. #endif
  84. #endif /* __gen_nsIDOMCSSRuleList_h__ */