1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/css/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 :
18 : /* starting interface: nsIDOMCSSRule */
19 : #define NS_IDOMCSSRULE_IID_STR "2938307a-9d70-4b63-8afc-0197e82318ad"
20 :
21 : #define NS_IDOMCSSRULE_IID \
22 : {0x2938307a, 0x9d70, 0x4b63, \
23 : { 0x8a, 0xfc, 0x01, 0x97, 0xe8, 0x23, 0x18, 0xad }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSRule : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSRULE_IID)
29 :
30 : enum {
31 : UNKNOWN_RULE = 0U,
32 : STYLE_RULE = 1U,
33 : CHARSET_RULE = 2U,
34 : IMPORT_RULE = 3U,
35 : MEDIA_RULE = 4U,
36 : FONT_FACE_RULE = 5U,
37 : PAGE_RULE = 6U,
38 : MOZ_KEYFRAMES_RULE = 7U,
39 : MOZ_KEYFRAME_RULE = 8U
40 : };
41 :
42 : /* readonly attribute unsigned short type; */
43 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) = 0;
44 :
45 : /* attribute DOMString cssText; */
46 : NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
47 : NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
48 :
49 : /* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */
50 : NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) = 0;
51 :
52 : /* readonly attribute nsIDOMCSSRule parentRule; */
53 : NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0;
54 :
55 : };
56 :
57 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSRule, NS_IDOMCSSRULE_IID)
58 :
59 : /* Use this macro when declaring classes that implement this interface. */
60 : #define NS_DECL_NSIDOMCSSRULE \
61 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType); \
62 : NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText); \
63 : NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText); \
64 : NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet); \
65 : NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule);
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
68 : #define NS_FORWARD_NSIDOMCSSRULE(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return _to GetType(aType); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
71 : NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) { return _to GetParentStyleSheet(aParentStyleSheet); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return _to GetParentRule(aParentRule); }
74 :
75 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
76 : #define NS_FORWARD_SAFE_NSIDOMCSSRULE(_to) \
77 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
78 : NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
79 : NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
80 : NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentStyleSheet(aParentStyleSheet); } \
81 : NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentRule(aParentRule); }
82 :
83 : #if 0
84 : /* Use the code below as a template for the implementation class for this interface. */
85 :
86 : /* Header file */
87 : class nsDOMCSSRule : public nsIDOMCSSRule
88 : {
89 : public:
90 : NS_DECL_ISUPPORTS
91 : NS_DECL_NSIDOMCSSRULE
92 :
93 : nsDOMCSSRule();
94 :
95 : private:
96 : ~nsDOMCSSRule();
97 :
98 : protected:
99 : /* additional members */
100 : };
101 :
102 : /* Implementation file */
103 : NS_IMPL_ISUPPORTS1(nsDOMCSSRule, nsIDOMCSSRule)
104 :
105 : nsDOMCSSRule::nsDOMCSSRule()
106 : {
107 : /* member initializers and constructor code */
108 : }
109 :
110 : nsDOMCSSRule::~nsDOMCSSRule()
111 : {
112 : /* destructor code */
113 : }
114 :
115 : /* readonly attribute unsigned short type; */
116 : NS_IMETHODIMP nsDOMCSSRule::GetType(PRUint16 *aType)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* attribute DOMString cssText; */
122 : NS_IMETHODIMP nsDOMCSSRule::GetCssText(nsAString & aCssText)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 : NS_IMETHODIMP nsDOMCSSRule::SetCssText(const nsAString & aCssText)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */
132 : NS_IMETHODIMP nsDOMCSSRule::GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* readonly attribute nsIDOMCSSRule parentRule; */
138 : NS_IMETHODIMP nsDOMCSSRule::GetParentRule(nsIDOMCSSRule * *aParentRule)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* End of implementation class template. */
144 : #endif
145 :
146 :
147 : #endif /* __gen_nsIDOMCSSRule_h__ */
|