PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSPrimitiveValue.h

http://firefox-mac-pdf.googlecode.com/
C Header | 236 lines | 130 code | 66 blank | 40 comment | 0 complexity | 3834eb9cebcac1eec8737a31117b7329 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/nsIDOMCSSPrimitiveValue.idl
  3. */
  4. #ifndef __gen_nsIDOMCSSPrimitiveValue_h__
  5. #define __gen_nsIDOMCSSPrimitiveValue_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: nsIDOMCSSPrimitiveValue */
  14. #define NS_IDOMCSSPRIMITIVEVALUE_IID_STR "e249031f-8df9-4e7a-b644-18946dce0019"
  15. #define NS_IDOMCSSPRIMITIVEVALUE_IID \
  16. {0xe249031f, 0x8df9, 0x4e7a, \
  17. { 0xb6, 0x44, 0x18, 0x94, 0x6d, 0xce, 0x00, 0x19 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSPrimitiveValue : public nsIDOMCSSValue {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSPRIMITIVEVALUE_IID)
  21. /**
  22. * The nsIDOMCSSPrimitiveValue interface is a datatype for a primitive
  23. * CSS value 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. enum { CSS_UNKNOWN = 0U };
  31. enum { CSS_NUMBER = 1U };
  32. enum { CSS_PERCENTAGE = 2U };
  33. enum { CSS_EMS = 3U };
  34. enum { CSS_EXS = 4U };
  35. enum { CSS_PX = 5U };
  36. enum { CSS_CM = 6U };
  37. enum { CSS_MM = 7U };
  38. enum { CSS_IN = 8U };
  39. enum { CSS_PT = 9U };
  40. enum { CSS_PC = 10U };
  41. enum { CSS_DEG = 11U };
  42. enum { CSS_RAD = 12U };
  43. enum { CSS_GRAD = 13U };
  44. enum { CSS_MS = 14U };
  45. enum { CSS_S = 15U };
  46. enum { CSS_HZ = 16U };
  47. enum { CSS_KHZ = 17U };
  48. enum { CSS_DIMENSION = 18U };
  49. enum { CSS_STRING = 19U };
  50. enum { CSS_URI = 20U };
  51. enum { CSS_IDENT = 21U };
  52. enum { CSS_ATTR = 22U };
  53. enum { CSS_COUNTER = 23U };
  54. enum { CSS_RECT = 24U };
  55. enum { CSS_RGBCOLOR = 25U };
  56. /* readonly attribute unsigned short primitiveType; */
  57. NS_SCRIPTABLE NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType) = 0;
  58. /* void setFloatValue (in unsigned short unitType, in float floatValue) raises (DOMException); */
  59. NS_SCRIPTABLE NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue) = 0;
  60. /* float getFloatValue (in unsigned short unitType) raises (DOMException); */
  61. NS_SCRIPTABLE NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval) = 0;
  62. /* void setStringValue (in unsigned short stringType, in DOMString stringValue) raises (DOMException); */
  63. NS_SCRIPTABLE NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue) = 0;
  64. /* DOMString getStringValue () raises (DOMException); */
  65. NS_SCRIPTABLE NS_IMETHOD GetStringValue(nsAString & _retval) = 0;
  66. /* nsIDOMCounter getCounterValue () raises (DOMException); */
  67. NS_SCRIPTABLE NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval) = 0;
  68. /* nsIDOMRect getRectValue () raises (DOMException); */
  69. NS_SCRIPTABLE NS_IMETHOD GetRectValue(nsIDOMRect **_retval) = 0;
  70. /* nsIDOMRGBColor getRGBColorValue () raises (DOMException); */
  71. NS_SCRIPTABLE NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval) = 0;
  72. };
  73. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSPrimitiveValue, NS_IDOMCSSPRIMITIVEVALUE_IID)
  74. /* Use this macro when declaring classes that implement this interface. */
  75. #define NS_DECL_NSIDOMCSSPRIMITIVEVALUE \
  76. NS_SCRIPTABLE NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType); \
  77. NS_SCRIPTABLE NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue); \
  78. NS_SCRIPTABLE NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval); \
  79. NS_SCRIPTABLE NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue); \
  80. NS_SCRIPTABLE NS_IMETHOD GetStringValue(nsAString & _retval); \
  81. NS_SCRIPTABLE NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval); \
  82. NS_SCRIPTABLE NS_IMETHOD GetRectValue(nsIDOMRect **_retval); \
  83. NS_SCRIPTABLE NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval);
  84. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  85. #define NS_FORWARD_NSIDOMCSSPRIMITIVEVALUE(_to) \
  86. NS_SCRIPTABLE NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType) { return _to GetPrimitiveType(aPrimitiveType); } \
  87. NS_SCRIPTABLE NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue) { return _to SetFloatValue(unitType, floatValue); } \
  88. NS_SCRIPTABLE NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval) { return _to GetFloatValue(unitType, _retval); } \
  89. NS_SCRIPTABLE NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue) { return _to SetStringValue(stringType, stringValue); } \
  90. NS_SCRIPTABLE NS_IMETHOD GetStringValue(nsAString & _retval) { return _to GetStringValue(_retval); } \
  91. NS_SCRIPTABLE NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval) { return _to GetCounterValue(_retval); } \
  92. NS_SCRIPTABLE NS_IMETHOD GetRectValue(nsIDOMRect **_retval) { return _to GetRectValue(_retval); } \
  93. NS_SCRIPTABLE NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval) { return _to GetRGBColorValue(_retval); }
  94. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  95. #define NS_FORWARD_SAFE_NSIDOMCSSPRIMITIVEVALUE(_to) \
  96. NS_SCRIPTABLE NS_IMETHOD GetPrimitiveType(PRUint16 *aPrimitiveType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimitiveType(aPrimitiveType); } \
  97. NS_SCRIPTABLE NS_IMETHOD SetFloatValue(PRUint16 unitType, float floatValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFloatValue(unitType, floatValue); } \
  98. NS_SCRIPTABLE NS_IMETHOD GetFloatValue(PRUint16 unitType, float *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloatValue(unitType, _retval); } \
  99. NS_SCRIPTABLE NS_IMETHOD SetStringValue(PRUint16 stringType, const nsAString & stringValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringValue(stringType, stringValue); } \
  100. NS_SCRIPTABLE NS_IMETHOD GetStringValue(nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringValue(_retval); } \
  101. NS_SCRIPTABLE NS_IMETHOD GetCounterValue(nsIDOMCounter **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCounterValue(_retval); } \
  102. NS_SCRIPTABLE NS_IMETHOD GetRectValue(nsIDOMRect **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRectValue(_retval); } \
  103. NS_SCRIPTABLE NS_IMETHOD GetRGBColorValue(nsIDOMRGBColor **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRGBColorValue(_retval); }
  104. #if 0
  105. /* Use the code below as a template for the implementation class for this interface. */
  106. /* Header file */
  107. class nsDOMCSSPrimitiveValue : public nsIDOMCSSPrimitiveValue
  108. {
  109. public:
  110. NS_DECL_ISUPPORTS
  111. NS_DECL_NSIDOMCSSPRIMITIVEVALUE
  112. nsDOMCSSPrimitiveValue();
  113. private:
  114. ~nsDOMCSSPrimitiveValue();
  115. protected:
  116. /* additional members */
  117. };
  118. /* Implementation file */
  119. NS_IMPL_ISUPPORTS1(nsDOMCSSPrimitiveValue, nsIDOMCSSPrimitiveValue)
  120. nsDOMCSSPrimitiveValue::nsDOMCSSPrimitiveValue()
  121. {
  122. /* member initializers and constructor code */
  123. }
  124. nsDOMCSSPrimitiveValue::~nsDOMCSSPrimitiveValue()
  125. {
  126. /* destructor code */
  127. }
  128. /* readonly attribute unsigned short primitiveType; */
  129. NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetPrimitiveType(PRUint16 *aPrimitiveType)
  130. {
  131. return NS_ERROR_NOT_IMPLEMENTED;
  132. }
  133. /* void setFloatValue (in unsigned short unitType, in float floatValue) raises (DOMException); */
  134. NS_IMETHODIMP nsDOMCSSPrimitiveValue::SetFloatValue(PRUint16 unitType, float floatValue)
  135. {
  136. return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138. /* float getFloatValue (in unsigned short unitType) raises (DOMException); */
  139. NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetFloatValue(PRUint16 unitType, float *_retval)
  140. {
  141. return NS_ERROR_NOT_IMPLEMENTED;
  142. }
  143. /* void setStringValue (in unsigned short stringType, in DOMString stringValue) raises (DOMException); */
  144. NS_IMETHODIMP nsDOMCSSPrimitiveValue::SetStringValue(PRUint16 stringType, const nsAString & stringValue)
  145. {
  146. return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148. /* DOMString getStringValue () raises (DOMException); */
  149. NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetStringValue(nsAString & _retval)
  150. {
  151. return NS_ERROR_NOT_IMPLEMENTED;
  152. }
  153. /* nsIDOMCounter getCounterValue () raises (DOMException); */
  154. NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetCounterValue(nsIDOMCounter **_retval)
  155. {
  156. return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158. /* nsIDOMRect getRectValue () raises (DOMException); */
  159. NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetRectValue(nsIDOMRect **_retval)
  160. {
  161. return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163. /* nsIDOMRGBColor getRGBColorValue () raises (DOMException); */
  164. NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetRGBColorValue(nsIDOMRGBColor **_retval)
  165. {
  166. return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168. /* End of implementation class template. */
  169. #endif
  170. #endif /* __gen_nsIDOMCSSPrimitiveValue_h__ */