Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: gecko-sdk/include/nsIWebBrowserChrome.h

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gecko-sdk/include/nsIWebBrowser.h ('k') | gecko-sdk/include/nsIWebBrowserChromeFocus.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0 -Release/WINNT_5.2_Depend/mozilla/embedding/browser/webBrowser/nsIWebBrowserChro me.idl
3 */
4
5 #ifndef __gen_nsIWebBrowserChrome_h__
6 #define __gen_nsIWebBrowserChrome_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 nsIWebBrowser; /* forward declaration */
18
19 class nsIDocShellTreeItem; /* forward declaration */
20
21
22 /* starting interface: nsIWebBrowserChrome */
23 #define NS_IWEBBROWSERCHROME_IID_STR "ba434c60-9d52-11d3-afb0-00a024ffc08c"
24
25 #define NS_IWEBBROWSERCHROME_IID \
26 {0xba434c60, 0x9d52, 0x11d3, \
27 { 0xaf, 0xb0, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c }}
28
29 /**
30 * nsIWebBrowserChrome corresponds to the top-level, outermost window
31 * containing an embedded Gecko web browser.
32 *
33 * @status FROZEN
34 */
35 class NS_NO_VTABLE nsIWebBrowserChrome : public nsISupports {
36 public:
37
38 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERCHROME_IID)
39
40 enum { STATUS_SCRIPT = 1U };
41
42 enum { STATUS_SCRIPT_DEFAULT = 2U };
43
44 enum { STATUS_LINK = 3U };
45
46 /**
47 * Called when the status text in the chrome needs to be updated.
48 * @param statusType indicates what is setting the text
49 * @param status status string. null is an acceptable value meaning
50 * no status.
51 */
52 /* void setStatus (in unsigned long statusType, in wstring status); */
53 NS_IMETHOD SetStatus(PRUint32 statusType, const PRUnichar *status) = 0;
54
55 /**
56 * The currently loaded WebBrowser. The browser chrome may be
57 * told to set the WebBrowser object to a new object by setting this
58 * attribute. In this case the implementer is responsible for taking the
59 * new WebBrowser object and doing any necessary initialization or setup
60 * as if it had created the WebBrowser itself. This includes positioning
61 * setting up listeners etc.
62 */
63 /* attribute nsIWebBrowser webBrowser; */
64 NS_IMETHOD GetWebBrowser(nsIWebBrowser * *aWebBrowser) = 0;
65 NS_IMETHOD SetWebBrowser(nsIWebBrowser * aWebBrowser) = 0;
66
67 /**
68 * Definitions for the chrome flags
69 */
70 enum { CHROME_DEFAULT = 1U };
71
72 enum { CHROME_WINDOW_BORDERS = 2U };
73
74 enum { CHROME_WINDOW_CLOSE = 4U };
75
76 enum { CHROME_WINDOW_RESIZE = 8U };
77
78 enum { CHROME_MENUBAR = 16U };
79
80 enum { CHROME_TOOLBAR = 32U };
81
82 enum { CHROME_LOCATIONBAR = 64U };
83
84 enum { CHROME_STATUSBAR = 128U };
85
86 enum { CHROME_PERSONAL_TOOLBAR = 256U };
87
88 enum { CHROME_SCROLLBARS = 512U };
89
90 enum { CHROME_TITLEBAR = 1024U };
91
92 enum { CHROME_EXTRA = 2048U };
93
94 enum { CHROME_WITH_SIZE = 4096U };
95
96 enum { CHROME_WITH_POSITION = 8192U };
97
98 enum { CHROME_WINDOW_MIN = 16384U };
99
100 enum { CHROME_WINDOW_POPUP = 32768U };
101
102 enum { CHROME_WINDOW_RAISED = 33554432U };
103
104 enum { CHROME_WINDOW_LOWERED = 67108864U };
105
106 enum { CHROME_CENTER_SCREEN = 134217728U };
107
108 enum { CHROME_DEPENDENT = 268435456U };
109
110 enum { CHROME_MODAL = 536870912U };
111
112 enum { CHROME_OPENAS_DIALOG = 1073741824U };
113
114 enum { CHROME_OPENAS_CHROME = 2147483648U };
115
116 enum { CHROME_ALL = 4094U };
117
118 /**
119 * The chrome flags for this browser chrome. The implementation should
120 * reflect the value of this attribute by hiding or showing its chrome
121 * appropriately.
122 */
123 /* attribute unsigned long chromeFlags; */
124 NS_IMETHOD GetChromeFlags(PRUint32 *aChromeFlags) = 0;
125 NS_IMETHOD SetChromeFlags(PRUint32 aChromeFlags) = 0;
126
127 /**
128 * Asks the implementer to destroy the window associated with this
129 * WebBrowser object.
130 */
131 /* void destroyBrowserWindow (); */
132 NS_IMETHOD DestroyBrowserWindow(void) = 0;
133
134 /**
135 * Tells the chrome to size itself such that the browser will be the
136 * specified size.
137 * @param aCX new width of the browser
138 * @param aCY new height of the browser
139 */
140 /* void sizeBrowserTo (in long aCX, in long aCY); */
141 NS_IMETHOD SizeBrowserTo(PRInt32 aCX, PRInt32 aCY) = 0;
142
143 /**
144 * Shows the window as a modal window.
145 * @return (the function error code) the status value specified by
146 * in exitModalEventLoop.
147 */
148 /* void showAsModal (); */
149 NS_IMETHOD ShowAsModal(void) = 0;
150
151 /**
152 * Is the window modal (that is, currently executing a modal loop)?
153 * @return true if it's a modal window
154 */
155 /* boolean isWindowModal (); */
156 NS_IMETHOD IsWindowModal(PRBool *_retval) = 0;
157
158 /**
159 * Exit a modal event loop if we're in one. The implementation
160 * should also exit out of the loop if the window is destroyed.
161 * @param aStatus - the result code to return from showAsModal
162 */
163 /* void exitModalEventLoop (in nsresult aStatus); */
164 NS_IMETHOD ExitModalEventLoop(nsresult aStatus) = 0;
165
166 };
167
168 /* Use this macro when declaring classes that implement this interface. */
169 #define NS_DECL_NSIWEBBROWSERCHROME \
170 NS_IMETHOD SetStatus(PRUint32 statusType, const PRUnichar *status); \
171 NS_IMETHOD GetWebBrowser(nsIWebBrowser * *aWebBrowser); \
172 NS_IMETHOD SetWebBrowser(nsIWebBrowser * aWebBrowser); \
173 NS_IMETHOD GetChromeFlags(PRUint32 *aChromeFlags); \
174 NS_IMETHOD SetChromeFlags(PRUint32 aChromeFlags); \
175 NS_IMETHOD DestroyBrowserWindow(void); \
176 NS_IMETHOD SizeBrowserTo(PRInt32 aCX, PRInt32 aCY); \
177 NS_IMETHOD ShowAsModal(void); \
178 NS_IMETHOD IsWindowModal(PRBool *_retval); \
179 NS_IMETHOD ExitModalEventLoop(nsresult aStatus);
180
181 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
182 #define NS_FORWARD_NSIWEBBROWSERCHROME(_to) \
183 NS_IMETHOD SetStatus(PRUint32 statusType, const PRUnichar *status) { return _t o SetStatus(statusType, status); } \
184 NS_IMETHOD GetWebBrowser(nsIWebBrowser * *aWebBrowser) { return _to GetWebBrow ser(aWebBrowser); } \
185 NS_IMETHOD SetWebBrowser(nsIWebBrowser * aWebBrowser) { return _to SetWebBrows er(aWebBrowser); } \
186 NS_IMETHOD GetChromeFlags(PRUint32 *aChromeFlags) { return _to GetChromeFlags( aChromeFlags); } \
187 NS_IMETHOD SetChromeFlags(PRUint32 aChromeFlags) { return _to SetChromeFlags(a ChromeFlags); } \
188 NS_IMETHOD DestroyBrowserWindow(void) { return _to DestroyBrowserWindow(); } \
189 NS_IMETHOD SizeBrowserTo(PRInt32 aCX, PRInt32 aCY) { return _to SizeBrowserTo( aCX, aCY); } \
190 NS_IMETHOD ShowAsModal(void) { return _to ShowAsModal(); } \
191 NS_IMETHOD IsWindowModal(PRBool *_retval) { return _to IsWindowModal(_retval); } \
192 NS_IMETHOD ExitModalEventLoop(nsresult aStatus) { return _to ExitModalEventLoo p(aStatus); }
193
194 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
195 #define NS_FORWARD_SAFE_NSIWEBBROWSERCHROME(_to) \
196 NS_IMETHOD SetStatus(PRUint32 statusType, const PRUnichar *status) { return !_ to ? NS_ERROR_NULL_POINTER : _to->SetStatus(statusType, status); } \
197 NS_IMETHOD GetWebBrowser(nsIWebBrowser * *aWebBrowser) { return !_to ? NS_ERRO R_NULL_POINTER : _to->GetWebBrowser(aWebBrowser); } \
198 NS_IMETHOD SetWebBrowser(nsIWebBrowser * aWebBrowser) { return !_to ? NS_ERROR _NULL_POINTER : _to->SetWebBrowser(aWebBrowser); } \
199 NS_IMETHOD GetChromeFlags(PRUint32 *aChromeFlags) { return !_to ? NS_ERROR_NUL L_POINTER : _to->GetChromeFlags(aChromeFlags); } \
200 NS_IMETHOD SetChromeFlags(PRUint32 aChromeFlags) { return !_to ? NS_ERROR_NULL _POINTER : _to->SetChromeFlags(aChromeFlags); } \
201 NS_IMETHOD DestroyBrowserWindow(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DestroyBrowserWindow(); } \
202 NS_IMETHOD SizeBrowserTo(PRInt32 aCX, PRInt32 aCY) { return !_to ? NS_ERROR_NU LL_POINTER : _to->SizeBrowserTo(aCX, aCY); } \
203 NS_IMETHOD ShowAsModal(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Show AsModal(); } \
204 NS_IMETHOD IsWindowModal(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTE R : _to->IsWindowModal(_retval); } \
205 NS_IMETHOD ExitModalEventLoop(nsresult aStatus) { return !_to ? NS_ERROR_NULL_ POINTER : _to->ExitModalEventLoop(aStatus); }
206
207 #if 0
208 /* Use the code below as a template for the implementation class for this interf ace. */
209
210 /* Header file */
211 class nsWebBrowserChrome : public nsIWebBrowserChrome
212 {
213 public:
214 NS_DECL_ISUPPORTS
215 NS_DECL_NSIWEBBROWSERCHROME
216
217 nsWebBrowserChrome();
218
219 private:
220 ~nsWebBrowserChrome();
221
222 protected:
223 /* additional members */
224 };
225
226 /* Implementation file */
227 NS_IMPL_ISUPPORTS1(nsWebBrowserChrome, nsIWebBrowserChrome)
228
229 nsWebBrowserChrome::nsWebBrowserChrome()
230 {
231 /* member initializers and constructor code */
232 }
233
234 nsWebBrowserChrome::~nsWebBrowserChrome()
235 {
236 /* destructor code */
237 }
238
239 /* void setStatus (in unsigned long statusType, in wstring status); */
240 NS_IMETHODIMP nsWebBrowserChrome::SetStatus(PRUint32 statusType, const PRUnichar *status)
241 {
242 return NS_ERROR_NOT_IMPLEMENTED;
243 }
244
245 /* attribute nsIWebBrowser webBrowser; */
246 NS_IMETHODIMP nsWebBrowserChrome::GetWebBrowser(nsIWebBrowser * *aWebBrowser)
247 {
248 return NS_ERROR_NOT_IMPLEMENTED;
249 }
250 NS_IMETHODIMP nsWebBrowserChrome::SetWebBrowser(nsIWebBrowser * aWebBrowser)
251 {
252 return NS_ERROR_NOT_IMPLEMENTED;
253 }
254
255 /* attribute unsigned long chromeFlags; */
256 NS_IMETHODIMP nsWebBrowserChrome::GetChromeFlags(PRUint32 *aChromeFlags)
257 {
258 return NS_ERROR_NOT_IMPLEMENTED;
259 }
260 NS_IMETHODIMP nsWebBrowserChrome::SetChromeFlags(PRUint32 aChromeFlags)
261 {
262 return NS_ERROR_NOT_IMPLEMENTED;
263 }
264
265 /* void destroyBrowserWindow (); */
266 NS_IMETHODIMP nsWebBrowserChrome::DestroyBrowserWindow()
267 {
268 return NS_ERROR_NOT_IMPLEMENTED;
269 }
270
271 /* void sizeBrowserTo (in long aCX, in long aCY); */
272 NS_IMETHODIMP nsWebBrowserChrome::SizeBrowserTo(PRInt32 aCX, PRInt32 aCY)
273 {
274 return NS_ERROR_NOT_IMPLEMENTED;
275 }
276
277 /* void showAsModal (); */
278 NS_IMETHODIMP nsWebBrowserChrome::ShowAsModal()
279 {
280 return NS_ERROR_NOT_IMPLEMENTED;
281 }
282
283 /* boolean isWindowModal (); */
284 NS_IMETHODIMP nsWebBrowserChrome::IsWindowModal(PRBool *_retval)
285 {
286 return NS_ERROR_NOT_IMPLEMENTED;
287 }
288
289 /* void exitModalEventLoop (in nsresult aStatus); */
290 NS_IMETHODIMP nsWebBrowserChrome::ExitModalEventLoop(nsresult aStatus)
291 {
292 return NS_ERROR_NOT_IMPLEMENTED;
293 }
294
295 /* End of implementation class template. */
296 #endif
297
298
299 #endif /* __gen_nsIWebBrowserChrome_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIWebBrowser.h ('k') | gecko-sdk/include/nsIWebBrowserChromeFocus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698