Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsITabParent.idl
3 : */
4 :
5 : #ifndef __gen_nsITabParent_h__
6 : #define __gen_nsITabParent_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.h"
11 : #endif
12 :
13 : #include "mozilla/Assertions.h"
14 : #include "mozilla/DebugOnly.h"
15 :
16 : /* For IDL files that don't want to include root IDL files. */
17 : #ifndef NS_NO_VTABLE
18 : #define NS_NO_VTABLE
19 : #endif
20 : class nsIPrincipal; /* forward declaration */
21 :
22 :
23 : /* starting interface: nsITabParent */
24 : #define NS_ITABPARENT_IID_STR "8e49f7b0-1f98-4939-bf91-e9c39cd56434"
25 :
26 : #define NS_ITABPARENT_IID \
27 : {0x8e49f7b0, 0x1f98, 0x4939, \
28 : { 0xbf, 0x91, 0xe9, 0xc3, 0x9c, 0xd5, 0x64, 0x34 }}
29 :
30 1 : class NS_NO_VTABLE nsITabParent : public nsISupports {
31 : public:
32 :
33 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITABPARENT_IID)
34 :
35 : /* void getChildProcessOffset (out int32_t aCssX, out int32_t aCssY); */
36 : NS_IMETHOD GetChildProcessOffset(int32_t *aCssX, int32_t *aCssY) = 0;
37 :
38 : /* readonly attribute boolean useAsyncPanZoom; */
39 : NS_IMETHOD GetUseAsyncPanZoom(bool *aUseAsyncPanZoom) = 0;
40 :
41 : /* attribute boolean docShellIsActive; */
42 : NS_IMETHOD GetDocShellIsActive(bool *aDocShellIsActive) = 0;
43 : NS_IMETHOD SetDocShellIsActive(bool aDocShellIsActive) = 0;
44 :
45 : /* [infallible] readonly attribute boolean isPrerendered; */
46 : NS_IMETHOD GetIsPrerendered(bool *aIsPrerendered) = 0;
47 : inline bool GetIsPrerendered()
48 : {
49 : bool result;
50 : mozilla::DebugOnly<nsresult> rv = GetIsPrerendered(&result);
51 : MOZ_ASSERT(NS_SUCCEEDED(rv));
52 : return result;
53 : }
54 :
55 : /* void preserveLayers (in boolean aPreserveLayers); */
56 : NS_IMETHOD PreserveLayers(bool aPreserveLayers) = 0;
57 :
58 : /* void suppressDisplayport (in bool aEnabled); */
59 : NS_IMETHOD SuppressDisplayport(bool aEnabled) = 0;
60 :
61 : /* readonly attribute uint64_t tabId; */
62 : NS_IMETHOD GetTabId(uint64_t *aTabId) = 0;
63 :
64 : /* readonly attribute int32_t osPid; */
65 : NS_IMETHOD GetOsPid(int32_t *aOsPid) = 0;
66 :
67 : /* void navigateByKey (in bool aForward, in bool aForDocumentNavigation); */
68 : NS_IMETHOD NavigateByKey(bool aForward, bool aForDocumentNavigation) = 0;
69 :
70 : /* readonly attribute boolean hasContentOpener; */
71 : NS_IMETHOD GetHasContentOpener(bool *aHasContentOpener) = 0;
72 :
73 : /* readonly attribute boolean hasPresented; */
74 : NS_IMETHOD GetHasPresented(bool *aHasPresented) = 0;
75 :
76 : /* void transmitPermissionsForPrincipal (in nsIPrincipal aPrincipal); */
77 : NS_IMETHOD TransmitPermissionsForPrincipal(nsIPrincipal *aPrincipal) = 0;
78 :
79 : /* readonly attribute boolean hasBeforeUnload; */
80 : NS_IMETHOD GetHasBeforeUnload(bool *aHasBeforeUnload) = 0;
81 :
82 : };
83 :
84 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITabParent, NS_ITABPARENT_IID)
85 :
86 : /* Use this macro when declaring classes that implement this interface. */
87 : #define NS_DECL_NSITABPARENT \
88 : NS_IMETHOD GetChildProcessOffset(int32_t *aCssX, int32_t *aCssY) override; \
89 : NS_IMETHOD GetUseAsyncPanZoom(bool *aUseAsyncPanZoom) override; \
90 : NS_IMETHOD GetDocShellIsActive(bool *aDocShellIsActive) override; \
91 : NS_IMETHOD SetDocShellIsActive(bool aDocShellIsActive) override; \
92 : using nsITabParent::GetIsPrerendered; \
93 : NS_IMETHOD GetIsPrerendered(bool *aIsPrerendered) override; \
94 : NS_IMETHOD PreserveLayers(bool aPreserveLayers) override; \
95 : NS_IMETHOD SuppressDisplayport(bool aEnabled) override; \
96 : NS_IMETHOD GetTabId(uint64_t *aTabId) override; \
97 : NS_IMETHOD GetOsPid(int32_t *aOsPid) override; \
98 : NS_IMETHOD NavigateByKey(bool aForward, bool aForDocumentNavigation) override; \
99 : NS_IMETHOD GetHasContentOpener(bool *aHasContentOpener) override; \
100 : NS_IMETHOD GetHasPresented(bool *aHasPresented) override; \
101 : NS_IMETHOD TransmitPermissionsForPrincipal(nsIPrincipal *aPrincipal) override; \
102 : NS_IMETHOD GetHasBeforeUnload(bool *aHasBeforeUnload) override;
103 :
104 : /* Use this macro when declaring the members of this interface when the
105 : class doesn't implement the interface. This is useful for forwarding. */
106 : #define NS_DECL_NON_VIRTUAL_NSITABPARENT \
107 : nsresult GetChildProcessOffset(int32_t *aCssX, int32_t *aCssY); \
108 : nsresult GetUseAsyncPanZoom(bool *aUseAsyncPanZoom); \
109 : nsresult GetDocShellIsActive(bool *aDocShellIsActive); \
110 : nsresult SetDocShellIsActive(bool aDocShellIsActive); \
111 : using nsITabParent::GetIsPrerendered; \
112 : nsresult GetIsPrerendered(bool *aIsPrerendered); \
113 : nsresult PreserveLayers(bool aPreserveLayers); \
114 : nsresult SuppressDisplayport(bool aEnabled); \
115 : nsresult GetTabId(uint64_t *aTabId); \
116 : nsresult GetOsPid(int32_t *aOsPid); \
117 : nsresult NavigateByKey(bool aForward, bool aForDocumentNavigation); \
118 : nsresult GetHasContentOpener(bool *aHasContentOpener); \
119 : nsresult GetHasPresented(bool *aHasPresented); \
120 : nsresult TransmitPermissionsForPrincipal(nsIPrincipal *aPrincipal); \
121 : nsresult GetHasBeforeUnload(bool *aHasBeforeUnload);
122 :
123 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
124 : #define NS_FORWARD_NSITABPARENT(_to) \
125 : NS_IMETHOD GetChildProcessOffset(int32_t *aCssX, int32_t *aCssY) override { return _to GetChildProcessOffset(aCssX, aCssY); } \
126 : NS_IMETHOD GetUseAsyncPanZoom(bool *aUseAsyncPanZoom) override { return _to GetUseAsyncPanZoom(aUseAsyncPanZoom); } \
127 : NS_IMETHOD GetDocShellIsActive(bool *aDocShellIsActive) override { return _to GetDocShellIsActive(aDocShellIsActive); } \
128 : NS_IMETHOD SetDocShellIsActive(bool aDocShellIsActive) override { return _to SetDocShellIsActive(aDocShellIsActive); } \
129 : using nsITabParent::GetIsPrerendered; \
130 : NS_IMETHOD GetIsPrerendered(bool *aIsPrerendered) override { return _to GetIsPrerendered(aIsPrerendered); } \
131 : NS_IMETHOD PreserveLayers(bool aPreserveLayers) override { return _to PreserveLayers(aPreserveLayers); } \
132 : NS_IMETHOD SuppressDisplayport(bool aEnabled) override { return _to SuppressDisplayport(aEnabled); } \
133 : NS_IMETHOD GetTabId(uint64_t *aTabId) override { return _to GetTabId(aTabId); } \
134 : NS_IMETHOD GetOsPid(int32_t *aOsPid) override { return _to GetOsPid(aOsPid); } \
135 : NS_IMETHOD NavigateByKey(bool aForward, bool aForDocumentNavigation) override { return _to NavigateByKey(aForward, aForDocumentNavigation); } \
136 : NS_IMETHOD GetHasContentOpener(bool *aHasContentOpener) override { return _to GetHasContentOpener(aHasContentOpener); } \
137 : NS_IMETHOD GetHasPresented(bool *aHasPresented) override { return _to GetHasPresented(aHasPresented); } \
138 : NS_IMETHOD TransmitPermissionsForPrincipal(nsIPrincipal *aPrincipal) override { return _to TransmitPermissionsForPrincipal(aPrincipal); } \
139 : NS_IMETHOD GetHasBeforeUnload(bool *aHasBeforeUnload) override { return _to GetHasBeforeUnload(aHasBeforeUnload); }
140 :
141 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
142 : #define NS_FORWARD_SAFE_NSITABPARENT(_to) \
143 : NS_IMETHOD GetChildProcessOffset(int32_t *aCssX, int32_t *aCssY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildProcessOffset(aCssX, aCssY); } \
144 : NS_IMETHOD GetUseAsyncPanZoom(bool *aUseAsyncPanZoom) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseAsyncPanZoom(aUseAsyncPanZoom); } \
145 : NS_IMETHOD GetDocShellIsActive(bool *aDocShellIsActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocShellIsActive(aDocShellIsActive); } \
146 : NS_IMETHOD SetDocShellIsActive(bool aDocShellIsActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocShellIsActive(aDocShellIsActive); } \
147 : NS_IMETHOD GetIsPrerendered(bool *aIsPrerendered) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsPrerendered(aIsPrerendered); } \
148 : NS_IMETHOD PreserveLayers(bool aPreserveLayers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PreserveLayers(aPreserveLayers); } \
149 : NS_IMETHOD SuppressDisplayport(bool aEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SuppressDisplayport(aEnabled); } \
150 : NS_IMETHOD GetTabId(uint64_t *aTabId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabId(aTabId); } \
151 : NS_IMETHOD GetOsPid(int32_t *aOsPid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOsPid(aOsPid); } \
152 : NS_IMETHOD NavigateByKey(bool aForward, bool aForDocumentNavigation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NavigateByKey(aForward, aForDocumentNavigation); } \
153 : NS_IMETHOD GetHasContentOpener(bool *aHasContentOpener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasContentOpener(aHasContentOpener); } \
154 : NS_IMETHOD GetHasPresented(bool *aHasPresented) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasPresented(aHasPresented); } \
155 : NS_IMETHOD TransmitPermissionsForPrincipal(nsIPrincipal *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TransmitPermissionsForPrincipal(aPrincipal); } \
156 : NS_IMETHOD GetHasBeforeUnload(bool *aHasBeforeUnload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasBeforeUnload(aHasBeforeUnload); }
157 :
158 : #if 0
159 : /* Use the code below as a template for the implementation class for this interface. */
160 :
161 : /* Header file */
162 : class nsTabParent : public nsITabParent
163 : {
164 : public:
165 : NS_DECL_ISUPPORTS
166 : NS_DECL_NSITABPARENT
167 :
168 : nsTabParent();
169 :
170 : private:
171 : ~nsTabParent();
172 :
173 : protected:
174 : /* additional members */
175 : };
176 :
177 : /* Implementation file */
178 : NS_IMPL_ISUPPORTS(nsTabParent, nsITabParent)
179 :
180 : nsTabParent::nsTabParent()
181 : {
182 : /* member initializers and constructor code */
183 : }
184 :
185 : nsTabParent::~nsTabParent()
186 : {
187 : /* destructor code */
188 : }
189 :
190 : /* void getChildProcessOffset (out int32_t aCssX, out int32_t aCssY); */
191 : NS_IMETHODIMP nsTabParent::GetChildProcessOffset(int32_t *aCssX, int32_t *aCssY)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* readonly attribute boolean useAsyncPanZoom; */
197 : NS_IMETHODIMP nsTabParent::GetUseAsyncPanZoom(bool *aUseAsyncPanZoom)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* attribute boolean docShellIsActive; */
203 : NS_IMETHODIMP nsTabParent::GetDocShellIsActive(bool *aDocShellIsActive)
204 : {
205 : return NS_ERROR_NOT_IMPLEMENTED;
206 : }
207 : NS_IMETHODIMP nsTabParent::SetDocShellIsActive(bool aDocShellIsActive)
208 : {
209 : return NS_ERROR_NOT_IMPLEMENTED;
210 : }
211 :
212 : /* [infallible] readonly attribute boolean isPrerendered; */
213 : NS_IMETHODIMP nsTabParent::GetIsPrerendered(bool *aIsPrerendered)
214 : {
215 : return NS_ERROR_NOT_IMPLEMENTED;
216 : }
217 :
218 : /* void preserveLayers (in boolean aPreserveLayers); */
219 : NS_IMETHODIMP nsTabParent::PreserveLayers(bool aPreserveLayers)
220 : {
221 : return NS_ERROR_NOT_IMPLEMENTED;
222 : }
223 :
224 : /* void suppressDisplayport (in bool aEnabled); */
225 : NS_IMETHODIMP nsTabParent::SuppressDisplayport(bool aEnabled)
226 : {
227 : return NS_ERROR_NOT_IMPLEMENTED;
228 : }
229 :
230 : /* readonly attribute uint64_t tabId; */
231 : NS_IMETHODIMP nsTabParent::GetTabId(uint64_t *aTabId)
232 : {
233 : return NS_ERROR_NOT_IMPLEMENTED;
234 : }
235 :
236 : /* readonly attribute int32_t osPid; */
237 : NS_IMETHODIMP nsTabParent::GetOsPid(int32_t *aOsPid)
238 : {
239 : return NS_ERROR_NOT_IMPLEMENTED;
240 : }
241 :
242 : /* void navigateByKey (in bool aForward, in bool aForDocumentNavigation); */
243 : NS_IMETHODIMP nsTabParent::NavigateByKey(bool aForward, bool aForDocumentNavigation)
244 : {
245 : return NS_ERROR_NOT_IMPLEMENTED;
246 : }
247 :
248 : /* readonly attribute boolean hasContentOpener; */
249 : NS_IMETHODIMP nsTabParent::GetHasContentOpener(bool *aHasContentOpener)
250 : {
251 : return NS_ERROR_NOT_IMPLEMENTED;
252 : }
253 :
254 : /* readonly attribute boolean hasPresented; */
255 : NS_IMETHODIMP nsTabParent::GetHasPresented(bool *aHasPresented)
256 : {
257 : return NS_ERROR_NOT_IMPLEMENTED;
258 : }
259 :
260 : /* void transmitPermissionsForPrincipal (in nsIPrincipal aPrincipal); */
261 : NS_IMETHODIMP nsTabParent::TransmitPermissionsForPrincipal(nsIPrincipal *aPrincipal)
262 : {
263 : return NS_ERROR_NOT_IMPLEMENTED;
264 : }
265 :
266 : /* readonly attribute boolean hasBeforeUnload; */
267 : NS_IMETHODIMP nsTabParent::GetHasBeforeUnload(bool *aHasBeforeUnload)
268 : {
269 : return NS_ERROR_NOT_IMPLEMENTED;
270 : }
271 :
272 : /* End of implementation class template. */
273 : #endif
274 :
275 :
276 : #endif /* __gen_nsITabParent_h__ */
|