1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/base/public/nsIImageLoadingContent.idl
3 : */
4 :
5 : #ifndef __gen_nsIImageLoadingContent_h__
6 : #define __gen_nsIImageLoadingContent_h__
7 :
8 :
9 : #ifndef __gen_imgIDecoderObserver_h__
10 : #include "imgIDecoderObserver.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 imgIRequest; /* forward declaration */
18 :
19 : class nsIChannel; /* forward declaration */
20 :
21 : class nsIStreamListener; /* forward declaration */
22 :
23 : class nsIURI; /* forward declaration */
24 :
25 : class nsIDocument; /* forward declaration */
26 :
27 : class nsIFrame; /* forward declaration */
28 :
29 :
30 : /* starting interface: nsIImageLoadingContent */
31 : #define NS_IIMAGELOADINGCONTENT_IID_STR "f7debb84-2854-4731-a57b-1bd752ad71f8"
32 :
33 : #define NS_IIMAGELOADINGCONTENT_IID \
34 : {0xf7debb84, 0x2854, 0x4731, \
35 : { 0xa5, 0x7b, 0x1b, 0xd7, 0x52, 0xad, 0x71, 0xf8 }}
36 :
37 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIImageLoadingContent : public imgIDecoderObserver {
38 : public:
39 :
40 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMAGELOADINGCONTENT_IID)
41 :
42 : enum {
43 : UNKNOWN_REQUEST = -1,
44 : CURRENT_REQUEST = 0,
45 : PENDING_REQUEST = 1
46 : };
47 :
48 : /* attribute boolean loadingEnabled; */
49 : NS_SCRIPTABLE NS_IMETHOD GetLoadingEnabled(bool *aLoadingEnabled) = 0;
50 : NS_SCRIPTABLE NS_IMETHOD SetLoadingEnabled(bool aLoadingEnabled) = 0;
51 :
52 : /* readonly attribute short imageBlockingStatus; */
53 : NS_SCRIPTABLE NS_IMETHOD GetImageBlockingStatus(PRInt16 *aImageBlockingStatus) = 0;
54 :
55 : /* void addObserver (in imgIDecoderObserver aObserver); */
56 : NS_SCRIPTABLE NS_IMETHOD AddObserver(imgIDecoderObserver *aObserver) = 0;
57 :
58 : /* void removeObserver (in imgIDecoderObserver aObserver); */
59 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(imgIDecoderObserver *aObserver) = 0;
60 :
61 : /* imgIRequest getRequest (in long aRequestType); */
62 : NS_SCRIPTABLE NS_IMETHOD GetRequest(PRInt32 aRequestType, imgIRequest * *_retval NS_OUTPARAM) = 0;
63 :
64 : /* [notxpcom] void frameCreated (in nsIFrame aFrame); */
65 : NS_IMETHOD_(void) FrameCreated(nsIFrame *aFrame) = 0;
66 :
67 : /* [notxpcom] void frameDestroyed (in nsIFrame aFrame); */
68 : NS_IMETHOD_(void) FrameDestroyed(nsIFrame *aFrame) = 0;
69 :
70 : /* long getRequestType (in imgIRequest aRequest); */
71 : NS_SCRIPTABLE NS_IMETHOD GetRequestType(imgIRequest *aRequest, PRInt32 *_retval NS_OUTPARAM) = 0;
72 :
73 : /* readonly attribute nsIURI currentURI; */
74 : NS_SCRIPTABLE NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) = 0;
75 :
76 : /* nsIStreamListener loadImageWithChannel (in nsIChannel aChannel); */
77 : NS_SCRIPTABLE NS_IMETHOD LoadImageWithChannel(nsIChannel *aChannel, nsIStreamListener * *_retval NS_OUTPARAM) = 0;
78 :
79 : /* void forceReload (); */
80 : NS_SCRIPTABLE NS_IMETHOD ForceReload(void) = 0;
81 :
82 : /* void forceImageState (in boolean aForce, in unsigned long long aState); */
83 : NS_SCRIPTABLE NS_IMETHOD ForceImageState(bool aForce, PRUint64 aState) = 0;
84 :
85 : /* [noscript,notxpcom] void NotifyOwnerDocumentChanged (in nsIDocument aOldDoc); */
86 : NS_IMETHOD_(void) NotifyOwnerDocumentChanged(nsIDocument *aOldDoc) = 0;
87 :
88 : };
89 :
90 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIImageLoadingContent, NS_IIMAGELOADINGCONTENT_IID)
91 :
92 : /* Use this macro when declaring classes that implement this interface. */
93 : #define NS_DECL_NSIIMAGELOADINGCONTENT \
94 : NS_SCRIPTABLE NS_IMETHOD GetLoadingEnabled(bool *aLoadingEnabled); \
95 : NS_SCRIPTABLE NS_IMETHOD SetLoadingEnabled(bool aLoadingEnabled); \
96 : NS_SCRIPTABLE NS_IMETHOD GetImageBlockingStatus(PRInt16 *aImageBlockingStatus); \
97 : NS_SCRIPTABLE NS_IMETHOD AddObserver(imgIDecoderObserver *aObserver); \
98 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(imgIDecoderObserver *aObserver); \
99 : NS_SCRIPTABLE NS_IMETHOD GetRequest(PRInt32 aRequestType, imgIRequest * *_retval NS_OUTPARAM); \
100 : NS_IMETHOD_(void) FrameCreated(nsIFrame *aFrame); \
101 : NS_IMETHOD_(void) FrameDestroyed(nsIFrame *aFrame); \
102 : NS_SCRIPTABLE NS_IMETHOD GetRequestType(imgIRequest *aRequest, PRInt32 *_retval NS_OUTPARAM); \
103 : NS_SCRIPTABLE NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI); \
104 : NS_SCRIPTABLE NS_IMETHOD LoadImageWithChannel(nsIChannel *aChannel, nsIStreamListener * *_retval NS_OUTPARAM); \
105 : NS_SCRIPTABLE NS_IMETHOD ForceReload(void); \
106 : NS_SCRIPTABLE NS_IMETHOD ForceImageState(bool aForce, PRUint64 aState); \
107 : NS_IMETHOD_(void) NotifyOwnerDocumentChanged(nsIDocument *aOldDoc);
108 :
109 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
110 : #define NS_FORWARD_NSIIMAGELOADINGCONTENT(_to) \
111 : NS_SCRIPTABLE NS_IMETHOD GetLoadingEnabled(bool *aLoadingEnabled) { return _to GetLoadingEnabled(aLoadingEnabled); } \
112 : NS_SCRIPTABLE NS_IMETHOD SetLoadingEnabled(bool aLoadingEnabled) { return _to SetLoadingEnabled(aLoadingEnabled); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetImageBlockingStatus(PRInt16 *aImageBlockingStatus) { return _to GetImageBlockingStatus(aImageBlockingStatus); } \
114 : NS_SCRIPTABLE NS_IMETHOD AddObserver(imgIDecoderObserver *aObserver) { return _to AddObserver(aObserver); } \
115 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(imgIDecoderObserver *aObserver) { return _to RemoveObserver(aObserver); } \
116 : NS_SCRIPTABLE NS_IMETHOD GetRequest(PRInt32 aRequestType, imgIRequest * *_retval NS_OUTPARAM) { return _to GetRequest(aRequestType, _retval); } \
117 : NS_IMETHOD_(void) FrameCreated(nsIFrame *aFrame) { return _to FrameCreated(aFrame); } \
118 : NS_IMETHOD_(void) FrameDestroyed(nsIFrame *aFrame) { return _to FrameDestroyed(aFrame); } \
119 : NS_SCRIPTABLE NS_IMETHOD GetRequestType(imgIRequest *aRequest, PRInt32 *_retval NS_OUTPARAM) { return _to GetRequestType(aRequest, _retval); } \
120 : NS_SCRIPTABLE NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) { return _to GetCurrentURI(aCurrentURI); } \
121 : NS_SCRIPTABLE NS_IMETHOD LoadImageWithChannel(nsIChannel *aChannel, nsIStreamListener * *_retval NS_OUTPARAM) { return _to LoadImageWithChannel(aChannel, _retval); } \
122 : NS_SCRIPTABLE NS_IMETHOD ForceReload(void) { return _to ForceReload(); } \
123 : NS_SCRIPTABLE NS_IMETHOD ForceImageState(bool aForce, PRUint64 aState) { return _to ForceImageState(aForce, aState); } \
124 : NS_IMETHOD_(void) NotifyOwnerDocumentChanged(nsIDocument *aOldDoc) { return _to NotifyOwnerDocumentChanged(aOldDoc); }
125 :
126 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
127 : #define NS_FORWARD_SAFE_NSIIMAGELOADINGCONTENT(_to) \
128 : NS_SCRIPTABLE NS_IMETHOD GetLoadingEnabled(bool *aLoadingEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadingEnabled(aLoadingEnabled); } \
129 : NS_SCRIPTABLE NS_IMETHOD SetLoadingEnabled(bool aLoadingEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadingEnabled(aLoadingEnabled); } \
130 : NS_SCRIPTABLE NS_IMETHOD GetImageBlockingStatus(PRInt16 *aImageBlockingStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageBlockingStatus(aImageBlockingStatus); } \
131 : NS_SCRIPTABLE NS_IMETHOD AddObserver(imgIDecoderObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
132 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(imgIDecoderObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
133 : NS_SCRIPTABLE NS_IMETHOD GetRequest(PRInt32 aRequestType, imgIRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequest(aRequestType, _retval); } \
134 : NS_IMETHOD_(void) FrameCreated(nsIFrame *aFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->FrameCreated(aFrame); } \
135 : NS_IMETHOD_(void) FrameDestroyed(nsIFrame *aFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->FrameDestroyed(aFrame); } \
136 : NS_SCRIPTABLE NS_IMETHOD GetRequestType(imgIRequest *aRequest, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestType(aRequest, _retval); } \
137 : NS_SCRIPTABLE NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentURI(aCurrentURI); } \
138 : NS_SCRIPTABLE NS_IMETHOD LoadImageWithChannel(nsIChannel *aChannel, nsIStreamListener * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadImageWithChannel(aChannel, _retval); } \
139 : NS_SCRIPTABLE NS_IMETHOD ForceReload(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceReload(); } \
140 : NS_SCRIPTABLE NS_IMETHOD ForceImageState(bool aForce, PRUint64 aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceImageState(aForce, aState); } \
141 : NS_IMETHOD_(void) NotifyOwnerDocumentChanged(nsIDocument *aOldDoc) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyOwnerDocumentChanged(aOldDoc); }
142 :
143 : #if 0
144 : /* Use the code below as a template for the implementation class for this interface. */
145 :
146 : /* Header file */
147 : class nsImageLoadingContent : public nsIImageLoadingContent
148 : {
149 : public:
150 : NS_DECL_ISUPPORTS
151 : NS_DECL_NSIIMAGELOADINGCONTENT
152 :
153 : nsImageLoadingContent();
154 :
155 : private:
156 : ~nsImageLoadingContent();
157 :
158 : protected:
159 : /* additional members */
160 : };
161 :
162 : /* Implementation file */
163 : NS_IMPL_ISUPPORTS1(nsImageLoadingContent, nsIImageLoadingContent)
164 :
165 : nsImageLoadingContent::nsImageLoadingContent()
166 : {
167 : /* member initializers and constructor code */
168 : }
169 :
170 : nsImageLoadingContent::~nsImageLoadingContent()
171 : {
172 : /* destructor code */
173 : }
174 :
175 : /* attribute boolean loadingEnabled; */
176 : NS_IMETHODIMP nsImageLoadingContent::GetLoadingEnabled(bool *aLoadingEnabled)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 : NS_IMETHODIMP nsImageLoadingContent::SetLoadingEnabled(bool aLoadingEnabled)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 :
185 : /* readonly attribute short imageBlockingStatus; */
186 : NS_IMETHODIMP nsImageLoadingContent::GetImageBlockingStatus(PRInt16 *aImageBlockingStatus)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 :
191 : /* void addObserver (in imgIDecoderObserver aObserver); */
192 : NS_IMETHODIMP nsImageLoadingContent::AddObserver(imgIDecoderObserver *aObserver)
193 : {
194 : return NS_ERROR_NOT_IMPLEMENTED;
195 : }
196 :
197 : /* void removeObserver (in imgIDecoderObserver aObserver); */
198 : NS_IMETHODIMP nsImageLoadingContent::RemoveObserver(imgIDecoderObserver *aObserver)
199 : {
200 : return NS_ERROR_NOT_IMPLEMENTED;
201 : }
202 :
203 : /* imgIRequest getRequest (in long aRequestType); */
204 : NS_IMETHODIMP nsImageLoadingContent::GetRequest(PRInt32 aRequestType, imgIRequest * *_retval NS_OUTPARAM)
205 : {
206 : return NS_ERROR_NOT_IMPLEMENTED;
207 : }
208 :
209 : /* [notxpcom] void frameCreated (in nsIFrame aFrame); */
210 : NS_IMETHODIMP_(void) nsImageLoadingContent::FrameCreated(nsIFrame *aFrame)
211 : {
212 : return NS_ERROR_NOT_IMPLEMENTED;
213 : }
214 :
215 : /* [notxpcom] void frameDestroyed (in nsIFrame aFrame); */
216 : NS_IMETHODIMP_(void) nsImageLoadingContent::FrameDestroyed(nsIFrame *aFrame)
217 : {
218 : return NS_ERROR_NOT_IMPLEMENTED;
219 : }
220 :
221 : /* long getRequestType (in imgIRequest aRequest); */
222 : NS_IMETHODIMP nsImageLoadingContent::GetRequestType(imgIRequest *aRequest, PRInt32 *_retval NS_OUTPARAM)
223 : {
224 : return NS_ERROR_NOT_IMPLEMENTED;
225 : }
226 :
227 : /* readonly attribute nsIURI currentURI; */
228 : NS_IMETHODIMP nsImageLoadingContent::GetCurrentURI(nsIURI * *aCurrentURI)
229 : {
230 : return NS_ERROR_NOT_IMPLEMENTED;
231 : }
232 :
233 : /* nsIStreamListener loadImageWithChannel (in nsIChannel aChannel); */
234 : NS_IMETHODIMP nsImageLoadingContent::LoadImageWithChannel(nsIChannel *aChannel, nsIStreamListener * *_retval NS_OUTPARAM)
235 : {
236 : return NS_ERROR_NOT_IMPLEMENTED;
237 : }
238 :
239 : /* void forceReload (); */
240 : NS_IMETHODIMP nsImageLoadingContent::ForceReload()
241 : {
242 : return NS_ERROR_NOT_IMPLEMENTED;
243 : }
244 :
245 : /* void forceImageState (in boolean aForce, in unsigned long long aState); */
246 : NS_IMETHODIMP nsImageLoadingContent::ForceImageState(bool aForce, PRUint64 aState)
247 : {
248 : return NS_ERROR_NOT_IMPLEMENTED;
249 : }
250 :
251 : /* [noscript,notxpcom] void NotifyOwnerDocumentChanged (in nsIDocument aOldDoc); */
252 : NS_IMETHODIMP_(void) nsImageLoadingContent::NotifyOwnerDocumentChanged(nsIDocument *aOldDoc)
253 : {
254 : return NS_ERROR_NOT_IMPLEMENTED;
255 : }
256 :
257 : /* End of implementation class template. */
258 : #endif
259 :
260 :
261 : #endif /* __gen_nsIImageLoadingContent_h__ */
|