/usr/include/thunderbird/nsIDOMCSSPrimitiveValue.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMCSSPrimitiveValue.idl
*/
#ifndef __gen_nsIDOMCSSPrimitiveValue_h__
#define __gen_nsIDOMCSSPrimitiveValue_h__
#ifndef __gen_nsIDOMCSSValue_h__
#include "nsIDOMCSSValue.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIDOMCSSPrimitiveValue */
#define NS_IDOMCSSPRIMITIVEVALUE_IID_STR "f6df7293-2dc9-4cb9-9531-778caf4370e0"
#define NS_IDOMCSSPRIMITIVEVALUE_IID \
{0xf6df7293, 0x2dc9, 0x4cb9, \
{ 0x95, 0x31, 0x77, 0x8c, 0xaf, 0x43, 0x70, 0xe0 }}
class NS_NO_VTABLE nsIDOMCSSPrimitiveValue : public nsIDOMCSSValue {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSPRIMITIVEVALUE_IID)
enum {
CSS_UNKNOWN = 0U,
CSS_NUMBER = 1U,
CSS_PERCENTAGE = 2U,
CSS_EMS = 3U,
CSS_EXS = 4U,
CSS_PX = 5U,
CSS_CM = 6U,
CSS_MM = 7U,
CSS_IN = 8U,
CSS_PT = 9U,
CSS_PC = 10U,
CSS_DEG = 11U,
CSS_RAD = 12U,
CSS_GRAD = 13U,
CSS_MS = 14U,
CSS_S = 15U,
CSS_HZ = 16U,
CSS_KHZ = 17U,
CSS_DIMENSION = 18U,
CSS_STRING = 19U,
CSS_URI = 20U,
CSS_IDENT = 21U,
CSS_ATTR = 22U,
CSS_COUNTER = 23U,
CSS_RECT = 24U,
CSS_RGBCOLOR = 25U
};
/* readonly attribute unsigned short primitiveType; */
NS_IMETHOD GetPrimitiveType(uint16_t *aPrimitiveType) = 0;
/* void setFloatValue (in unsigned short unitType, in float floatValue) raises (DOMException); */
NS_IMETHOD SetFloatValue(uint16_t unitType, float floatValue) = 0;
/* float getFloatValue (in unsigned short unitType) raises (DOMException); */
NS_IMETHOD GetFloatValue(uint16_t unitType, float *_retval) = 0;
/* void setStringValue (in unsigned short stringType, in DOMString stringValue) raises (DOMException); */
NS_IMETHOD SetStringValue(uint16_t stringType, const nsAString & stringValue) = 0;
/* DOMString getStringValue () raises (DOMException); */
NS_IMETHOD GetStringValue(nsAString & _retval) = 0;
/* nsIDOMCounter getCounterValue () raises (DOMException); */
NS_IMETHOD GetCounterValue(nsIDOMCounter * *_retval) = 0;
/* nsIDOMRect getRectValue () raises (DOMException); */
NS_IMETHOD GetRectValue(nsIDOMRect * *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSPrimitiveValue, NS_IDOMCSSPRIMITIVEVALUE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMCSSPRIMITIVEVALUE \
NS_IMETHOD GetPrimitiveType(uint16_t *aPrimitiveType) override; \
NS_IMETHOD SetFloatValue(uint16_t unitType, float floatValue) override; \
NS_IMETHOD GetFloatValue(uint16_t unitType, float *_retval) override; \
NS_IMETHOD SetStringValue(uint16_t stringType, const nsAString & stringValue) override; \
NS_IMETHOD GetStringValue(nsAString & _retval) override; \
NS_IMETHOD GetCounterValue(nsIDOMCounter * *_retval) override; \
NS_IMETHOD GetRectValue(nsIDOMRect * *_retval) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIDOMCSSPRIMITIVEVALUE \
NS_METHOD GetPrimitiveType(uint16_t *aPrimitiveType); \
NS_METHOD SetFloatValue(uint16_t unitType, float floatValue); \
NS_METHOD GetFloatValue(uint16_t unitType, float *_retval); \
NS_METHOD SetStringValue(uint16_t stringType, const nsAString & stringValue); \
NS_METHOD GetStringValue(nsAString & _retval); \
NS_METHOD GetCounterValue(nsIDOMCounter * *_retval); \
NS_METHOD GetRectValue(nsIDOMRect * *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMCSSPRIMITIVEVALUE(_to) \
NS_IMETHOD GetPrimitiveType(uint16_t *aPrimitiveType) override { return _to GetPrimitiveType(aPrimitiveType); } \
NS_IMETHOD SetFloatValue(uint16_t unitType, float floatValue) override { return _to SetFloatValue(unitType, floatValue); } \
NS_IMETHOD GetFloatValue(uint16_t unitType, float *_retval) override { return _to GetFloatValue(unitType, _retval); } \
NS_IMETHOD SetStringValue(uint16_t stringType, const nsAString & stringValue) override { return _to SetStringValue(stringType, stringValue); } \
NS_IMETHOD GetStringValue(nsAString & _retval) override { return _to GetStringValue(_retval); } \
NS_IMETHOD GetCounterValue(nsIDOMCounter * *_retval) override { return _to GetCounterValue(_retval); } \
NS_IMETHOD GetRectValue(nsIDOMRect * *_retval) override { return _to GetRectValue(_retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMCSSPRIMITIVEVALUE(_to) \
NS_IMETHOD GetPrimitiveType(uint16_t *aPrimitiveType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimitiveType(aPrimitiveType); } \
NS_IMETHOD SetFloatValue(uint16_t unitType, float floatValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFloatValue(unitType, floatValue); } \
NS_IMETHOD GetFloatValue(uint16_t unitType, float *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloatValue(unitType, _retval); } \
NS_IMETHOD SetStringValue(uint16_t stringType, const nsAString & stringValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringValue(stringType, stringValue); } \
NS_IMETHOD GetStringValue(nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringValue(_retval); } \
NS_IMETHOD GetCounterValue(nsIDOMCounter * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCounterValue(_retval); } \
NS_IMETHOD GetRectValue(nsIDOMRect * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRectValue(_retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMCSSPrimitiveValue : public nsIDOMCSSPrimitiveValue
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMCSSPRIMITIVEVALUE
nsDOMCSSPrimitiveValue();
private:
~nsDOMCSSPrimitiveValue();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsDOMCSSPrimitiveValue, nsIDOMCSSPrimitiveValue)
nsDOMCSSPrimitiveValue::nsDOMCSSPrimitiveValue()
{
/* member initializers and constructor code */
}
nsDOMCSSPrimitiveValue::~nsDOMCSSPrimitiveValue()
{
/* destructor code */
}
/* readonly attribute unsigned short primitiveType; */
NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetPrimitiveType(uint16_t *aPrimitiveType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setFloatValue (in unsigned short unitType, in float floatValue) raises (DOMException); */
NS_IMETHODIMP nsDOMCSSPrimitiveValue::SetFloatValue(uint16_t unitType, float floatValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* float getFloatValue (in unsigned short unitType) raises (DOMException); */
NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetFloatValue(uint16_t unitType, float *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setStringValue (in unsigned short stringType, in DOMString stringValue) raises (DOMException); */
NS_IMETHODIMP nsDOMCSSPrimitiveValue::SetStringValue(uint16_t stringType, const nsAString & stringValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* DOMString getStringValue () raises (DOMException); */
NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetStringValue(nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMCounter getCounterValue () raises (DOMException); */
NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetCounterValue(nsIDOMCounter * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMRect getRectValue () raises (DOMException); */
NS_IMETHODIMP nsDOMCSSPrimitiveValue::GetRectValue(nsIDOMRect * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDOMCSSPrimitiveValue_h__ */
|