Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationDevicePrompt.idl
3 : */
4 :
5 : #ifndef __gen_nsIPresentationDevicePrompt_h__
6 : #define __gen_nsIPresentationDevicePrompt_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 nsIArray; /* forward declaration */
18 :
19 : class nsIDOMEventTarget; /* forward declaration */
20 :
21 : class nsIPresentationDevice; /* forward declaration */
22 :
23 : class nsIPrincipal; /* forward declaration */
24 :
25 : #define PRESENTATION_DEVICE_PROMPT_CONTRACTID "@mozilla.org/presentation-device/prompt;1"
26 :
27 : /* starting interface: nsIPresentationDeviceRequest */
28 : #define NS_IPRESENTATIONDEVICEREQUEST_IID_STR "b2aa7f6a-9448-446a-bba4-9c29638b0ed4"
29 :
30 : #define NS_IPRESENTATIONDEVICEREQUEST_IID \
31 : {0xb2aa7f6a, 0x9448, 0x446a, \
32 : { 0xbb, 0xa4, 0x9c, 0x29, 0x63, 0x8b, 0x0e, 0xd4 }}
33 :
34 0 : class NS_NO_VTABLE nsIPresentationDeviceRequest : public nsISupports {
35 : public:
36 :
37 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONDEVICEREQUEST_IID)
38 :
39 : /* readonly attribute DOMString origin; */
40 : NS_IMETHOD GetOrigin(nsAString & aOrigin) = 0;
41 :
42 : /* readonly attribute nsIArray requestURLs; */
43 : NS_IMETHOD GetRequestURLs(nsIArray * *aRequestURLs) = 0;
44 :
45 : /* readonly attribute nsIDOMEventTarget chromeEventHandler; */
46 : NS_IMETHOD GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler) = 0;
47 :
48 : /* readonly attribute nsIPrincipal principal; */
49 : NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) = 0;
50 :
51 : /* void select (in nsIPresentationDevice device); */
52 : NS_IMETHOD Select(nsIPresentationDevice *device) = 0;
53 :
54 : /* void cancel (in nsresult reason); */
55 : NS_IMETHOD Cancel(nsresult reason) = 0;
56 :
57 : };
58 :
59 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationDeviceRequest, NS_IPRESENTATIONDEVICEREQUEST_IID)
60 :
61 : /* Use this macro when declaring classes that implement this interface. */
62 : #define NS_DECL_NSIPRESENTATIONDEVICEREQUEST \
63 : NS_IMETHOD GetOrigin(nsAString & aOrigin) override; \
64 : NS_IMETHOD GetRequestURLs(nsIArray * *aRequestURLs) override; \
65 : NS_IMETHOD GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler) override; \
66 : NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override; \
67 : NS_IMETHOD Select(nsIPresentationDevice *device) override; \
68 : NS_IMETHOD Cancel(nsresult reason) override;
69 :
70 : /* Use this macro when declaring the members of this interface when the
71 : class doesn't implement the interface. This is useful for forwarding. */
72 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONDEVICEREQUEST \
73 : nsresult GetOrigin(nsAString & aOrigin); \
74 : nsresult GetRequestURLs(nsIArray * *aRequestURLs); \
75 : nsresult GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler); \
76 : nsresult GetPrincipal(nsIPrincipal * *aPrincipal); \
77 : nsresult Select(nsIPresentationDevice *device); \
78 : nsresult Cancel(nsresult reason);
79 :
80 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
81 : #define NS_FORWARD_NSIPRESENTATIONDEVICEREQUEST(_to) \
82 : NS_IMETHOD GetOrigin(nsAString & aOrigin) override { return _to GetOrigin(aOrigin); } \
83 : NS_IMETHOD GetRequestURLs(nsIArray * *aRequestURLs) override { return _to GetRequestURLs(aRequestURLs); } \
84 : NS_IMETHOD GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler) override { return _to GetChromeEventHandler(aChromeEventHandler); } \
85 : NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return _to GetPrincipal(aPrincipal); } \
86 : NS_IMETHOD Select(nsIPresentationDevice *device) override { return _to Select(device); } \
87 : NS_IMETHOD Cancel(nsresult reason) override { return _to Cancel(reason); }
88 :
89 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
90 : #define NS_FORWARD_SAFE_NSIPRESENTATIONDEVICEREQUEST(_to) \
91 : NS_IMETHOD GetOrigin(nsAString & aOrigin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrigin(aOrigin); } \
92 : NS_IMETHOD GetRequestURLs(nsIArray * *aRequestURLs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestURLs(aRequestURLs); } \
93 : NS_IMETHOD GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromeEventHandler(aChromeEventHandler); } \
94 : NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
95 : NS_IMETHOD Select(nsIPresentationDevice *device) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Select(device); } \
96 : NS_IMETHOD Cancel(nsresult reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(reason); }
97 :
98 : #if 0
99 : /* Use the code below as a template for the implementation class for this interface. */
100 :
101 : /* Header file */
102 : class nsPresentationDeviceRequest : public nsIPresentationDeviceRequest
103 : {
104 : public:
105 : NS_DECL_ISUPPORTS
106 : NS_DECL_NSIPRESENTATIONDEVICEREQUEST
107 :
108 : nsPresentationDeviceRequest();
109 :
110 : private:
111 : ~nsPresentationDeviceRequest();
112 :
113 : protected:
114 : /* additional members */
115 : };
116 :
117 : /* Implementation file */
118 : NS_IMPL_ISUPPORTS(nsPresentationDeviceRequest, nsIPresentationDeviceRequest)
119 :
120 : nsPresentationDeviceRequest::nsPresentationDeviceRequest()
121 : {
122 : /* member initializers and constructor code */
123 : }
124 :
125 : nsPresentationDeviceRequest::~nsPresentationDeviceRequest()
126 : {
127 : /* destructor code */
128 : }
129 :
130 : /* readonly attribute DOMString origin; */
131 : NS_IMETHODIMP nsPresentationDeviceRequest::GetOrigin(nsAString & aOrigin)
132 : {
133 : return NS_ERROR_NOT_IMPLEMENTED;
134 : }
135 :
136 : /* readonly attribute nsIArray requestURLs; */
137 : NS_IMETHODIMP nsPresentationDeviceRequest::GetRequestURLs(nsIArray * *aRequestURLs)
138 : {
139 : return NS_ERROR_NOT_IMPLEMENTED;
140 : }
141 :
142 : /* readonly attribute nsIDOMEventTarget chromeEventHandler; */
143 : NS_IMETHODIMP nsPresentationDeviceRequest::GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler)
144 : {
145 : return NS_ERROR_NOT_IMPLEMENTED;
146 : }
147 :
148 : /* readonly attribute nsIPrincipal principal; */
149 : NS_IMETHODIMP nsPresentationDeviceRequest::GetPrincipal(nsIPrincipal * *aPrincipal)
150 : {
151 : return NS_ERROR_NOT_IMPLEMENTED;
152 : }
153 :
154 : /* void select (in nsIPresentationDevice device); */
155 : NS_IMETHODIMP nsPresentationDeviceRequest::Select(nsIPresentationDevice *device)
156 : {
157 : return NS_ERROR_NOT_IMPLEMENTED;
158 : }
159 :
160 : /* void cancel (in nsresult reason); */
161 : NS_IMETHODIMP nsPresentationDeviceRequest::Cancel(nsresult reason)
162 : {
163 : return NS_ERROR_NOT_IMPLEMENTED;
164 : }
165 :
166 : /* End of implementation class template. */
167 : #endif
168 :
169 :
170 : /* starting interface: nsIPresentationDevicePrompt */
171 : #define NS_IPRESENTATIONDEVICEPROMPT_IID_STR "ac1a7e44-de86-454f-a9f1-276de2539831"
172 :
173 : #define NS_IPRESENTATIONDEVICEPROMPT_IID \
174 : {0xac1a7e44, 0xde86, 0x454f, \
175 : { 0xa9, 0xf1, 0x27, 0x6d, 0xe2, 0x53, 0x98, 0x31 }}
176 :
177 : class NS_NO_VTABLE nsIPresentationDevicePrompt : public nsISupports {
178 : public:
179 :
180 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONDEVICEPROMPT_IID)
181 :
182 : /* void promptDeviceSelection (in nsIPresentationDeviceRequest request); */
183 : NS_IMETHOD PromptDeviceSelection(nsIPresentationDeviceRequest *request) = 0;
184 :
185 : };
186 :
187 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationDevicePrompt, NS_IPRESENTATIONDEVICEPROMPT_IID)
188 :
189 : /* Use this macro when declaring classes that implement this interface. */
190 : #define NS_DECL_NSIPRESENTATIONDEVICEPROMPT \
191 : NS_IMETHOD PromptDeviceSelection(nsIPresentationDeviceRequest *request) override;
192 :
193 : /* Use this macro when declaring the members of this interface when the
194 : class doesn't implement the interface. This is useful for forwarding. */
195 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONDEVICEPROMPT \
196 : nsresult PromptDeviceSelection(nsIPresentationDeviceRequest *request);
197 :
198 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
199 : #define NS_FORWARD_NSIPRESENTATIONDEVICEPROMPT(_to) \
200 : NS_IMETHOD PromptDeviceSelection(nsIPresentationDeviceRequest *request) override { return _to PromptDeviceSelection(request); }
201 :
202 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
203 : #define NS_FORWARD_SAFE_NSIPRESENTATIONDEVICEPROMPT(_to) \
204 : NS_IMETHOD PromptDeviceSelection(nsIPresentationDeviceRequest *request) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptDeviceSelection(request); }
205 :
206 : #if 0
207 : /* Use the code below as a template for the implementation class for this interface. */
208 :
209 : /* Header file */
210 : class nsPresentationDevicePrompt : public nsIPresentationDevicePrompt
211 : {
212 : public:
213 : NS_DECL_ISUPPORTS
214 : NS_DECL_NSIPRESENTATIONDEVICEPROMPT
215 :
216 : nsPresentationDevicePrompt();
217 :
218 : private:
219 : ~nsPresentationDevicePrompt();
220 :
221 : protected:
222 : /* additional members */
223 : };
224 :
225 : /* Implementation file */
226 : NS_IMPL_ISUPPORTS(nsPresentationDevicePrompt, nsIPresentationDevicePrompt)
227 :
228 : nsPresentationDevicePrompt::nsPresentationDevicePrompt()
229 : {
230 : /* member initializers and constructor code */
231 : }
232 :
233 : nsPresentationDevicePrompt::~nsPresentationDevicePrompt()
234 : {
235 : /* destructor code */
236 : }
237 :
238 : /* void promptDeviceSelection (in nsIPresentationDeviceRequest request); */
239 : NS_IMETHODIMP nsPresentationDevicePrompt::PromptDeviceSelection(nsIPresentationDeviceRequest *request)
240 : {
241 : return NS_ERROR_NOT_IMPLEMENTED;
242 : }
243 :
244 : /* End of implementation class template. */
245 : #endif
246 :
247 :
248 : #endif /* __gen_nsIPresentationDevicePrompt_h__ */
|