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

Side by Side Diff: gecko-sdk/include/nsIEmbeddingSiteWindow.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/nsIDirectoryService.h ('k') | gecko-sdk/include/nsIFactory.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/nsIEmbeddingSiteW indow.idl
3 */
4
5 #ifndef __gen_nsIEmbeddingSiteWindow_h__
6 #define __gen_nsIEmbeddingSiteWindow_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
18 /* starting interface: nsIEmbeddingSiteWindow */
19 #define NS_IEMBEDDINGSITEWINDOW_IID_STR "3e5432cd-9568-4bd1-8cbe-d50aba110743"
20
21 #define NS_IEMBEDDINGSITEWINDOW_IID \
22 {0x3e5432cd, 0x9568, 0x4bd1, \
23 { 0x8c, 0xbe, 0xd5, 0x0a, 0xba, 0x11, 0x07, 0x43 }}
24
25 /**
26 * The nsIEmbeddingSiteWindow is implemented by the embedder to provide
27 * Gecko with the means to call up to the host to resize the window,
28 * hide or show it and set/get its title.
29 *
30 * @status FROZEN
31 */
32 class NS_NO_VTABLE nsIEmbeddingSiteWindow : public nsISupports {
33 public:
34
35 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEMBEDDINGSITEWINDOW_IID)
36
37 /**
38 * Flag indicates that position of the top left corner of the outer area
39 * is required/specified.
40 *
41 * @see setDimensions
42 * @see getDimensions
43 */
44 enum { DIM_FLAGS_POSITION = 1U };
45
46 /**
47 * Flag indicates that the size of the inner area is required/specified.
48 *
49 * @note The inner and outer flags are mutually exclusive and it is
50 * invalid to combine them.
51 *
52 * @see setDimensions
53 * @see getDimensions
54 * @see DIM_FLAGS_SIZE_OUTER
55 */
56 enum { DIM_FLAGS_SIZE_INNER = 2U };
57
58 /**
59 * Flag indicates that the size of the outer area is required/specified.
60 *
61 * @see setDimensions
62 * @see getDimensions
63 * @see DIM_FLAGS_SIZE_INNER
64 */
65 enum { DIM_FLAGS_SIZE_OUTER = 4U };
66
67 /**
68 * Sets the dimensions for the window; the position & size. The
69 * flags to indicate what the caller wants to set and whether the size
70 * refers to the inner or outer area. The inner area refers to just
71 * the embedded area, wheras the outer area can also include any
72 * surrounding chrome, window frame, title bar, and so on.
73 *
74 * @param flags Combination of position, inner and outer size flags.
75 * @param x Left hand corner of the outer area.
76 * @param y Top corner of the outer area.
77 * @param cx Width of the inner or outer area.
78 * @param cy Height of the inner or outer area.
79 *
80 * @return <code>NS_OK</code> if operation was performed correctly;
81 * <code>NS_ERROR_UNEXPECTED</code> if window could not be
82 * destroyed;
83 * <code>NS_ERROR_INVALID_ARG</code> for bad flag combination
84 * or illegal dimensions.
85 *
86 * @see getDimensions
87 * @see DIM_FLAGS_POSITION
88 * @see DIM_FLAGS_SIZE_OUTER
89 * @see DIM_FLAGS_SIZE_INNER
90 */
91 /* void setDimensions (in unsigned long flags, in long x, in long y, in long c x, in long cy); */
92 NS_IMETHOD SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRI nt32 cy) = 0;
93
94 /**
95 * Gets the dimensions of the window. The caller may pass
96 * <CODE>nsnull</CODE> for any value it is uninterested in receiving.
97 *
98 * @param flags Combination of position, inner and outer size flag .
99 * @param x Left hand corner of the outer area; or <CODE>nsnull</CODE>.
100 * @param y Top corner of the outer area; or <CODE>nsnull</CODE>.
101 * @param cx Width of the inner or outer area; or <CODE>nsnull</CODE>.
102 * @param cy Height of the inner or outer area; or <CODE>nsnull</CODE>.
103 *
104 * @see setDimensions
105 * @see DIM_FLAGS_POSITION
106 * @see DIM_FLAGS_SIZE_OUTER
107 * @see DIM_FLAGS_SIZE_INNER
108 */
109 /* void getDimensions (in unsigned long flags, out long x, out long y, out lon g cx, out long cy); */
110 NS_IMETHOD GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) = 0;
111
112 /**
113 * Give the window focus.
114 */
115 /* void setFocus (); */
116 NS_IMETHOD SetFocus(void) = 0;
117
118 /**
119 * Visibility of the window.
120 */
121 /* attribute boolean visibility; */
122 NS_IMETHOD GetVisibility(PRBool *aVisibility) = 0;
123 NS_IMETHOD SetVisibility(PRBool aVisibility) = 0;
124
125 /**
126 * Title of the window.
127 */
128 /* attribute wstring title; */
129 NS_IMETHOD GetTitle(PRUnichar * *aTitle) = 0;
130 NS_IMETHOD SetTitle(const PRUnichar * aTitle) = 0;
131
132 /**
133 * Native window for the site's window. The implementor should copy the
134 * native window object into the address supplied by the caller. The
135 * type of the native window that the address refers to is platform
136 * and OS specific as follows:
137 *
138 * <ul>
139 * <li>On Win32 it is an <CODE>HWND</CODE>.</li>
140 * <li>On MacOS this is a <CODE>WindowPtr</CODE>.</li>
141 * <li>On GTK this is a <CODE>GtkWidget*</CODE>.</li>
142 * </ul>
143 */
144 /* [noscript] readonly attribute voidPtr siteWindow; */
145 NS_IMETHOD GetSiteWindow(void * *aSiteWindow) = 0;
146
147 };
148
149 /* Use this macro when declaring classes that implement this interface. */
150 #define NS_DECL_NSIEMBEDDINGSITEWINDOW \
151 NS_IMETHOD SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRI nt32 cy); \
152 NS_IMETHOD GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy); \
153 NS_IMETHOD SetFocus(void); \
154 NS_IMETHOD GetVisibility(PRBool *aVisibility); \
155 NS_IMETHOD SetVisibility(PRBool aVisibility); \
156 NS_IMETHOD GetTitle(PRUnichar * *aTitle); \
157 NS_IMETHOD SetTitle(const PRUnichar * aTitle); \
158 NS_IMETHOD GetSiteWindow(void * *aSiteWindow);
159
160 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
161 #define NS_FORWARD_NSIEMBEDDINGSITEWINDOW(_to) \
162 NS_IMETHOD SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRI nt32 cy) { return _to SetDimensions(flags, x, y, cx, cy); } \
163 NS_IMETHOD GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) { return _to GetDimensions(flags, x, y, cx, cy); } \
164 NS_IMETHOD SetFocus(void) { return _to SetFocus(); } \
165 NS_IMETHOD GetVisibility(PRBool *aVisibility) { return _to GetVisibility(aVisi bility); } \
166 NS_IMETHOD SetVisibility(PRBool aVisibility) { return _to SetVisibility(aVisib ility); } \
167 NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return _to GetTitle(aTitle); } \
168 NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return _to SetTitle(aTitle); } \
169 NS_IMETHOD GetSiteWindow(void * *aSiteWindow) { return _to GetSiteWindow(aSite Window); }
170
171 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
172 #define NS_FORWARD_SAFE_NSIEMBEDDINGSITEWINDOW(_to) \
173 NS_IMETHOD SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRI nt32 cy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDimensions(flags, x, y, cx, cy); } \
174 NS_IMETHOD GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDimensions(flags, x , y, cx, cy); } \
175 NS_IMETHOD SetFocus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocu s(); } \
176 NS_IMETHOD GetVisibility(PRBool *aVisibility) { return !_to ? NS_ERROR_NULL_PO INTER : _to->GetVisibility(aVisibility); } \
177 NS_IMETHOD SetVisibility(PRBool aVisibility) { return !_to ? NS_ERROR_NULL_POI NTER : _to->SetVisibility(aVisibility); } \
178 NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
179 NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return !_to ? NS_ERROR_NULL_PO INTER : _to->SetTitle(aTitle); } \
180 NS_IMETHOD GetSiteWindow(void * *aSiteWindow) { return !_to ? NS_ERROR_NULL_PO INTER : _to->GetSiteWindow(aSiteWindow); }
181
182 #if 0
183 /* Use the code below as a template for the implementation class for this interf ace. */
184
185 /* Header file */
186 class nsEmbeddingSiteWindow : public nsIEmbeddingSiteWindow
187 {
188 public:
189 NS_DECL_ISUPPORTS
190 NS_DECL_NSIEMBEDDINGSITEWINDOW
191
192 nsEmbeddingSiteWindow();
193
194 private:
195 ~nsEmbeddingSiteWindow();
196
197 protected:
198 /* additional members */
199 };
200
201 /* Implementation file */
202 NS_IMPL_ISUPPORTS1(nsEmbeddingSiteWindow, nsIEmbeddingSiteWindow)
203
204 nsEmbeddingSiteWindow::nsEmbeddingSiteWindow()
205 {
206 /* member initializers and constructor code */
207 }
208
209 nsEmbeddingSiteWindow::~nsEmbeddingSiteWindow()
210 {
211 /* destructor code */
212 }
213
214 /* void setDimensions (in unsigned long flags, in long x, in long y, in long cx, in long cy); */
215 NS_IMETHODIMP nsEmbeddingSiteWindow::SetDimensions(PRUint32 flags, PRInt32 x, PR Int32 y, PRInt32 cx, PRInt32 cy)
216 {
217 return NS_ERROR_NOT_IMPLEMENTED;
218 }
219
220 /* void getDimensions (in unsigned long flags, out long x, out long y, out long cx, out long cy); */
221 NS_IMETHODIMP nsEmbeddingSiteWindow::GetDimensions(PRUint32 flags, PRInt32 *x, P RInt32 *y, PRInt32 *cx, PRInt32 *cy)
222 {
223 return NS_ERROR_NOT_IMPLEMENTED;
224 }
225
226 /* void setFocus (); */
227 NS_IMETHODIMP nsEmbeddingSiteWindow::SetFocus()
228 {
229 return NS_ERROR_NOT_IMPLEMENTED;
230 }
231
232 /* attribute boolean visibility; */
233 NS_IMETHODIMP nsEmbeddingSiteWindow::GetVisibility(PRBool *aVisibility)
234 {
235 return NS_ERROR_NOT_IMPLEMENTED;
236 }
237 NS_IMETHODIMP nsEmbeddingSiteWindow::SetVisibility(PRBool aVisibility)
238 {
239 return NS_ERROR_NOT_IMPLEMENTED;
240 }
241
242 /* attribute wstring title; */
243 NS_IMETHODIMP nsEmbeddingSiteWindow::GetTitle(PRUnichar * *aTitle)
244 {
245 return NS_ERROR_NOT_IMPLEMENTED;
246 }
247 NS_IMETHODIMP nsEmbeddingSiteWindow::SetTitle(const PRUnichar * aTitle)
248 {
249 return NS_ERROR_NOT_IMPLEMENTED;
250 }
251
252 /* [noscript] readonly attribute voidPtr siteWindow; */
253 NS_IMETHODIMP nsEmbeddingSiteWindow::GetSiteWindow(void * *aSiteWindow)
254 {
255 return NS_ERROR_NOT_IMPLEMENTED;
256 }
257
258 /* End of implementation class template. */
259 #endif
260
261
262 #endif /* __gen_nsIEmbeddingSiteWindow_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDirectoryService.h ('k') | gecko-sdk/include/nsIFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698