Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebBrowser.idl
3 : */
4 :
5 : #ifndef __gen_nsIWebBrowser_h__
6 : #define __gen_nsIWebBrowser_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 nsIInterfaceRequestor; /* forward declaration */
18 :
19 : class nsIWebBrowserChrome; /* forward declaration */
20 :
21 : class nsIURIContentListener; /* forward declaration */
22 :
23 : class nsIDOMWindow; /* forward declaration */
24 :
25 : class mozIDOMWindowProxy; /* forward declaration */
26 :
27 : class nsIWeakReference; /* forward declaration */
28 :
29 : namespace mozilla {
30 : class OriginAttributes;
31 : }
32 :
33 : /* starting interface: nsIWebBrowser */
34 : #define NS_IWEBBROWSER_IID_STR "4052b6da-4faa-4646-b3a1-7e16a01c2dc2"
35 :
36 : #define NS_IWEBBROWSER_IID \
37 : {0x4052b6da, 0x4faa, 0x4646, \
38 : { 0xb3, 0xa1, 0x7e, 0x16, 0xa0, 0x1c, 0x2d, 0xc2 }}
39 :
40 1 : class NS_NO_VTABLE nsIWebBrowser : public nsISupports {
41 : public:
42 :
43 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSER_IID)
44 :
45 : /* void addWebBrowserListener (in nsIWeakReference aListener, in nsIIDRef aIID); */
46 : NS_IMETHOD AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) = 0;
47 :
48 : /* void removeWebBrowserListener (in nsIWeakReference aListener, in nsIIDRef aIID); */
49 : NS_IMETHOD RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) = 0;
50 :
51 : /* attribute nsIWebBrowserChrome containerWindow; */
52 : NS_IMETHOD GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow) = 0;
53 : NS_IMETHOD SetContainerWindow(nsIWebBrowserChrome *aContainerWindow) = 0;
54 :
55 : /* attribute nsIURIContentListener parentURIContentListener; */
56 : NS_IMETHOD GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener) = 0;
57 : NS_IMETHOD SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener) = 0;
58 :
59 : /* readonly attribute mozIDOMWindowProxy contentDOMWindow; */
60 : NS_IMETHOD GetContentDOMWindow(mozIDOMWindowProxy * *aContentDOMWindow) = 0;
61 :
62 : /* attribute boolean isActive; */
63 : NS_IMETHOD GetIsActive(bool *aIsActive) = 0;
64 : NS_IMETHOD SetIsActive(bool aIsActive) = 0;
65 :
66 : /* [binaryname(SetOriginAttributes),noscript,nostdcall,notxpcom] void binarySetOriginAttributes (in const_OriginAttributesRef aOriginAttrs); */
67 : virtual void SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs) = 0;
68 :
69 : };
70 :
71 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowser, NS_IWEBBROWSER_IID)
72 :
73 : /* Use this macro when declaring classes that implement this interface. */
74 : #define NS_DECL_NSIWEBBROWSER \
75 : NS_IMETHOD AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) override; \
76 : NS_IMETHOD RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) override; \
77 : NS_IMETHOD GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow) override; \
78 : NS_IMETHOD SetContainerWindow(nsIWebBrowserChrome *aContainerWindow) override; \
79 : NS_IMETHOD GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener) override; \
80 : NS_IMETHOD SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener) override; \
81 : NS_IMETHOD GetContentDOMWindow(mozIDOMWindowProxy * *aContentDOMWindow) override; \
82 : NS_IMETHOD GetIsActive(bool *aIsActive) override; \
83 : NS_IMETHOD SetIsActive(bool aIsActive) override; \
84 : virtual void SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs) override;
85 :
86 : /* Use this macro when declaring the members of this interface when the
87 : class doesn't implement the interface. This is useful for forwarding. */
88 : #define NS_DECL_NON_VIRTUAL_NSIWEBBROWSER \
89 : nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID); \
90 : nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID); \
91 : nsresult GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow); \
92 : nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow); \
93 : nsresult GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener); \
94 : nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener); \
95 : nsresult GetContentDOMWindow(mozIDOMWindowProxy * *aContentDOMWindow); \
96 : nsresult GetIsActive(bool *aIsActive); \
97 : nsresult SetIsActive(bool aIsActive); \
98 : void SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs);
99 :
100 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
101 : #define NS_FORWARD_NSIWEBBROWSER(_to) \
102 : NS_IMETHOD AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) override { return _to AddWebBrowserListener(aListener, aIID); } \
103 : NS_IMETHOD RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) override { return _to RemoveWebBrowserListener(aListener, aIID); } \
104 : NS_IMETHOD GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow) override { return _to GetContainerWindow(aContainerWindow); } \
105 : NS_IMETHOD SetContainerWindow(nsIWebBrowserChrome *aContainerWindow) override { return _to SetContainerWindow(aContainerWindow); } \
106 : NS_IMETHOD GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener) override { return _to GetParentURIContentListener(aParentURIContentListener); } \
107 : NS_IMETHOD SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener) override { return _to SetParentURIContentListener(aParentURIContentListener); } \
108 : NS_IMETHOD GetContentDOMWindow(mozIDOMWindowProxy * *aContentDOMWindow) override { return _to GetContentDOMWindow(aContentDOMWindow); } \
109 : NS_IMETHOD GetIsActive(bool *aIsActive) override { return _to GetIsActive(aIsActive); } \
110 : NS_IMETHOD SetIsActive(bool aIsActive) override { return _to SetIsActive(aIsActive); } \
111 : virtual void SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs) override { return _to SetOriginAttributes(aOriginAttrs); }
112 :
113 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
114 : #define NS_FORWARD_SAFE_NSIWEBBROWSER(_to) \
115 : NS_IMETHOD AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWebBrowserListener(aListener, aIID); } \
116 : NS_IMETHOD RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWebBrowserListener(aListener, aIID); } \
117 : NS_IMETHOD GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContainerWindow(aContainerWindow); } \
118 : NS_IMETHOD SetContainerWindow(nsIWebBrowserChrome *aContainerWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContainerWindow(aContainerWindow); } \
119 : NS_IMETHOD GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentURIContentListener(aParentURIContentListener); } \
120 : NS_IMETHOD SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentURIContentListener(aParentURIContentListener); } \
121 : NS_IMETHOD GetContentDOMWindow(mozIDOMWindowProxy * *aContentDOMWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDOMWindow(aContentDOMWindow); } \
122 : NS_IMETHOD GetIsActive(bool *aIsActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsActive(aIsActive); } \
123 : NS_IMETHOD SetIsActive(bool aIsActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsActive(aIsActive); } \
124 : virtual void SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs) override;
125 :
126 : #if 0
127 : /* Use the code below as a template for the implementation class for this interface. */
128 :
129 : /* Header file */
130 : class nsWebBrowser : public nsIWebBrowser
131 : {
132 : public:
133 : NS_DECL_ISUPPORTS
134 : NS_DECL_NSIWEBBROWSER
135 :
136 : nsWebBrowser();
137 :
138 : private:
139 : ~nsWebBrowser();
140 :
141 : protected:
142 : /* additional members */
143 : };
144 :
145 : /* Implementation file */
146 : NS_IMPL_ISUPPORTS(nsWebBrowser, nsIWebBrowser)
147 :
148 : nsWebBrowser::nsWebBrowser()
149 : {
150 : /* member initializers and constructor code */
151 : }
152 :
153 : nsWebBrowser::~nsWebBrowser()
154 : {
155 : /* destructor code */
156 : }
157 :
158 : /* void addWebBrowserListener (in nsIWeakReference aListener, in nsIIDRef aIID); */
159 : NS_IMETHODIMP nsWebBrowser::AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID)
160 : {
161 : return NS_ERROR_NOT_IMPLEMENTED;
162 : }
163 :
164 : /* void removeWebBrowserListener (in nsIWeakReference aListener, in nsIIDRef aIID); */
165 : NS_IMETHODIMP nsWebBrowser::RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID)
166 : {
167 : return NS_ERROR_NOT_IMPLEMENTED;
168 : }
169 :
170 : /* attribute nsIWebBrowserChrome containerWindow; */
171 : NS_IMETHODIMP nsWebBrowser::GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow)
172 : {
173 : return NS_ERROR_NOT_IMPLEMENTED;
174 : }
175 : NS_IMETHODIMP nsWebBrowser::SetContainerWindow(nsIWebBrowserChrome *aContainerWindow)
176 : {
177 : return NS_ERROR_NOT_IMPLEMENTED;
178 : }
179 :
180 : /* attribute nsIURIContentListener parentURIContentListener; */
181 : NS_IMETHODIMP nsWebBrowser::GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener)
182 : {
183 : return NS_ERROR_NOT_IMPLEMENTED;
184 : }
185 : NS_IMETHODIMP nsWebBrowser::SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 :
190 : /* readonly attribute mozIDOMWindowProxy contentDOMWindow; */
191 : NS_IMETHODIMP nsWebBrowser::GetContentDOMWindow(mozIDOMWindowProxy * *aContentDOMWindow)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* attribute boolean isActive; */
197 : NS_IMETHODIMP nsWebBrowser::GetIsActive(bool *aIsActive)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 : NS_IMETHODIMP nsWebBrowser::SetIsActive(bool aIsActive)
202 : {
203 : return NS_ERROR_NOT_IMPLEMENTED;
204 : }
205 :
206 : /* [binaryname(SetOriginAttributes),noscript,nostdcall,notxpcom] void binarySetOriginAttributes (in const_OriginAttributesRef aOriginAttrs); */
207 : void nsWebBrowser::SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs)
208 : {
209 : return NS_ERROR_NOT_IMPLEMENTED;
210 : }
211 :
212 : /* End of implementation class template. */
213 : #endif
214 :
215 :
216 : #endif /* __gen_nsIWebBrowser_h__ */
|