PageRenderTime 147ms CodeModel.GetById 73ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSValue.h

http://firefox-mac-pdf.googlecode.com/
C Header | 128 lines | 68 code | 32 blank | 28 comment | 0 complexity | fc3db367d3961514c6a8663814676386 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/nsIDOMCSSValue.idl
  3. */
  4. #ifndef __gen_nsIDOMCSSValue_h__
  5. #define __gen_nsIDOMCSSValue_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: nsIDOMCSSValue */
  14. #define NS_IDOMCSSVALUE_IID_STR "009f7ea5-9e80-41be-b008-db62f10823f2"
  15. #define NS_IDOMCSSVALUE_IID \
  16. {0x009f7ea5, 0x9e80, 0x41be, \
  17. { 0xb0, 0x08, 0xdb, 0x62, 0xf1, 0x08, 0x23, 0xf2 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSValue : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSVALUE_IID)
  21. /**
  22. * The nsIDOMCSSValue interface is a datatype for a CSS value in the
  23. * 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. enum { CSS_INHERIT = 0U };
  31. enum { CSS_PRIMITIVE_VALUE = 1U };
  32. enum { CSS_VALUE_LIST = 2U };
  33. enum { CSS_CUSTOM = 3U };
  34. /* attribute DOMString cssText; */
  35. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
  36. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
  37. /* readonly attribute unsigned short cssValueType; */
  38. NS_SCRIPTABLE NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) = 0;
  39. };
  40. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSValue, NS_IDOMCSSVALUE_IID)
  41. /* Use this macro when declaring classes that implement this interface. */
  42. #define NS_DECL_NSIDOMCSSVALUE \
  43. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText); \
  44. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText); \
  45. NS_SCRIPTABLE NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType);
  46. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  47. #define NS_FORWARD_NSIDOMCSSVALUE(_to) \
  48. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
  49. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \
  50. NS_SCRIPTABLE NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) { return _to GetCssValueType(aCssValueType); }
  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_NSIDOMCSSVALUE(_to) \
  53. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
  54. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
  55. NS_SCRIPTABLE NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssValueType(aCssValueType); }
  56. #if 0
  57. /* Use the code below as a template for the implementation class for this interface. */
  58. /* Header file */
  59. class nsDOMCSSValue : public nsIDOMCSSValue
  60. {
  61. public:
  62. NS_DECL_ISUPPORTS
  63. NS_DECL_NSIDOMCSSVALUE
  64. nsDOMCSSValue();
  65. private:
  66. ~nsDOMCSSValue();
  67. protected:
  68. /* additional members */
  69. };
  70. /* Implementation file */
  71. NS_IMPL_ISUPPORTS1(nsDOMCSSValue, nsIDOMCSSValue)
  72. nsDOMCSSValue::nsDOMCSSValue()
  73. {
  74. /* member initializers and constructor code */
  75. }
  76. nsDOMCSSValue::~nsDOMCSSValue()
  77. {
  78. /* destructor code */
  79. }
  80. /* attribute DOMString cssText; */
  81. NS_IMETHODIMP nsDOMCSSValue::GetCssText(nsAString & aCssText)
  82. {
  83. return NS_ERROR_NOT_IMPLEMENTED;
  84. }
  85. NS_IMETHODIMP nsDOMCSSValue::SetCssText(const nsAString & aCssText)
  86. {
  87. return NS_ERROR_NOT_IMPLEMENTED;
  88. }
  89. /* readonly attribute unsigned short cssValueType; */
  90. NS_IMETHODIMP nsDOMCSSValue::GetCssValueType(PRUint16 *aCssValueType)
  91. {
  92. return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94. /* End of implementation class template. */
  95. #endif
  96. #endif /* __gen_nsIDOMCSSValue_h__ */