1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/browser/webBrowser/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 nsIWeakReference; /* forward declaration */
26 :
27 :
28 : /* starting interface: nsIWebBrowser */
29 : #define NS_IWEBBROWSER_IID_STR "33e9d001-caab-4ba9-8961-54902f197202"
30 :
31 : #define NS_IWEBBROWSER_IID \
32 : {0x33e9d001, 0xcaab, 0x4ba9, \
33 : { 0x89, 0x61, 0x54, 0x90, 0x2f, 0x19, 0x72, 0x02 }}
34 :
35 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIWebBrowser : public nsISupports {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSER_IID)
39 :
40 : /* void addWebBrowserListener (in nsIWeakReference aListener, in nsIIDRef aIID); */
41 : NS_SCRIPTABLE NS_IMETHOD AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) = 0;
42 :
43 : /* void removeWebBrowserListener (in nsIWeakReference aListener, in nsIIDRef aIID); */
44 : NS_SCRIPTABLE NS_IMETHOD RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) = 0;
45 :
46 : /* attribute nsIWebBrowserChrome containerWindow; */
47 : NS_SCRIPTABLE NS_IMETHOD GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow) = 0;
48 : NS_SCRIPTABLE NS_IMETHOD SetContainerWindow(nsIWebBrowserChrome *aContainerWindow) = 0;
49 :
50 : /* attribute nsIURIContentListener parentURIContentListener; */
51 : NS_SCRIPTABLE NS_IMETHOD GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener) = 0;
52 : NS_SCRIPTABLE NS_IMETHOD SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener) = 0;
53 :
54 : /* readonly attribute nsIDOMWindow contentDOMWindow; */
55 : NS_SCRIPTABLE NS_IMETHOD GetContentDOMWindow(nsIDOMWindow * *aContentDOMWindow) = 0;
56 :
57 : /* attribute boolean isActive; */
58 : NS_SCRIPTABLE NS_IMETHOD GetIsActive(bool *aIsActive) = 0;
59 : NS_SCRIPTABLE NS_IMETHOD SetIsActive(bool aIsActive) = 0;
60 :
61 : };
62 :
63 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowser, NS_IWEBBROWSER_IID)
64 :
65 : /* Use this macro when declaring classes that implement this interface. */
66 : #define NS_DECL_NSIWEBBROWSER \
67 : NS_SCRIPTABLE NS_IMETHOD AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID); \
68 : NS_SCRIPTABLE NS_IMETHOD RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID); \
69 : NS_SCRIPTABLE NS_IMETHOD GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow); \
70 : NS_SCRIPTABLE NS_IMETHOD SetContainerWindow(nsIWebBrowserChrome *aContainerWindow); \
71 : NS_SCRIPTABLE NS_IMETHOD GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener); \
72 : NS_SCRIPTABLE NS_IMETHOD SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener); \
73 : NS_SCRIPTABLE NS_IMETHOD GetContentDOMWindow(nsIDOMWindow * *aContentDOMWindow); \
74 : NS_SCRIPTABLE NS_IMETHOD GetIsActive(bool *aIsActive); \
75 : NS_SCRIPTABLE NS_IMETHOD SetIsActive(bool aIsActive);
76 :
77 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
78 : #define NS_FORWARD_NSIWEBBROWSER(_to) \
79 : NS_SCRIPTABLE NS_IMETHOD AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) { return _to AddWebBrowserListener(aListener, aIID); } \
80 : NS_SCRIPTABLE NS_IMETHOD RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) { return _to RemoveWebBrowserListener(aListener, aIID); } \
81 : NS_SCRIPTABLE NS_IMETHOD GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow) { return _to GetContainerWindow(aContainerWindow); } \
82 : NS_SCRIPTABLE NS_IMETHOD SetContainerWindow(nsIWebBrowserChrome *aContainerWindow) { return _to SetContainerWindow(aContainerWindow); } \
83 : NS_SCRIPTABLE NS_IMETHOD GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener) { return _to GetParentURIContentListener(aParentURIContentListener); } \
84 : NS_SCRIPTABLE NS_IMETHOD SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener) { return _to SetParentURIContentListener(aParentURIContentListener); } \
85 : NS_SCRIPTABLE NS_IMETHOD GetContentDOMWindow(nsIDOMWindow * *aContentDOMWindow) { return _to GetContentDOMWindow(aContentDOMWindow); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetIsActive(bool *aIsActive) { return _to GetIsActive(aIsActive); } \
87 : NS_SCRIPTABLE NS_IMETHOD SetIsActive(bool aIsActive) { return _to SetIsActive(aIsActive); }
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_NSIWEBBROWSER(_to) \
91 : NS_SCRIPTABLE NS_IMETHOD AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWebBrowserListener(aListener, aIID); } \
92 : NS_SCRIPTABLE NS_IMETHOD RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWebBrowserListener(aListener, aIID); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContainerWindow(aContainerWindow); } \
94 : NS_SCRIPTABLE NS_IMETHOD SetContainerWindow(nsIWebBrowserChrome *aContainerWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContainerWindow(aContainerWindow); } \
95 : NS_SCRIPTABLE NS_IMETHOD GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentURIContentListener(aParentURIContentListener); } \
96 : NS_SCRIPTABLE NS_IMETHOD SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentURIContentListener(aParentURIContentListener); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetContentDOMWindow(nsIDOMWindow * *aContentDOMWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDOMWindow(aContentDOMWindow); } \
98 : NS_SCRIPTABLE NS_IMETHOD GetIsActive(bool *aIsActive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsActive(aIsActive); } \
99 : NS_SCRIPTABLE NS_IMETHOD SetIsActive(bool aIsActive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsActive(aIsActive); }
100 :
101 : #if 0
102 : /* Use the code below as a template for the implementation class for this interface. */
103 :
104 : /* Header file */
105 : class nsWebBrowser : public nsIWebBrowser
106 : {
107 : public:
108 : NS_DECL_ISUPPORTS
109 : NS_DECL_NSIWEBBROWSER
110 :
111 : nsWebBrowser();
112 :
113 : private:
114 : ~nsWebBrowser();
115 :
116 : protected:
117 : /* additional members */
118 : };
119 :
120 : /* Implementation file */
121 : NS_IMPL_ISUPPORTS1(nsWebBrowser, nsIWebBrowser)
122 :
123 : nsWebBrowser::nsWebBrowser()
124 : {
125 : /* member initializers and constructor code */
126 : }
127 :
128 : nsWebBrowser::~nsWebBrowser()
129 : {
130 : /* destructor code */
131 : }
132 :
133 : /* void addWebBrowserListener (in nsIWeakReference aListener, in nsIIDRef aIID); */
134 : NS_IMETHODIMP nsWebBrowser::AddWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* void removeWebBrowserListener (in nsIWeakReference aListener, in nsIIDRef aIID); */
140 : NS_IMETHODIMP nsWebBrowser::RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID & aIID)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* attribute nsIWebBrowserChrome containerWindow; */
146 : NS_IMETHODIMP nsWebBrowser::GetContainerWindow(nsIWebBrowserChrome * *aContainerWindow)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 : NS_IMETHODIMP nsWebBrowser::SetContainerWindow(nsIWebBrowserChrome *aContainerWindow)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* attribute nsIURIContentListener parentURIContentListener; */
156 : NS_IMETHODIMP nsWebBrowser::GetParentURIContentListener(nsIURIContentListener * *aParentURIContentListener)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 : NS_IMETHODIMP nsWebBrowser::SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* readonly attribute nsIDOMWindow contentDOMWindow; */
166 : NS_IMETHODIMP nsWebBrowser::GetContentDOMWindow(nsIDOMWindow * *aContentDOMWindow)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* attribute boolean isActive; */
172 : NS_IMETHODIMP nsWebBrowser::GetIsActive(bool *aIsActive)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 : NS_IMETHODIMP nsWebBrowser::SetIsActive(bool aIsActive)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* End of implementation class template. */
182 : #endif
183 :
184 :
185 : #endif /* __gen_nsIWebBrowser_h__ */
|