Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMCSSRule.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMCSSRule_h__
6 : #define __gen_nsIDOMCSSRule_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.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 : namespace mozilla {
18 : namespace css {
19 : class Rule;
20 : }
21 : }
22 :
23 : /* starting interface: nsIDOMCSSRule */
24 : #define NS_IDOMCSSRULE_IID_STR "4d6b3bad-f53c-4585-82f6-62982e27ede8"
25 :
26 : #define NS_IDOMCSSRULE_IID \
27 : {0x4d6b3bad, 0xf53c, 0x4585, \
28 : { 0x82, 0xf6, 0x62, 0x98, 0x2e, 0x27, 0xed, 0xe8 }}
29 :
30 3297 : class NS_NO_VTABLE nsIDOMCSSRule : public nsISupports {
31 : public:
32 :
33 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSRULE_IID)
34 :
35 : enum {
36 : UNKNOWN_RULE = 0U,
37 : STYLE_RULE = 1U,
38 : CHARSET_RULE = 2U,
39 : IMPORT_RULE = 3U,
40 : MEDIA_RULE = 4U,
41 : FONT_FACE_RULE = 5U,
42 : PAGE_RULE = 6U,
43 : KEYFRAMES_RULE = 7U,
44 : KEYFRAME_RULE = 8U,
45 : MOZ_KEYFRAMES_RULE = 7U,
46 : MOZ_KEYFRAME_RULE = 8U,
47 : NAMESPACE_RULE = 10U,
48 : COUNTER_STYLE_RULE = 11U,
49 : SUPPORTS_RULE = 12U,
50 : DOCUMENT_RULE = 13U,
51 : FONT_FEATURE_VALUES_RULE = 14U
52 : };
53 :
54 : /* readonly attribute unsigned short type; */
55 : NS_IMETHOD GetType(uint16_t *aType) = 0;
56 :
57 : /* attribute DOMString cssText; */
58 : NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
59 : NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
60 :
61 : /* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */
62 : NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) = 0;
63 :
64 : /* readonly attribute nsIDOMCSSRule parentRule; */
65 : NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0;
66 :
67 : /* [noscript,nostdcall,notxpcom] Rule getCSSRule (); */
68 : virtual mozilla::css::Rule * GetCSSRule(void) = 0;
69 :
70 : };
71 :
72 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSRule, NS_IDOMCSSRULE_IID)
73 :
74 : /* Use this macro when declaring classes that implement this interface. */
75 : #define NS_DECL_NSIDOMCSSRULE \
76 : NS_IMETHOD GetType(uint16_t *aType) override; \
77 : NS_IMETHOD GetCssText(nsAString & aCssText) override; \
78 : NS_IMETHOD SetCssText(const nsAString & aCssText) override; \
79 : NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) override; \
80 : NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) override; \
81 : virtual mozilla::css::Rule * GetCSSRule(void) override;
82 :
83 : /* Use this macro when declaring the members of this interface when the
84 : class doesn't implement the interface. This is useful for forwarding. */
85 : #define NS_DECL_NON_VIRTUAL_NSIDOMCSSRULE \
86 : nsresult GetType(uint16_t *aType); \
87 : nsresult GetCssText(nsAString & aCssText); \
88 : nsresult SetCssText(const nsAString & aCssText); \
89 : nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet); \
90 : nsresult GetParentRule(nsIDOMCSSRule * *aParentRule); \
91 : mozilla::css::Rule * GetCSSRule(void);
92 :
93 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
94 : #define NS_FORWARD_NSIDOMCSSRULE(_to) \
95 : NS_IMETHOD GetType(uint16_t *aType) override { return _to GetType(aType); } \
96 : NS_IMETHOD GetCssText(nsAString & aCssText) override { return _to GetCssText(aCssText); } \
97 : NS_IMETHOD SetCssText(const nsAString & aCssText) override { return _to SetCssText(aCssText); } \
98 : NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) override { return _to GetParentStyleSheet(aParentStyleSheet); } \
99 : NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) override { return _to GetParentRule(aParentRule); } \
100 : virtual mozilla::css::Rule * GetCSSRule(void) override { return _to GetCSSRule(); }
101 :
102 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
103 : #define NS_FORWARD_SAFE_NSIDOMCSSRULE(_to) \
104 : NS_IMETHOD GetType(uint16_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
105 : NS_IMETHOD GetCssText(nsAString & aCssText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
106 : NS_IMETHOD SetCssText(const nsAString & aCssText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
107 : NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentStyleSheet(aParentStyleSheet); } \
108 : NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentRule(aParentRule); } \
109 : virtual mozilla::css::Rule * GetCSSRule(void) override;
110 :
111 : #if 0
112 : /* Use the code below as a template for the implementation class for this interface. */
113 :
114 : /* Header file */
115 : class nsDOMCSSRule : public nsIDOMCSSRule
116 : {
117 : public:
118 : NS_DECL_ISUPPORTS
119 : NS_DECL_NSIDOMCSSRULE
120 :
121 : nsDOMCSSRule();
122 :
123 : private:
124 : ~nsDOMCSSRule();
125 :
126 : protected:
127 : /* additional members */
128 : };
129 :
130 : /* Implementation file */
131 : NS_IMPL_ISUPPORTS(nsDOMCSSRule, nsIDOMCSSRule)
132 :
133 : nsDOMCSSRule::nsDOMCSSRule()
134 : {
135 : /* member initializers and constructor code */
136 : }
137 :
138 : nsDOMCSSRule::~nsDOMCSSRule()
139 : {
140 : /* destructor code */
141 : }
142 :
143 : /* readonly attribute unsigned short type; */
144 : NS_IMETHODIMP nsDOMCSSRule::GetType(uint16_t *aType)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* attribute DOMString cssText; */
150 : NS_IMETHODIMP nsDOMCSSRule::GetCssText(nsAString & aCssText)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 : NS_IMETHODIMP nsDOMCSSRule::SetCssText(const nsAString & aCssText)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */
160 : NS_IMETHODIMP nsDOMCSSRule::GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* readonly attribute nsIDOMCSSRule parentRule; */
166 : NS_IMETHODIMP nsDOMCSSRule::GetParentRule(nsIDOMCSSRule * *aParentRule)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* [noscript,nostdcall,notxpcom] Rule getCSSRule (); */
172 : mozilla::css::Rule * nsDOMCSSRule::GetCSSRule()
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 :
177 : /* End of implementation class template. */
178 : #endif
179 :
180 :
181 : #endif /* __gen_nsIDOMCSSRule_h__ */
|