LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDOMCSSStyleSheet.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/nsIDOMCSSStyleSheet.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDOMCSSStyleSheet_h__
       6             : #define __gen_nsIDOMCSSStyleSheet_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIDOMStyleSheet_h__
      10             : #include "nsIDOMStyleSheet.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:    nsIDOMCSSStyleSheet */
      19             : #define NS_IDOMCSSSTYLESHEET_IID_STR "a6cf90c2-15b3-11d2-932e-00805f8add32"
      20             : 
      21             : #define NS_IDOMCSSSTYLESHEET_IID \
      22             :   {0xa6cf90c2, 0x15b3, 0x11d2, \
      23             :     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
      24             : 
      25          75 : class NS_NO_VTABLE nsIDOMCSSStyleSheet : public nsIDOMStyleSheet {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLESHEET_IID)
      29             : 
      30             :   /* readonly attribute nsIDOMCSSRule ownerRule; */
      31             :   NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) = 0;
      32             : 
      33             :   /* readonly attribute nsIDOMCSSRuleList cssRules; */
      34             :   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) = 0;
      35             : 
      36             :   /* unsigned long insertRule (in DOMString rule, in unsigned long index) raises (DOMException); */
      37             :   NS_IMETHOD InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval) = 0;
      38             : 
      39             :   /* void deleteRule (in unsigned long index) raises (DOMException); */
      40             :   NS_IMETHOD DeleteRule(uint32_t index) = 0;
      41             : 
      42             : };
      43             : 
      44             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSStyleSheet, NS_IDOMCSSSTYLESHEET_IID)
      45             : 
      46             : /* Use this macro when declaring classes that implement this interface. */
      47             : #define NS_DECL_NSIDOMCSSSTYLESHEET \
      48             :   NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) override; \
      49             :   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) override; \
      50             :   NS_IMETHOD InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval) override; \
      51             :   NS_IMETHOD DeleteRule(uint32_t index) override; 
      52             : 
      53             : /* Use this macro when declaring the members of this interface when the
      54             :    class doesn't implement the interface. This is useful for forwarding. */
      55             : #define NS_DECL_NON_VIRTUAL_NSIDOMCSSSTYLESHEET \
      56             :   nsresult GetOwnerRule(nsIDOMCSSRule * *aOwnerRule); \
      57             :   nsresult GetCssRules(nsIDOMCSSRuleList * *aCssRules); \
      58             :   nsresult InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval); \
      59             :   nsresult DeleteRule(uint32_t index); 
      60             : 
      61             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      62             : #define NS_FORWARD_NSIDOMCSSSTYLESHEET(_to) \
      63             :   NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) override { return _to GetOwnerRule(aOwnerRule); } \
      64             :   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) override { return _to GetCssRules(aCssRules); } \
      65             :   NS_IMETHOD InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval) override { return _to InsertRule(rule, index, _retval); } \
      66             :   NS_IMETHOD DeleteRule(uint32_t index) override { return _to DeleteRule(index); } 
      67             : 
      68             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      69             : #define NS_FORWARD_SAFE_NSIDOMCSSSTYLESHEET(_to) \
      70             :   NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerRule(aOwnerRule); } \
      71             :   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssRules(aCssRules); } \
      72             :   NS_IMETHOD InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertRule(rule, index, _retval); } \
      73             :   NS_IMETHOD DeleteRule(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteRule(index); } 
      74             : 
      75             : #if 0
      76             : /* Use the code below as a template for the implementation class for this interface. */
      77             : 
      78             : /* Header file */
      79             : class nsDOMCSSStyleSheet : public nsIDOMCSSStyleSheet
      80             : {
      81             : public:
      82             :   NS_DECL_ISUPPORTS
      83             :   NS_DECL_NSIDOMCSSSTYLESHEET
      84             : 
      85             :   nsDOMCSSStyleSheet();
      86             : 
      87             : private:
      88             :   ~nsDOMCSSStyleSheet();
      89             : 
      90             : protected:
      91             :   /* additional members */
      92             : };
      93             : 
      94             : /* Implementation file */
      95             : NS_IMPL_ISUPPORTS(nsDOMCSSStyleSheet, nsIDOMCSSStyleSheet)
      96             : 
      97             : nsDOMCSSStyleSheet::nsDOMCSSStyleSheet()
      98             : {
      99             :   /* member initializers and constructor code */
     100             : }
     101             : 
     102             : nsDOMCSSStyleSheet::~nsDOMCSSStyleSheet()
     103             : {
     104             :   /* destructor code */
     105             : }
     106             : 
     107             : /* readonly attribute nsIDOMCSSRule ownerRule; */
     108             : NS_IMETHODIMP nsDOMCSSStyleSheet::GetOwnerRule(nsIDOMCSSRule * *aOwnerRule)
     109             : {
     110             :     return NS_ERROR_NOT_IMPLEMENTED;
     111             : }
     112             : 
     113             : /* readonly attribute nsIDOMCSSRuleList cssRules; */
     114             : NS_IMETHODIMP nsDOMCSSStyleSheet::GetCssRules(nsIDOMCSSRuleList * *aCssRules)
     115             : {
     116             :     return NS_ERROR_NOT_IMPLEMENTED;
     117             : }
     118             : 
     119             : /* unsigned long insertRule (in DOMString rule, in unsigned long index) raises (DOMException); */
     120             : NS_IMETHODIMP nsDOMCSSStyleSheet::InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval)
     121             : {
     122             :     return NS_ERROR_NOT_IMPLEMENTED;
     123             : }
     124             : 
     125             : /* void deleteRule (in unsigned long index) raises (DOMException); */
     126             : NS_IMETHODIMP nsDOMCSSStyleSheet::DeleteRule(uint32_t index)
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* End of implementation class template. */
     132             : #endif
     133             : 
     134             : 
     135             : #endif /* __gen_nsIDOMCSSStyleSheet_h__ */

Generated by: LCOV version 1.13