Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMCSSGroupingRule.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMCSSGroupingRule_h__
6 : #define __gen_nsIDOMCSSGroupingRule_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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 : class nsIDOMCSSRuleList; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMCSSGroupingRule */
21 : #define NS_IDOMCSSGROUPINGRULE_IID_STR "a0e3324a-f911-4baf-9591-5322c76cbb0d"
22 :
23 : #define NS_IDOMCSSGROUPINGRULE_IID \
24 : {0xa0e3324a, 0xf911, 0x4baf, \
25 : { 0x95, 0x91, 0x53, 0x22, 0xc7, 0x6c, 0xbb, 0x0d }}
26 :
27 50 : class NS_NO_VTABLE nsIDOMCSSGroupingRule : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSGROUPINGRULE_IID)
31 :
32 : /* readonly attribute nsIDOMCSSRuleList cssRules; */
33 : NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) = 0;
34 :
35 : /* unsigned long insertRule (in DOMString rule, in unsigned long index) raises (DOMException); */
36 : NS_IMETHOD InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval) = 0;
37 :
38 : /* void deleteRule (in unsigned long index) raises (DOMException); */
39 : NS_IMETHOD DeleteRule(uint32_t index) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSGroupingRule, NS_IDOMCSSGROUPINGRULE_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSIDOMCSSGROUPINGRULE \
47 : NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) override; \
48 : NS_IMETHOD InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval) override; \
49 : NS_IMETHOD DeleteRule(uint32_t index) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSIDOMCSSGROUPINGRULE \
54 : nsresult GetCssRules(nsIDOMCSSRuleList * *aCssRules); \
55 : nsresult InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval); \
56 : nsresult DeleteRule(uint32_t index);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSIDOMCSSGROUPINGRULE(_to) \
60 : NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) override { return _to GetCssRules(aCssRules); } \
61 : NS_IMETHOD InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval) override { return _to InsertRule(rule, index, _retval); } \
62 : NS_IMETHOD DeleteRule(uint32_t index) override { return _to DeleteRule(index); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSIDOMCSSGROUPINGRULE(_to) \
66 : NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssRules(aCssRules); } \
67 : NS_IMETHOD InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertRule(rule, index, _retval); } \
68 : NS_IMETHOD DeleteRule(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteRule(index); }
69 :
70 : #if 0
71 : /* Use the code below as a template for the implementation class for this interface. */
72 :
73 : /* Header file */
74 : class nsDOMCSSGroupingRule : public nsIDOMCSSGroupingRule
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSIDOMCSSGROUPINGRULE
79 :
80 : nsDOMCSSGroupingRule();
81 :
82 : private:
83 : ~nsDOMCSSGroupingRule();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS(nsDOMCSSGroupingRule, nsIDOMCSSGroupingRule)
91 :
92 : nsDOMCSSGroupingRule::nsDOMCSSGroupingRule()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsDOMCSSGroupingRule::~nsDOMCSSGroupingRule()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* readonly attribute nsIDOMCSSRuleList cssRules; */
103 : NS_IMETHODIMP nsDOMCSSGroupingRule::GetCssRules(nsIDOMCSSRuleList * *aCssRules)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* unsigned long insertRule (in DOMString rule, in unsigned long index) raises (DOMException); */
109 : NS_IMETHODIMP nsDOMCSSGroupingRule::InsertRule(const nsAString & rule, uint32_t index, uint32_t *_retval)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* void deleteRule (in unsigned long index) raises (DOMException); */
115 : NS_IMETHODIMP nsDOMCSSGroupingRule::DeleteRule(uint32_t index)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* End of implementation class template. */
121 : #endif
122 :
123 :
124 : #endif /* __gen_nsIDOMCSSGroupingRule_h__ */
|