PageRenderTime 26ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMMediaList.h

http://firefox-mac-pdf.googlecode.com/
C Header | 156 lines | 88 code | 34 blank | 34 comment | 0 complexity | c81237ba96e61e7aa7602718d867f934 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/stylesheets/nsIDOMMediaList.idl
  3. */
  4. #ifndef __gen_nsIDOMMediaList_h__
  5. #define __gen_nsIDOMMediaList_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: nsIDOMMediaList */
  14. #define NS_IDOMMEDIALIST_IID_STR "9b0c2ed7-111c-4824-adf9-ef0da6dad371"
  15. #define NS_IDOMMEDIALIST_IID \
  16. {0x9b0c2ed7, 0x111c, 0x4824, \
  17. { 0xad, 0xf9, 0xef, 0x0d, 0xa6, 0xda, 0xd3, 0x71 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMediaList : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMEDIALIST_IID)
  21. /**
  22. * The nsIDOMMediaList interface is a datatype for a list of media
  23. * types 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. /* attribute DOMString mediaText; */
  31. NS_SCRIPTABLE NS_IMETHOD GetMediaText(nsAString & aMediaText) = 0;
  32. NS_SCRIPTABLE NS_IMETHOD SetMediaText(const nsAString & aMediaText) = 0;
  33. /* readonly attribute unsigned long length; */
  34. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  35. /* DOMString item (in unsigned long index); */
  36. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) = 0;
  37. /* void deleteMedium (in DOMString oldMedium) raises (DOMException); */
  38. NS_SCRIPTABLE NS_IMETHOD DeleteMedium(const nsAString & oldMedium) = 0;
  39. /* void appendMedium (in DOMString newMedium) raises (DOMException); */
  40. NS_SCRIPTABLE NS_IMETHOD AppendMedium(const nsAString & newMedium) = 0;
  41. };
  42. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMediaList, NS_IDOMMEDIALIST_IID)
  43. /* Use this macro when declaring classes that implement this interface. */
  44. #define NS_DECL_NSIDOMMEDIALIST \
  45. NS_SCRIPTABLE NS_IMETHOD GetMediaText(nsAString & aMediaText); \
  46. NS_SCRIPTABLE NS_IMETHOD SetMediaText(const nsAString & aMediaText); \
  47. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
  48. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval); \
  49. NS_SCRIPTABLE NS_IMETHOD DeleteMedium(const nsAString & oldMedium); \
  50. NS_SCRIPTABLE NS_IMETHOD AppendMedium(const nsAString & newMedium);
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIDOMMEDIALIST(_to) \
  53. NS_SCRIPTABLE NS_IMETHOD GetMediaText(nsAString & aMediaText) { return _to GetMediaText(aMediaText); } \
  54. NS_SCRIPTABLE NS_IMETHOD SetMediaText(const nsAString & aMediaText) { return _to SetMediaText(aMediaText); } \
  55. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  56. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return _to Item(index, _retval); } \
  57. NS_SCRIPTABLE NS_IMETHOD DeleteMedium(const nsAString & oldMedium) { return _to DeleteMedium(oldMedium); } \
  58. NS_SCRIPTABLE NS_IMETHOD AppendMedium(const nsAString & newMedium) { return _to AppendMedium(newMedium); }
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  60. #define NS_FORWARD_SAFE_NSIDOMMEDIALIST(_to) \
  61. NS_SCRIPTABLE NS_IMETHOD GetMediaText(nsAString & aMediaText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMediaText(aMediaText); } \
  62. NS_SCRIPTABLE NS_IMETHOD SetMediaText(const nsAString & aMediaText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMediaText(aMediaText); } \
  63. NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  64. NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  65. NS_SCRIPTABLE NS_IMETHOD DeleteMedium(const nsAString & oldMedium) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMedium(oldMedium); } \
  66. NS_SCRIPTABLE NS_IMETHOD AppendMedium(const nsAString & newMedium) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendMedium(newMedium); }
  67. #if 0
  68. /* Use the code below as a template for the implementation class for this interface. */
  69. /* Header file */
  70. class nsDOMMediaList : public nsIDOMMediaList
  71. {
  72. public:
  73. NS_DECL_ISUPPORTS
  74. NS_DECL_NSIDOMMEDIALIST
  75. nsDOMMediaList();
  76. private:
  77. ~nsDOMMediaList();
  78. protected:
  79. /* additional members */
  80. };
  81. /* Implementation file */
  82. NS_IMPL_ISUPPORTS1(nsDOMMediaList, nsIDOMMediaList)
  83. nsDOMMediaList::nsDOMMediaList()
  84. {
  85. /* member initializers and constructor code */
  86. }
  87. nsDOMMediaList::~nsDOMMediaList()
  88. {
  89. /* destructor code */
  90. }
  91. /* attribute DOMString mediaText; */
  92. NS_IMETHODIMP nsDOMMediaList::GetMediaText(nsAString & aMediaText)
  93. {
  94. return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96. NS_IMETHODIMP nsDOMMediaList::SetMediaText(const nsAString & aMediaText)
  97. {
  98. return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100. /* readonly attribute unsigned long length; */
  101. NS_IMETHODIMP nsDOMMediaList::GetLength(PRUint32 *aLength)
  102. {
  103. return NS_ERROR_NOT_IMPLEMENTED;
  104. }
  105. /* DOMString item (in unsigned long index); */
  106. NS_IMETHODIMP nsDOMMediaList::Item(PRUint32 index, nsAString & _retval)
  107. {
  108. return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110. /* void deleteMedium (in DOMString oldMedium) raises (DOMException); */
  111. NS_IMETHODIMP nsDOMMediaList::DeleteMedium(const nsAString & oldMedium)
  112. {
  113. return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115. /* void appendMedium (in DOMString newMedium) raises (DOMException); */
  116. NS_IMETHODIMP nsDOMMediaList::AppendMedium(const nsAString & newMedium)
  117. {
  118. return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120. /* End of implementation class template. */
  121. #endif
  122. #endif /* __gen_nsIDOMMediaList_h__ */