LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDOMCSSPrimitiveValue.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.13