1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMScreen.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMScreen_h__
6 : #define __gen_nsIDOMScreen_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: nsIDOMScreen */
19 : #define NS_IDOMSCREEN_IID_STR "4507e43f-097c-452a-bfc4-dbb99748f6fd"
20 :
21 : #define NS_IDOMSCREEN_IID \
22 : {0x4507e43f, 0x097c, 0x452a, \
23 : { 0xbf, 0xc4, 0xdb, 0xb9, 0x97, 0x48, 0xf6, 0xfd }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMScreen : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSCREEN_IID)
29 :
30 : /* readonly attribute long top; */
31 : NS_SCRIPTABLE NS_IMETHOD GetTop(PRInt32 *aTop) = 0;
32 :
33 : /* readonly attribute long left; */
34 : NS_SCRIPTABLE NS_IMETHOD GetLeft(PRInt32 *aLeft) = 0;
35 :
36 : /* readonly attribute long width; */
37 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0;
38 :
39 : /* readonly attribute long height; */
40 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0;
41 :
42 : /* readonly attribute long pixelDepth; */
43 : NS_SCRIPTABLE NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) = 0;
44 :
45 : /* readonly attribute long colorDepth; */
46 : NS_SCRIPTABLE NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) = 0;
47 :
48 : /* readonly attribute long availWidth; */
49 : NS_SCRIPTABLE NS_IMETHOD GetAvailWidth(PRInt32 *aAvailWidth) = 0;
50 :
51 : /* readonly attribute long availHeight; */
52 : NS_SCRIPTABLE NS_IMETHOD GetAvailHeight(PRInt32 *aAvailHeight) = 0;
53 :
54 : /* readonly attribute long availLeft; */
55 : NS_SCRIPTABLE NS_IMETHOD GetAvailLeft(PRInt32 *aAvailLeft) = 0;
56 :
57 : /* readonly attribute long availTop; */
58 : NS_SCRIPTABLE NS_IMETHOD GetAvailTop(PRInt32 *aAvailTop) = 0;
59 :
60 : /* attribute boolean mozEnabled; */
61 : NS_SCRIPTABLE NS_IMETHOD GetMozEnabled(bool *aMozEnabled) = 0;
62 : NS_SCRIPTABLE NS_IMETHOD SetMozEnabled(bool aMozEnabled) = 0;
63 :
64 : /* attribute double mozBrightness; */
65 : NS_SCRIPTABLE NS_IMETHOD GetMozBrightness(double *aMozBrightness) = 0;
66 : NS_SCRIPTABLE NS_IMETHOD SetMozBrightness(double aMozBrightness) = 0;
67 :
68 : };
69 :
70 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMScreen, NS_IDOMSCREEN_IID)
71 :
72 : /* Use this macro when declaring classes that implement this interface. */
73 : #define NS_DECL_NSIDOMSCREEN \
74 : NS_SCRIPTABLE NS_IMETHOD GetTop(PRInt32 *aTop); \
75 : NS_SCRIPTABLE NS_IMETHOD GetLeft(PRInt32 *aLeft); \
76 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth); \
77 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight); \
78 : NS_SCRIPTABLE NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth); \
79 : NS_SCRIPTABLE NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth); \
80 : NS_SCRIPTABLE NS_IMETHOD GetAvailWidth(PRInt32 *aAvailWidth); \
81 : NS_SCRIPTABLE NS_IMETHOD GetAvailHeight(PRInt32 *aAvailHeight); \
82 : NS_SCRIPTABLE NS_IMETHOD GetAvailLeft(PRInt32 *aAvailLeft); \
83 : NS_SCRIPTABLE NS_IMETHOD GetAvailTop(PRInt32 *aAvailTop); \
84 : NS_SCRIPTABLE NS_IMETHOD GetMozEnabled(bool *aMozEnabled); \
85 : NS_SCRIPTABLE NS_IMETHOD SetMozEnabled(bool aMozEnabled); \
86 : NS_SCRIPTABLE NS_IMETHOD GetMozBrightness(double *aMozBrightness); \
87 : NS_SCRIPTABLE NS_IMETHOD SetMozBrightness(double aMozBrightness);
88 :
89 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
90 : #define NS_FORWARD_NSIDOMSCREEN(_to) \
91 : NS_SCRIPTABLE NS_IMETHOD GetTop(PRInt32 *aTop) { return _to GetTop(aTop); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetLeft(PRInt32 *aLeft) { return _to GetLeft(aLeft); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \
95 : NS_SCRIPTABLE NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) { return _to GetPixelDepth(aPixelDepth); } \
96 : NS_SCRIPTABLE NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) { return _to GetColorDepth(aColorDepth); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetAvailWidth(PRInt32 *aAvailWidth) { return _to GetAvailWidth(aAvailWidth); } \
98 : NS_SCRIPTABLE NS_IMETHOD GetAvailHeight(PRInt32 *aAvailHeight) { return _to GetAvailHeight(aAvailHeight); } \
99 : NS_SCRIPTABLE NS_IMETHOD GetAvailLeft(PRInt32 *aAvailLeft) { return _to GetAvailLeft(aAvailLeft); } \
100 : NS_SCRIPTABLE NS_IMETHOD GetAvailTop(PRInt32 *aAvailTop) { return _to GetAvailTop(aAvailTop); } \
101 : NS_SCRIPTABLE NS_IMETHOD GetMozEnabled(bool *aMozEnabled) { return _to GetMozEnabled(aMozEnabled); } \
102 : NS_SCRIPTABLE NS_IMETHOD SetMozEnabled(bool aMozEnabled) { return _to SetMozEnabled(aMozEnabled); } \
103 : NS_SCRIPTABLE NS_IMETHOD GetMozBrightness(double *aMozBrightness) { return _to GetMozBrightness(aMozBrightness); } \
104 : NS_SCRIPTABLE NS_IMETHOD SetMozBrightness(double aMozBrightness) { return _to SetMozBrightness(aMozBrightness); }
105 :
106 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
107 : #define NS_FORWARD_SAFE_NSIDOMSCREEN(_to) \
108 : NS_SCRIPTABLE NS_IMETHOD GetTop(PRInt32 *aTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTop(aTop); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetLeft(PRInt32 *aLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLeft(aLeft); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
111 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
112 : NS_SCRIPTABLE NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPixelDepth(aPixelDepth); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorDepth(aColorDepth); } \
114 : NS_SCRIPTABLE NS_IMETHOD GetAvailWidth(PRInt32 *aAvailWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailWidth(aAvailWidth); } \
115 : NS_SCRIPTABLE NS_IMETHOD GetAvailHeight(PRInt32 *aAvailHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailHeight(aAvailHeight); } \
116 : NS_SCRIPTABLE NS_IMETHOD GetAvailLeft(PRInt32 *aAvailLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailLeft(aAvailLeft); } \
117 : NS_SCRIPTABLE NS_IMETHOD GetAvailTop(PRInt32 *aAvailTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailTop(aAvailTop); } \
118 : NS_SCRIPTABLE NS_IMETHOD GetMozEnabled(bool *aMozEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozEnabled(aMozEnabled); } \
119 : NS_SCRIPTABLE NS_IMETHOD SetMozEnabled(bool aMozEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozEnabled(aMozEnabled); } \
120 : NS_SCRIPTABLE NS_IMETHOD GetMozBrightness(double *aMozBrightness) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBrightness(aMozBrightness); } \
121 : NS_SCRIPTABLE NS_IMETHOD SetMozBrightness(double aMozBrightness) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBrightness(aMozBrightness); }
122 :
123 : #if 0
124 : /* Use the code below as a template for the implementation class for this interface. */
125 :
126 : /* Header file */
127 : class nsDOMScreen : public nsIDOMScreen
128 : {
129 : public:
130 : NS_DECL_ISUPPORTS
131 : NS_DECL_NSIDOMSCREEN
132 :
133 : nsDOMScreen();
134 :
135 : private:
136 : ~nsDOMScreen();
137 :
138 : protected:
139 : /* additional members */
140 : };
141 :
142 : /* Implementation file */
143 : NS_IMPL_ISUPPORTS1(nsDOMScreen, nsIDOMScreen)
144 :
145 : nsDOMScreen::nsDOMScreen()
146 : {
147 : /* member initializers and constructor code */
148 : }
149 :
150 : nsDOMScreen::~nsDOMScreen()
151 : {
152 : /* destructor code */
153 : }
154 :
155 : /* readonly attribute long top; */
156 : NS_IMETHODIMP nsDOMScreen::GetTop(PRInt32 *aTop)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* readonly attribute long left; */
162 : NS_IMETHODIMP nsDOMScreen::GetLeft(PRInt32 *aLeft)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* readonly attribute long width; */
168 : NS_IMETHODIMP nsDOMScreen::GetWidth(PRInt32 *aWidth)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* readonly attribute long height; */
174 : NS_IMETHODIMP nsDOMScreen::GetHeight(PRInt32 *aHeight)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 :
179 : /* readonly attribute long pixelDepth; */
180 : NS_IMETHODIMP nsDOMScreen::GetPixelDepth(PRInt32 *aPixelDepth)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 :
185 : /* readonly attribute long colorDepth; */
186 : NS_IMETHODIMP nsDOMScreen::GetColorDepth(PRInt32 *aColorDepth)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 :
191 : /* readonly attribute long availWidth; */
192 : NS_IMETHODIMP nsDOMScreen::GetAvailWidth(PRInt32 *aAvailWidth)
193 : {
194 : return NS_ERROR_NOT_IMPLEMENTED;
195 : }
196 :
197 : /* readonly attribute long availHeight; */
198 : NS_IMETHODIMP nsDOMScreen::GetAvailHeight(PRInt32 *aAvailHeight)
199 : {
200 : return NS_ERROR_NOT_IMPLEMENTED;
201 : }
202 :
203 : /* readonly attribute long availLeft; */
204 : NS_IMETHODIMP nsDOMScreen::GetAvailLeft(PRInt32 *aAvailLeft)
205 : {
206 : return NS_ERROR_NOT_IMPLEMENTED;
207 : }
208 :
209 : /* readonly attribute long availTop; */
210 : NS_IMETHODIMP nsDOMScreen::GetAvailTop(PRInt32 *aAvailTop)
211 : {
212 : return NS_ERROR_NOT_IMPLEMENTED;
213 : }
214 :
215 : /* attribute boolean mozEnabled; */
216 : NS_IMETHODIMP nsDOMScreen::GetMozEnabled(bool *aMozEnabled)
217 : {
218 : return NS_ERROR_NOT_IMPLEMENTED;
219 : }
220 : NS_IMETHODIMP nsDOMScreen::SetMozEnabled(bool aMozEnabled)
221 : {
222 : return NS_ERROR_NOT_IMPLEMENTED;
223 : }
224 :
225 : /* attribute double mozBrightness; */
226 : NS_IMETHODIMP nsDOMScreen::GetMozBrightness(double *aMozBrightness)
227 : {
228 : return NS_ERROR_NOT_IMPLEMENTED;
229 : }
230 : NS_IMETHODIMP nsDOMScreen::SetMozBrightness(double aMozBrightness)
231 : {
232 : return NS_ERROR_NOT_IMPLEMENTED;
233 : }
234 :
235 : /* End of implementation class template. */
236 : #endif
237 :
238 :
239 : #endif /* __gen_nsIDOMScreen_h__ */
|