Sync trunk.
[reactos.git] / dll / win32 / mshtml / nsiface.idl
1 /*
2 * Copyright 2005-2007 Jacek Caban for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 /*
20 * NOTE:
21 * This file is not a typical idl file. Interfaces in this file are XPCOM
22 * interfaces (NOT MSCOM!), but we generate the header file with WIDL
23 * compatible with XPCOM, usable in C code.
24 */
25
26 cpp_quote("#define GECKO_VERSION \"1.0.0\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
28
29 import "wtypes.idl";
30
31 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
32 cpp_quote("#undef GetForm")
33 cpp_quote("#undef SetPort")
34 cpp_quote("#endif")
35
36 typedef HRESULT nsresult;
37 typedef ULONG nsrefcnt;
38
39 typedef IID nsID;
40 typedef IID nsIID;
41 typedef nsIID nsCID;
42 typedef REFIID nsIIDRef;
43 typedef nsIIDRef nsCIDRef;
44
45 typedef void** nsQIResult;
46 typedef WCHAR PRUnichar;
47 typedef ULONG PRUint32;
48 typedef LONG PRInt32;
49 typedef WORD PRUint16;
50 typedef INT16 PRInt16;
51 typedef BYTE PRUint8;
52 typedef BOOL PRBool;
53 typedef LARGE_INTEGER PRInt64;
54 typedef ULARGE_INTEGER PRUint64;
55 typedef PRUint64 DOMTimeStamp;
56 typedef PRUint32 nsLoadFlags;
57
58 typedef struct {
59 void *v;
60 void *d1;
61 PRUint32 d2;
62 void *d3;
63 } nsCStringContainer;
64
65 typedef struct {
66 void *v;
67 void *d1;
68 PRUint32 d2;
69 void *d3;
70 } nsStringContainer;
71
72 typedef nsCStringContainer nsACString;
73 typedef nsStringContainer nsAString;
74
75 interface nsIWebBrowserChrome;
76 interface nsILoadGroup;
77 interface nsIDOMNode;
78 interface nsIDOMDocument;
79 interface nsIDOMEvent;
80 interface nsIEditor;
81 interface nsISelectionController;
82 interface nsITransactionManager;
83 interface nsITransaction;
84 interface nsIInlineSpellChecker;
85 interface nsIOutputStream;
86 interface nsIEditorObserver;
87 interface nsIEditActionListener;
88 interface nsIDocumentStateListener;
89 interface nsIDOMCSSStyleSheet;
90 interface nsIDOMDocumentView;
91 interface nsIDocumentObserver;
92 interface nsIDOMWindow;
93
94 interface IMoniker;
95
96 [
97 object,
98 uuid(00000000-0000-0000-c000-000000000046),
99 local
100 ]
101 interface nsISupports
102 {
103 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
104 nsrefcnt AddRef();
105 nsrefcnt Release();
106 }
107
108 /* Currently we don't need a full declaration of these interfaces */
109 typedef nsISupports nsISHistory;
110 typedef nsISupports nsIWidget;
111 typedef nsISupports nsIHttpHeaderVisitor;
112 typedef nsISupports nsIDOMBarProp;
113 typedef nsISupports nsIPrompt;
114 typedef nsISupports nsIAuthPrompt;
115 typedef nsISupports nsIDOMNamedNodeMap;
116 typedef nsISupports nsIDOMAttr;
117 typedef nsISupports nsIDOMDocumentType;
118 typedef nsISupports nsIDOMDOMImplementation;
119 typedef nsISupports nsIDOMCDATASection;
120 typedef nsISupports nsIDOMProcessingInstruction;
121 typedef nsISupports nsIDOMEntityReference;
122 typedef nsISupports nsIWebProgressListener;
123 typedef nsISupports nsIDOMCSSValue;
124 typedef nsISupports nsIPrintSession;
125 typedef nsISupports nsIControllerCommandTable;
126 typedef nsISupports nsIPrincipal;
127 typedef nsISupports nsIAtom;
128 typedef nsISupports nsISupportsArray;
129 typedef nsISupports nsIContentFilter;
130 typedef nsISupports nsIDOMMediaList;
131 typedef nsISupports nsIDOMHTMLTableCaptionElement;
132 typedef nsISupports nsIDOMHTMLTableSectionElement;
133 typedef nsISupports nsIDOMClientRectList;
134 typedef nsISupports nsIDOMClientRect;
135 typedef nsISupports nsIDOMLocation;
136 typedef nsISupports nsIDocument;
137 typedef nsISupports nsIContent;
138 typedef nsISupports nsINode;
139 typedef nsISupports nsIStyleSheet;
140 typedef nsISupports nsIStyleRule;
141 typedef nsISupports nsIVariant;
142 typedef nsISupports nsIDOMUserDataHandler;
143 typedef nsISupports nsIDocShellLoadInfo;
144 typedef nsISupports nsISHEntry;
145 typedef nsISupports nsIPresShell;
146 typedef nsISupports nsIContentViewer;
147 typedef nsISupports nsIDocumentCharsetInfo;
148 typedef nsISupports nsILayoutHistoryState;
149 typedef nsISupports nsISecureBrowserUI;
150 typedef nsISupports nsIDOMStorage;
151
152 [
153 object,
154 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
155 local
156 /* FROZEN */
157 ]
158 interface nsIServiceManager : nsISupports
159 {
160 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
161 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
162 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
163 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
164 }
165
166 [
167 object,
168 uuid(00000001-0000-0000-c000-000000000046),
169 local
170 /* FROZEN */
171 ]
172 interface nsIFactory : nsISupports
173 {
174 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
175 nsresult LockFactory(PRBool lock);
176 }
177
178 [
179 object,
180 uuid(db242e01-e4d9-11d2-9dde-000064657374),
181 local
182 /* FROZEN */
183 ]
184 interface nsIObserver : nsISupports
185 {
186 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
187 }
188
189 [
190 object,
191 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
192 local
193 /* FROZEN */
194 ]
195 interface nsIComponentManager : nsISupports
196 {
197 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
198 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
199 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
200 nsQIResult result);
201 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
202 nsIIDRef aIID, nsQIResult result);
203 }
204
205 [
206 object,
207 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
208 local
209 /* FROZEN */
210 ]
211 interface nsIMemory : nsISupports
212 {
213 void *Alloc(/*size_t*/ int size);
214 void *Realloc(void *_ptr, /*size_t*/ int newSize);
215 void Free(void *_ptr);
216 nsresult HeapMinimize(PRBool immediate);
217 nsresult IsLowMemory(PRBool *_retval);
218 }
219
220 [
221 object,
222 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
223 local
224 /* FROZEN */
225 ]
226 interface nsIWeakReference : nsISupports
227 {
228 nsresult QueryReferent(const nsIID *riid, void **result);
229 }
230
231 [
232 object,
233 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
234 local
235 /* FROZEN */
236 ]
237 interface nsISupportsWeakReference : nsISupports
238 {
239 nsresult GetWeakReference(nsIWeakReference **_retval);
240 }
241
242 [
243 object,
244 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
245 local
246 /* FROZEN */
247 ]
248 interface nsIInterfaceRequestor : nsISupports
249 {
250 nsresult GetInterface(const nsIID *riid, void **result);
251 }
252
253 [
254 object,
255 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
256 local
257 /* NOT_FROZEN */
258 ]
259 interface nsIRunnable : nsISupports
260 {
261 nsresult Run();
262 }
263
264 [
265 object,
266 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
267 local
268 /* FROZEN */
269 ]
270 interface nsISimpleEnumerator : nsISupports
271 {
272 nsresult HasMoreElements(PRBool *_retval);
273 nsresult GetNext(nsISupports **_retval);
274 }
275
276 [
277 object,
278 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
279 local
280 /* FROZEN */
281 ]
282 interface nsIInputStream : nsISupports
283 {
284 nsresult Close();
285 nsresult Available(PRUint32 *_retval);
286 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
287 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
288 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
289 PRUint32 aCount, PRUint32 *aWriteCount),
290 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
291 nsresult IsNonBlocking(PRBool *_retval);
292 }
293
294 [
295 object,
296 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
297 local
298 /* FROZEN */
299 ]
300 interface nsIURI : nsISupports
301 {
302 nsresult GetSpec(nsACString *aSpec);
303 nsresult SetSpec(const nsACString *aSpec);
304 nsresult GetPrePath(nsACString *aPrePath);
305 nsresult GetScheme(nsACString *aScheme);
306 nsresult SetScheme(const nsACString *aScheme);
307 nsresult GetUserPass(nsACString *aUserPass);
308 nsresult SetUserPass(const nsACString *aUserPass);
309 nsresult GetUsername(nsACString *aUsername);
310 nsresult SetUsername(const nsACString *aUsername);
311 nsresult GetPassword(nsACString *aPassword);
312 nsresult SetPassword(const nsACString *aPassword);
313 nsresult GetHostPort(nsACString *aHostPort);
314 nsresult SetHostPort(const nsACString *aHostPort);
315 nsresult GetHost(nsACString *aHost);
316 nsresult SetHost(const nsACString *aHost);
317 nsresult GetPort(PRInt32 *aPort);
318 nsresult SetPort(PRInt32 aPort);
319 nsresult GetPath(nsACString *aPath);
320 nsresult SetPath(const nsACString *aPath);
321 nsresult Equals(nsIURI *other, PRBool *_retval);
322 nsresult SchemeIs(const char *scheme, PRBool *_retval);
323 nsresult Clone(nsIURI **_retval);
324 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
325 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
326 nsresult GetAsciiHost(nsACString *aAsciiHost);
327 nsresult GetOriginCharset(nsACString *aOriginCharset);
328 }
329
330 [
331 object,
332 uuid(d6116970-8034-11d3-9399-00104ba0fd40),
333 local
334 /* FROZEN */
335 ]
336 interface nsIURL : nsIURI
337 {
338 nsresult GetFilePath(nsACString *aFilePath);
339 nsresult SetFilePath(const nsACString *aFilePath);
340 nsresult GetParam(nsACString *aParam);
341 nsresult SetParam(const nsACString *aParam);
342 nsresult GetQuery(nsACString *aQuery);
343 nsresult SetQuery(const nsACString *aQuery);
344 nsresult GetRef(nsACString *aRef);
345 nsresult SetRef(const nsACString *aRef);
346 nsresult GetDirectory(nsACString *aDirectory);
347 nsresult SetDirectory(const nsACString *aDirectory);
348 nsresult GetFileName(nsACString *aFileName);
349 nsresult SetFileName(const nsACString *aFileName);
350 nsresult GetFileBaseName(nsACString *aFileBaseName);
351 nsresult SetFileBaseName(const nsACString *aFileBaseName);
352 nsresult GetFileExtension(nsACString *aFileExtension);
353 nsresult SetFileExtension(const nsACString *aFileExtension);
354 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
355 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
356 }
357
358 [
359 object,
360 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
361 local
362 /* FROZEN */
363 ]
364 interface nsIRequest : nsISupports
365 {
366 nsresult GetName(nsACString *aName);
367 nsresult IsPending(PRBool *_retval);
368 nsresult GetStatus(nsresult *aStatus);
369 nsresult Cancel(nsresult aStatus);
370 nsresult Suspend();
371 nsresult Resume();
372 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
373 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
374 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
375 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
376 }
377
378 [
379 object,
380 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
381 local
382 /* FROZEN */
383 ]
384 interface nsIRequestObserver : nsISupports
385 {
386 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
387 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
388 }
389
390 [
391 object,
392 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
393 local
394 /* FROZEN */
395 ]
396 interface nsIStreamListener : nsIRequestObserver
397 {
398 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
399 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
400 }
401
402 [
403 object,
404 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
405 local
406 /* FROZEN */
407 ]
408 interface nsILoadGroup : nsIRequest
409 {
410 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
411 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
412 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
413 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
414 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
415 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
416 nsresult GetRequests(nsISimpleEnumerator **aRequests);
417 nsresult GetActiveCount(PRUint32 *aActiveCount);
418 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
419 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
420 }
421
422 [
423 object,
424 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
425 local
426 /* FROZEN */
427 ]
428 interface nsIChannel : nsIRequest
429 {
430 nsresult GetOriginalURI(nsIURI **aOriginalURI);
431 nsresult SetOriginalURI(nsIURI *aOriginalURI);
432 nsresult GetURI(nsIURI **aURI);
433 nsresult GetOwner(nsISupports **aOwner);
434 nsresult SetOwner(nsISupports *aOwner);
435 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
436 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
437 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
438 nsresult GetContentType(nsACString *aContentType);
439 nsresult SetContentType(const nsACString *aContentType);
440 nsresult GetContentCharset(nsACString *aContentCharset);
441 nsresult SetContentCharset(const nsACString *aContentCharset);
442 nsresult GetContentLength(PRInt32 *aContentLength);
443 nsresult SetContentLength(PRInt32 aContentLength);
444 nsresult Open(nsIInputStream **_retval);
445 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
446 }
447
448 [
449 object,
450 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
451 local
452 /* FROZEN */
453 ]
454 interface nsIHttpChannel : nsIChannel
455 {
456 nsresult GetRequestMethod(nsACString *aRequestMethod);
457 nsresult SetRequestMethod(const nsACString *aRequestMethod);
458 nsresult GetReferrer(nsIURI **aReferrer);
459 nsresult SetReferrer(nsIURI *aReferrer);
460 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
461 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
462 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
463 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
464 nsresult SetAllowPipelining(PRBool aAllowPipelining);
465 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
466 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
467 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
468 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
469 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
470 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
471 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
472 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
473 nsresult IsNoStoreResponse(PRBool *_retval);
474 nsresult IsNoCacheResponse(PRBool *_retval);
475 }
476
477 [
478 object,
479 uuid(0eb66361-faaa-4e52-8c7e-6c25f11f8e3c),
480 local
481 /* NOT_FROZEN */
482 ]
483 interface nsIHttpChannelInternal : nsISupports
484 {
485 nsresult GetDocumentURI(nsIURI **aDocumentURI);
486 nsresult SetDocumentURI(nsIURI *aDocumentURI);
487 nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
488 nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
489 nsresult SetCookie(const char *aCookieHeader);
490 nsresult SetupFallbackChannel(const char *aFallbackKey);
491 nsresult GetForceAllowThirdPartyCookie(PRBool *aForceAllowThirdPartyCookie);
492 nsresult SetForceAllowThirdPartyCookie(PRBool aForceAllowThirdPartyCookie);
493 }
494
495 [
496 object,
497 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
498 local
499 /* FROZEN */
500 ]
501 interface nsIUploadChannel : nsISupports
502 {
503 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
504 PRInt32 aContentLength);
505 nsresult GetUploadStream(nsIInputStream **aUploadStream);
506 }
507
508 [
509 object,
510 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
511 local
512 /* FROZEN */
513 ]
514 interface nsIDOMCSSRule : nsISupports
515 {
516 nsresult GetType(PRUint16 *aType);
517 nsresult GetCssText(nsAString *aCssText);
518 nsresult SetCssText(const nsAString *aCssText);
519 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
520 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
521 }
522
523 [
524 object,
525 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
526 local
527 /* FROZEN */
528 ]
529 interface nsIDOMCSSStyleDeclaration : nsISupports
530 {
531 nsresult GetCssText(nsAString *aCssText);
532 nsresult SetCssText(const nsAString *aCssText);
533 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
534 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
535 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
536 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
537 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
538 const nsAString *priority);
539 nsresult GetLength(PRUint32 *aLength);
540 nsresult Item(PRUint32 index, nsAString *_retval);
541 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
542 }
543
544 [
545 object,
546 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
547 local
548 /* FROZEN */
549 ]
550 interface nsIDOMCSSRuleList : nsISupports
551 {
552 nsresult GetLength(PRUint32 *aLength);
553 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
554 }
555
556 [
557 object,
558 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
559 local
560 /* FROZEN */
561 ]
562 interface nsIDOMStyleSheet : nsISupports
563 {
564 nsresult GetType(nsAString *aType);
565 nsresult GetDisabled(PRBool *aDisabled);
566 nsresult SetDisabled(PRBool aDisabled);
567 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
568 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
569 nsresult GetHref(nsAString *aHref);
570 nsresult GetTitle(nsAString *aTitle);
571 nsresult GetMedia(nsIDOMMediaList **aMedia);
572 }
573
574 [
575 object,
576 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
577 local
578 /* FROZEN */
579 ]
580 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
581 {
582 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
583 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
584 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
585 nsresult DeleteRule(PRUint32 index);
586 }
587
588 [
589 object,
590 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
591 local
592 /* FROZEN */
593 ]
594 interface nsIDOMStyleSheetList : nsISupports
595 {
596 nsresult GetLength(PRUint32 *aLength);
597 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
598 }
599
600 [
601 object,
602 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
603 local
604 /* FROZEN */
605 ]
606 interface nsIDOMNodeList : nsISupports
607 {
608 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
609 nsresult GetLength(PRUint32 *aLength);
610 }
611
612 [
613 object,
614 uuid(29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f),
615 local
616 /* NOT_FROZEN */
617 ]
618 interface nsIDOM3Node : nsISupports
619 {
620 enum NSDOCPOSITION {
621 DISCONNECTED = 1,
622 PRECEDING = 2,
623 FOLLOWING = 4,
624 CONTAINS = 8,
625 CONTAINED_BY = 16,
626 IMPLEMENTATION_SPECIFIC = 32
627 };
628
629 nsresult GetBaseURI(nsAString *aBaseURI);
630 nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
631 nsresult GetTextContent(nsAString *aTextContent);
632 nsresult SetTextContent(const nsAString *aTextContent);
633 nsresult IsSameNode(nsIDOMNode *other, PRBool *_retval);
634 nsresult LookupPrefix(const nsAString *namespaceURI, PRBool *_retval);
635 nsresult IsDefaultNamespace(const nsAString *namespaceURI, PRBool *_retval);
636 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval);
637 nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
638 nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval);
639 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
640 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
641 }
642
643 [
644 object,
645 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
646 local
647 /* FROZEN */
648 ]
649 interface nsIDOMNode : nsISupports
650 {
651 enum NSNODETYPE {
652 ELEMENT_NODE = 1,
653 ATTRIBUTE_NODE = 2,
654 TEXT_NODE = 3,
655 CDATA_SELECTION_NODE = 4,
656 ENTITY_REFERENCE_NODE = 5,
657 ENTITY_NODE = 6,
658 PROCESSING_INSTRUCTION_NODE = 7,
659 COMMENT_NODE = 8,
660 DOCUMENT_NODE = 9,
661 DOCUMENT_TYPE_NODE = 10,
662 DOCUMENT_FRAGMENT_NODE = 11,
663 NOTATION_NODE = 12
664 };
665
666 nsresult GetNodeName(nsAString *aNodeName);
667 nsresult GetNodeValue(nsAString *aNodeValue);
668 nsresult SetNodeValue(const nsAString *aNodeValue);
669 nsresult GetNodeType(PRUint16 *aNodeType);
670 nsresult GetParentNode(nsIDOMNode **aParentNode);
671 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
672 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
673 nsresult GetLastChild(nsIDOMNode **aLastChild);
674 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
675 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
676 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
677 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
678 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
679 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
680 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
681 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
682 nsresult HasChildNodes(PRBool *_retval);
683 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
684 nsresult Normalize();
685 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
686 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
687 nsresult GetPrefix(nsAString *aPrefix);
688 nsresult SetPrefix(const nsAString *aPrefix);
689 nsresult GetLocalName(nsAString *aLocalName);
690 nsresult HasAttributes(PRBool *_retval);
691 }
692
693 [
694 object,
695 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
696 local
697 /* FROZEN */
698 ]
699 interface nsIDOMElement : nsIDOMNode
700 {
701 nsresult GetTagName(nsAString *aTagName);
702 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
703 nsresult SetAttribute(const nsAString *name, const nsAString *value);
704 nsresult RemoveAttribute(const nsAString *name);
705 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
706 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
707 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
708 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
709 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
710 nsAString *_retval);
711 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
712 const nsAString *value);
713 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
714 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
715 nsIDOMAttr **_retval);
716 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
717 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
718 nsIDOMNodeList **_retval);
719 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
720 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
721 PRBool *_retval);
722 }
723
724 [
725 object,
726 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
727 local
728 /* FROZEN */
729 ]
730 interface nsIDOMElementCSSInlineStyle : nsISupports
731 {
732 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
733 }
734
735 [
736 object,
737 uuid(f0aef489-18c5-4de6-99d5-58b3758b098c),
738 local
739 /* NOT_FROZEN */
740 ]
741 interface nsIDOMNSElement : nsISupports
742 {
743 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
744 nsresult GetClientRects(nsIDOMClientRectList **_retval);
745 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
746 nsresult GetScrollTop(PRInt32 *aScrollTop);
747 nsresult SetScrollTop(PRInt32 aScrollTop);
748 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
749 nsresult SetScrollLeft(PRInt32 aScrollLeft);
750 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
751 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
752 nsresult GetClientTop(PRInt32 *aClientTop);
753 nsresult GetClientLeft(PRInt32 *aClientLeft);
754 nsresult GetClientHeight(PRInt32 *aClientHeight);
755 nsresult GetClientWidth(PRInt32 *aClientWidth);
756 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
757 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
758 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
759 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
760 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
761 nsresult GetChildren(nsIDOMNodeList **aChildren);
762 }
763
764 cpp_quote("#undef GetClassName")
765
766 [
767 object,
768 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
769 local
770 /* FROZEN */
771 ]
772 interface nsIDOMHTMLElement : nsIDOMElement
773 {
774 nsresult GetId(nsAString *aId);
775 nsresult SetId(const nsAString *aId);
776 nsresult GetTitle(nsAString *aTitle);
777 nsresult SetTitle(const nsAString *aTitle);
778 nsresult GetLang(nsAString *aLang);
779 nsresult SetLang(const nsAString *aLang);
780 nsresult GetDir(nsAString *aDir);
781 nsresult SetDir(const nsAString *aDir);
782 nsresult GetClassName(nsAString *aClassName);
783 nsresult SetClassName(const nsAString *aClassName);
784 }
785
786 [
787 object,
788 uuid(7f142f9a-fba7-4949-93d6-cf08a974ac51),
789 local
790 /* NOT_FROZEN */
791 ]
792 interface nsIDOMNSHTMLElement : nsISupports
793 {
794 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
795 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
796 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
797 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
798 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
799 nsresult GetInnerHTML(nsAString *aInnerHTML);
800 nsresult SetInnerHTML(const nsAString *aInnerHTML);
801 nsresult GetTabIndex(PRInt32 *aTabIndex);
802 nsresult SetTabIndex(PRInt32 aTabIndex);
803 nsresult GetContentEditable(nsAString *aContentEditable);
804 nsresult SetContentEditable(const nsAString *aContentEditable);
805 nsresult GetDraggable(PRBool *aDraggable);
806 nsresult SetDraggable(PRBool aDraggable);
807 nsresult Blur();
808 nsresult Focus();
809 nsresult ScrollIntoView(PRBool top);
810 nsresult GetSpellcheck(PRBool *aSpellcheck);
811 nsresult SetSpellcheck(PRBool aSpellcheck);
812 }
813
814 [
815 object,
816 uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
817 local
818 /* FROZEN */
819 ]
820 interface nsIDOMHTMLCollection : nsISupports
821 {
822 nsresult GetLength(PRUint32 *aLength);
823 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
824 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
825 }
826
827 [
828 object,
829 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
830 local
831 /* FROZEN */
832 ]
833 interface nsIDOMCharacterData : nsIDOMNode
834 {
835 nsresult GetData(nsAString *aData);
836 nsresult SetData(const nsAString *aData);
837 nsresult GetLength(PRUint32 *aLength);
838 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
839 nsresult AppendData(const nsAString *arg);
840 nsresult InsertData(PRUint32 offset, const nsAString *arg);
841 nsresult DeleteData(PRUint32 offset, PRUint32 count);
842 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
843 }
844
845 [
846 object,
847 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
848 local
849 /* FROZEN */
850 ]
851 interface nsIDOMText : nsIDOMCharacterData
852 {
853 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
854 }
855
856 [
857 object,
858 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
859 local
860 /* FROZEN */
861 ]
862 interface nsIDOMComment : nsIDOMCharacterData
863 {
864 }
865
866 [
867 object,
868 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
869 local
870 /* FROZEN */
871 ]
872 interface nsIDOMDocumentFragment : nsIDOMNode
873 {
874 }
875
876 [
877 object,
878 uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
879 local
880 /* FROZEN */
881 ]
882 interface nsIDOMAbstractView : nsISupports
883 {
884 nsresult GetDocument(nsIDOMDocumentView **aDocument);
885 }
886
887 [
888 object,
889 uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
890 local
891 /* NOT_FROZEN */
892 ]
893 interface nsIDOMViewCSS : nsIDOMAbstractView
894 {
895 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
896 }
897
898 [
899 object,
900 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
901 local
902 /* FROZEN */
903 ]
904 interface nsIDOMDocument : nsIDOMNode
905 {
906 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
907 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
908 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
909 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
910 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
911 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
912 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
913 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
914 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
915 nsIDOMProcessingInstruction **_retval);
916 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
917 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
918 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
919 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
920 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
921 nsIDOMElement **_retval);
922 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
923 nsIDOMAttr **_retval);
924 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
925 nsIDOMNodeList **_retval);
926 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
927 }
928
929 [
930 object,
931 uuid(09a439ad-4079-46d5-a050-4d7015d1a108),
932 local
933 /* NOT_FROZEN */
934 ]
935 interface nsIDOMNSDocument : nsISupports
936 {
937 nsresult GetCharacterSet(nsAString *aCharacterSet);
938 nsresult GetDir(nsAString *aDir);
939 nsresult SetDir(const nsAString *aDir);
940 nsresult GetLocation(nsIDOMLocation **aLocation);
941 nsresult GetTitle(nsAString *aTitle);
942 nsresult SetTitle(const nsAString *aTitle);
943 nsresult GetContentType(nsAString *aContentType);
944 nsresult GetReadyState(nsAString *aReadyState);
945 nsresult GetLastModified(nsAString *aLastModified);
946 nsresult GetReferrer(nsAString *aReferrer);
947 nsresult HasFocus(PRBool *_retval);
948 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
949 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
950 nsresult ElementFromPoint(PRInt32 x, PRInt32 y, nsIDOMElement **_retval);
951
952 /* Wine extensions */
953 nsresult WineAddObserver(nsIDocumentObserver *aObserver);
954 nsresult WineRemoveObserver(nsIDocumentObserver *aObserver);
955 nsresult WineAddScriptRunner(nsIRunnable *aRunnable);
956 }
957
958 [
959 object,
960 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
961 local
962 /* FROZEN */
963 ]
964 interface nsIDOMHTMLDocument : nsIDOMDocument
965 {
966 nsresult GetTitle(nsAString *aTitle);
967 nsresult SetTitle(const nsAString *aTitle);
968 nsresult GetReferrer(nsAString *aReferrer);
969 nsresult GetDomain(nsAString *aDomain);
970 nsresult GetURL(nsAString *aURL);
971 nsresult GetBody(nsIDOMHTMLElement **aBody);
972 nsresult SetBody(nsIDOMHTMLElement *aBody);
973 nsresult GetImages(nsIDOMHTMLCollection **aImages);
974 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
975 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
976 nsresult GetForms(nsIDOMHTMLCollection **aForms);
977 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
978 nsresult GetCookie(nsAString *aCookie);
979 nsresult SetCookie(const nsAString *aCookie);
980 nsresult Open();
981 nsresult Close();
982 nsresult Write(const nsAString *text);
983 nsresult Writeln(const nsAString *text);
984 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
985 }
986
987 [
988 object,
989 uuid(79beb289-3644-4b54-9432-9fb993945629),
990 local
991 /* NOT_FROZEN */
992 ]
993 interface nsIDOMNSHTMLDocument : nsISupports
994 {
995 nsresult GetWidth(PRInt32 *aWidth);
996 nsresult GetHeight(PRInt32 *aHeight);
997 nsresult GetAlinkColor(nsAString *aAlinkColor);
998 nsresult SetAlinkColor(const nsAString *aAlinkColor);
999 nsresult GetLinkColor(nsAString *aLinkColor);
1000 nsresult SetLinkColor(const nsAString *aLinkColor);
1001 nsresult GetVlinkColor(nsAString *aVlinkColor);
1002 nsresult SetVlinkColor(const nsAString *aVlinkColor);
1003 nsresult GetBgColor(nsAString *aBgColor);
1004 nsresult SetBgColor(const nsAString *aBgColor);
1005 nsresult GetFgColor(nsAString *aFgColor);
1006 nsresult SetFgColor(const nsAString *aFgColor);
1007 nsresult GetDomain(nsAString *aDomain);
1008 nsresult SetDomain(const nsAString *aDomain);
1009 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1010 nsresult GetSelection(nsAString *_retval);
1011 nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
1012 nsresult Write();
1013 nsresult Writeln();
1014 nsresult Clear();
1015 nsresult CaptureEvents(PRInt32 eventFlags);
1016 nsresult ReleaseEvents(PRInt32 eventFlags);
1017 nsresult RouteEvent(nsIDOMEvent *evt);
1018 nsresult GetCompatMode(nsAString *aCompatMode);
1019 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1020 nsresult GetDesignMode(nsAString *aDesignMode);
1021 nsresult SetDesignMode(const nsAString *aDesignMode);
1022 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
1023 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
1024 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
1025 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
1026 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
1027 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
1028 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
1029 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1030 }
1031
1032 [
1033 object,
1034 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
1035 local
1036 /* FROZEN */
1037 ]
1038 interface nsIDOMDocumentStyle : nsISupports
1039 {
1040 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1041 }
1042
1043 [
1044 object,
1045 uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
1046 local
1047 /* FROZEN */
1048 ]
1049 interface nsIDOMDocumentView : nsISupports
1050 {
1051 nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
1052 }
1053
1054 [
1055 object,
1056 uuid(46b91d66-28e2-11d4-ab1e-0010830123b4),
1057 local
1058 /* FROZEN */
1059 ]
1060 interface nsIDOMDocumentEvent : nsISupports
1061 {
1062 cpp_quote("#undef CreateEvent")
1063 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1064 }
1065
1066 [
1067 object,
1068 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
1069 local
1070 /* FROZEN */
1071 ]
1072 interface nsIDOMRange : nsISupports
1073 {
1074 enum {
1075 NS_START_TO_START,
1076 NS_START_TO_END,
1077 NS_END_TO_END,
1078 NS_END_TO_START
1079 };
1080
1081 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1082 nsresult GetStartOffset(PRInt32 *aStartOffset);
1083 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1084 nsresult GetEndOffset(PRInt32 *aEndOffset);
1085 nsresult GetCollapsed(PRBool *aCollapsed);
1086 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1087 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1088 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1089 nsresult SetStartBefore(nsIDOMNode *refNode);
1090 nsresult SetStartAfter(nsIDOMNode *refNode);
1091 nsresult SetEndBefore(nsIDOMNode *refNode);
1092 nsresult SetEndAfter(nsIDOMNode *refNode);
1093 nsresult Collapse(PRBool toStart);
1094 nsresult SelectNode(nsIDOMNode *refNode);
1095 nsresult SelectNodeContents(nsIDOMNode *refNode);
1096 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1097 nsresult DeleteContents();
1098 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1099 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1100 nsresult InsertNode(nsIDOMNode *newNode);
1101 nsresult SurroundContents(nsIDOMNode *newParent);
1102 nsresult CloneRange(nsIDOMRange **_retval);
1103 nsresult ToString(nsAString *_retval);
1104 nsresult Detach();
1105 }
1106
1107 [
1108 object,
1109 uuid(59188642-23b4-41d6-bde1-302c3906d1f0),
1110 local
1111 /* NOT_FROZEN */
1112 ]
1113 interface nsIDOMNSRange : nsISupports
1114 {
1115 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1116 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1117 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1118 }
1119
1120
1121 [
1122 object,
1123 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1124 local
1125 /* FROZEN */
1126 ]
1127 interface nsIDOMDocumentRange : nsISupports
1128 {
1129 nsresult CreateRange(nsIDOMRange **_retval);
1130 }
1131
1132 [
1133 object,
1134 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1135 local
1136 /* FROZEN */
1137 ]
1138 interface nsISelection : nsISupports
1139 {
1140 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1141 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1142 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1143 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1144 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1145 nsresult GetRangeCount(PRInt32 *aRangeCount);
1146 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1147 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1148 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1149 nsresult CollapseToStart();
1150 nsresult CollapseToEnd();
1151 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1152 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1153 nsresult AddRange(nsIDOMRange *range);
1154 nsresult RemoveRange(nsIDOMRange *range);
1155 nsresult RemoveAllRanges();
1156 nsresult DeleteFromDocument();
1157 nsresult SelectionLanguageChange(PRBool langRTL);
1158 nsresult ToString(PRUnichar **_retval);
1159 }
1160
1161 [
1162 object,
1163 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1164 local
1165 /* FROZEN */
1166 ]
1167 interface nsIDOMWindowCollection : nsISupports
1168 {
1169 nsresult GetLength(PRUint32 *aLength);
1170 nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1171 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1172 }
1173
1174 [
1175 object,
1176 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1177 local
1178 /* FROZEN */
1179 ]
1180 interface nsIDOMWindow : nsISupports
1181 {
1182 nsresult GetDocument(nsIDOMDocument **aDocument);
1183 nsresult GetParent(nsIDOMWindow **aParent);
1184 nsresult GetTop(nsIDOMWindow **aTop);
1185 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1186 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1187 nsresult GetName(nsAString *aName);
1188 nsresult SetName(const nsAString *aName);
1189 nsresult GetTextZoom(float *aTextZoom);
1190 nsresult SetTextZoom(float aTextZoom);
1191 nsresult GetScrollX(PRInt32 *aScrollX);
1192 nsresult GetScrollY(PRInt32 *aScrollY);
1193 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1194 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1195 nsresult GetSelection(nsISelection **_retval);
1196 nsresult ScrollByLines(PRInt32 numLines);
1197 nsresult ScrollByPages(PRInt32 numPages);
1198 nsresult SizeToContent();
1199 }
1200
1201 [
1202 object,
1203 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1204 local
1205 /* FROZEN */
1206 ]
1207 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1208 {
1209 nsresult GetALink(nsAString *aALink);
1210 nsresult SetALink(const nsAString *aALink);
1211 nsresult GetBackground(nsAString *aBackground);
1212 nsresult SetBackground(const nsAString *aBackground);
1213 nsresult GetBgColor(nsAString *aBgColor);
1214 nsresult SetBgColor(const nsAString *aBgColor);
1215 nsresult GetLink(nsAString *aLink);
1216 nsresult SetLink(const nsAString *aLink);
1217 nsresult GetText(nsAString *aText);
1218 nsresult SetText(const nsAString *aText);
1219 nsresult GetVLink(nsAString *aVLink);
1220 nsresult SetVLink(const nsAString *aVLink);
1221 }
1222
1223 [
1224 object,
1225 uuid(a6cf908f-15b3-11d2-932e-00805f8add32),
1226 local
1227 /* FROZEN */
1228 ]
1229 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1230 {
1231 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1232 nsresult GetLength(PRInt32 *aLength);
1233 nsresult GetName(nsAString *aName);
1234 nsresult SetName(const nsAString *aName);
1235 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1236 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1237 nsresult GetAction(nsAString *aAction);
1238 nsresult SetAction(const nsAString *aAction);
1239 nsresult GetEnctype(nsAString *aEnctype);
1240 nsresult SetEnctype(const nsAString *aEnctype);
1241 nsresult GetMethod(nsAString *aMethod);
1242 nsresult SetMethod(const nsAString *aMethod);
1243 nsresult GetTarget(nsAString *aTarget);
1244 nsresult SetTarget(const nsAString *aTarget);
1245 nsresult Submit();
1246 nsresult Reset();
1247 }
1248
1249 [
1250 object,
1251 uuid(a6cf9093-15b3-11d2-932e-00805f8add32),
1252 local
1253 /* FROZEN */
1254 ]
1255 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1256 {
1257 nsresult GetDefaultValue(nsAString *aDefaultValue);
1258 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1259 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1260 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1261 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1262 nsresult GetAccept(nsAString *aAccept);
1263 nsresult SetAccept(const nsAString *aAccept);
1264 nsresult GetAccessKey(nsAString *aAccessKey);
1265 nsresult SetAccessKey(const nsAString *aAccessKey);
1266 nsresult GetAlign(nsAString *aAlign);
1267 nsresult SetAlign(const nsAString *aAlign);
1268 nsresult GetAlt(nsAString *aAlt);
1269 nsresult SetAlt(const nsAString *aAlt);
1270 nsresult GetChecked(PRBool *aChecked);
1271 nsresult SetChecked(PRBool aChecked);
1272 nsresult GetDisabled(PRBool *aDisabled);
1273 nsresult SetDisabled(PRBool aDisabled);
1274 nsresult GetMaxLength(PRInt32 *aMaxLength);
1275 nsresult SetMaxLength(PRInt32 aMaxLength);
1276 nsresult GetName(nsAString *aName);
1277 nsresult SetName(const nsAString *aName);
1278 nsresult GetReadOnly(PRBool *aReadOnly);
1279 nsresult SetReadOnly(PRBool aReadOnly);
1280 nsresult GetSize(PRUint32 *aSize);
1281 nsresult SetSize(PRUint32 aSize);
1282 nsresult GetSrc(nsAString *aSrc);
1283 nsresult SetSrc(const nsAString *aSrc);
1284 nsresult GetTabIndex(PRInt32 *aTabIndex);
1285 nsresult SetTabIndex(PRInt32 aTabIndex);
1286 nsresult GetType(nsAString *aType);
1287 nsresult SetType(const nsAString *aType);
1288 nsresult GetUseMap(nsAString *aUseMap);
1289 nsresult SetUseMap(const nsAString *aUseMap);
1290 nsresult GetValue(nsAString *aValue);
1291 nsresult SetValue(const nsAString *aValue);
1292 nsresult Blur();
1293 nsresult Focus();
1294 nsresult Select();
1295 nsresult Click();
1296 }
1297
1298 [
1299 object,
1300 uuid(a6cf9092-15b3-11d2-932e-00805f8add32),
1301 local
1302 /* FROZEN */
1303 ]
1304 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1305 {
1306 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1307 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1308 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1309 nsresult GetText(nsAString *aText);
1310 nsresult GetIndex(PRInt32 *aIndex);
1311 nsresult GetDisabled(PRBool *aDisabled);
1312 nsresult SetDisabled(PRBool aDisabled);
1313 nsresult GetLabel(nsAString *aLabel);
1314 nsresult SetLabel(const nsAString *aLabel);
1315 nsresult GetSelected(PRBool *aSelected);
1316 nsresult SetSelected(PRBool aSelected);
1317 nsresult GetValue(nsAString *aValue);
1318 nsresult SetValue(const nsAString *aValue);
1319 }
1320
1321 [
1322 object,
1323 uuid(bce0213c-f70f-488f-b93f-688acca55d63),
1324 local
1325 /* FROZEN */
1326 ]
1327 interface nsIDOMHTMLOptionsCollection : nsISupports
1328 {
1329 nsresult GetLength(PRUint32 *aLength);
1330 nsresult SetLength(PRUint32 aLength);
1331 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1332 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1333 }
1334
1335 [
1336 object,
1337 uuid(a6cf9090-15b3-11d2-932e-00805f8add32),
1338 local
1339 /* FROZEN */
1340 ]
1341 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1342 {
1343 nsresult GetType(nsAString *aType);
1344 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1345 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1346 nsresult GetValue(nsAString *aValue);
1347 nsresult SetValue(const nsAString *aValue);
1348 nsresult GetLength(PRUint32 *aLength);
1349 nsresult SetLength(PRUint32 aLength);
1350 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1351 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1352 nsresult GetDisabled(PRBool *aDisabled);
1353 nsresult SetDisabled(PRBool aDisabled);
1354 nsresult GetMultiple(PRBool *aMultiple);
1355 nsresult SetMultiple(PRBool aMultiple);
1356 nsresult GetName(nsAString *aName);
1357 nsresult SetName(const nsAString *aName);
1358 nsresult GetSize(PRInt32 *aSize);
1359 nsresult SetSize(PRInt32 aSize);
1360 nsresult GetTabIndex(PRInt32 *aTabIndex);
1361 nsresult SetTabIndex(PRInt32 aTabIndex);
1362 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1363 nsresult Remove(PRInt32 index);
1364 nsresult Blur();
1365 nsresult Focus();
1366 }
1367
1368 [
1369 object,
1370 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1371 local
1372 /* FROZEN */
1373 ]
1374 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1375 {
1376 nsresult GetDefaultValue(nsAString *aDefaultValue);
1377 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1378 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1379 nsresult GetAccessKey(nsAString *aAccessKey);
1380 nsresult SetAccessKey(const nsAString *aAccessKey);
1381 nsresult GetCols(PRInt32 *aCols);
1382 nsresult SetCols(PRInt32 aCols);
1383 nsresult GetDisabled(PRBool *aDisabled);
1384 nsresult SetDisabled(PRBool aDisabled);
1385 nsresult GetName(nsAString *aName);
1386 nsresult SetName(const nsAString *aName);
1387 nsresult GetReadOnly(PRBool *aReadOnly);
1388 nsresult SetReadOnly(PRBool aReadOnly);
1389 nsresult GetRows(PRInt32 *aRows);
1390 nsresult SetRows(PRInt32 aRows);
1391 nsresult GetTabIndex(PRInt32 *aTabIndex);
1392 nsresult SetTabIndex(PRInt32 aTabIndex);
1393 nsresult GetType(nsAString *aType);
1394 nsresult GetValue(nsAString *aValue);
1395 nsresult SetValue(const nsAString *aValue);
1396 nsresult Blur();
1397 nsresult Focus();
1398 nsresult Select();
1399 }
1400
1401 [
1402 object,
1403 uuid(a6cf90b1-15b3-11d2-932e-00805f8add32),
1404 local
1405 /* FROZEN */
1406 ]
1407 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1408 {
1409 nsresult GetText(nsAString *aText);
1410 nsresult SetText(const nsAString *aText);
1411 nsresult GetHtmlFor(nsAString *aHtmlFor);
1412 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1413 nsresult GetEvent(nsAString *aEvent);
1414 nsresult SetEvent(const nsAString *aEvent);
1415 nsresult GetCharset(nsAString *aCharset);
1416 nsresult SetCharset(const nsAString *aCharset);
1417 nsresult GetDefer(PRBool *aDefer);
1418 nsresult SetDefer(PRBool aDefer);
1419 nsresult GetSrc(nsAString *aSrc);
1420 nsresult SetSrc(const nsAString *aSrc);
1421 nsresult GetType(nsAString *aType);
1422 nsresult SetType(const nsAString *aType);
1423 }
1424
1425 [
1426 object,
1427 uuid(a6cf90ab-15b3-11d2-932e-00805f8add32),
1428 local
1429 /* FROZEN */
1430 ]
1431 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1432 {
1433 nsresult GetName(nsAString *aName);
1434 nsresult SetName(const nsAString *aName);
1435 nsresult GetAlign(nsAString *aAlign);
1436 nsresult SetAlign(const nsAString *aAlign);
1437 nsresult GetAlt(nsAString *aAlt);
1438 nsresult SetAlt(const nsAString *aAlt);
1439 nsresult GetBorder(nsAString *aBorder);
1440 nsresult SetBorder(const nsAString *aBorder);
1441 nsresult GetHeight(PRInt32 *aHeight);
1442 nsresult SetHeight(PRInt32 aHeight);
1443 nsresult GetHspace(PRInt32 *aHspace);
1444 nsresult SetHspace(PRInt32 aHspace);
1445 nsresult GetIsMap(PRBool *aIsMap);
1446 nsresult SetIsMap(PRBool aIsMap);
1447 nsresult GetLongDesc(nsAString *aLongDesc);
1448 nsresult SetLongDesc(const nsAString *aLongDesc);
1449 nsresult GetSrc(nsAString *aSrc);
1450 nsresult SetSrc(const nsAString *aSrc);
1451 nsresult GetUseMap(nsAString *aUseMap);
1452 nsresult SetUseMap(const nsAString *aUseMap);
1453 nsresult GetVspace(PRInt32 *aVspace);
1454 nsresult SetVspace(PRInt32 aVspace);
1455 nsresult GetWidth(PRInt32 *aWidth);
1456 nsresult SetWidth(PRInt32 aWidth);
1457 }
1458
1459 [
1460 object,
1461 uuid(a6cf90aa-15b3-11d2-932e-00805f8add32),
1462 local
1463 /* FROZEN */
1464 ]
1465 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1466 {
1467 nsresult GetAccessKey(nsAString *aAccessKey);
1468 nsresult SetAccessKey(const nsAString *aAccessKey);
1469 nsresult GetCharset(nsAString *aCharset);
1470 nsresult SetCharset(const nsAString *aCharset);
1471 nsresult GetCoords(nsAString *aCoords);
1472 nsresult SetCoords(const nsAString *aCoords);
1473 nsresult GetHref(nsAString *aHref);
1474 nsresult SetHref(const nsAString *aHref);
1475 nsresult GetHreflang(nsAString *aHreflang);
1476 nsresult SetHreflang(const nsAString *aHreflang);
1477 nsresult GetName(nsAString *aName);
1478 nsresult SetName(const nsAString *aName);
1479 nsresult GetRel(nsAString *aRel);
1480 nsresult SetRel(const nsAString *aRel);
1481 nsresult GetRev(nsAString *aRev);
1482 nsresult SetRev(const nsAString *aRev);
1483 nsresult GetShape(nsAString *aShape);
1484 nsresult SetShape(const nsAString *aShape);
1485 nsresult GetTabIndex(PRInt32 *aTabIndex);
1486 nsresult SetTabIndex(PRInt32 aTabIndex);
1487 nsresult GetTarget(nsAString *aTarget);
1488 nsresult SetTarget(const nsAString *aTarget);
1489 nsresult GetType(nsAString *aType);
1490 nsresult SetType(const nsAString *aType);
1491 nsresult Blur();
1492 nsresult Focus();
1493 }
1494
1495 [
1496 object,
1497 uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1498 local
1499 /* FROZEN */
1500 ]
1501 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1502 {
1503 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1504 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1505 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1506 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1507 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1508 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1509 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1510 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1511 nsresult GetAlign(nsAString *aAlign);
1512 nsresult SetAlign(const nsAString *aAlign);
1513 nsresult GetBgColor(nsAString *aBgColor);
1514 nsresult SetBgColor(const nsAString *aBgColor);
1515 nsresult GetBorder(nsAString *aBorder);
1516 nsresult SetBorder(const nsAString *aBorder);
1517 nsresult GetCellPadding(nsAString *aCellPadding);
1518 nsresult SetCellPadding(const nsAString *aCellPadding);
1519 nsresult GetCellSpacing(nsAString *aCellSpacing);
1520 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1521 nsresult GetFrame(nsAString *aFrame);
1522 nsresult SetFrame(const nsAString *aFrame);
1523 nsresult GetRules(nsAString *aRules);
1524 nsresult SetRules(const nsAString *aRules);
1525 nsresult GetSummary(nsAString *aSummary);
1526 nsresult SetSummary(const nsAString *aSummary);
1527 nsresult GetWidth(nsAString *aWidth);
1528 nsresult SetWidth(const nsAString *aWidth);
1529 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1530 nsresult DeleteTHead();
1531 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1532 nsresult DeleteTFoot();
1533 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1534 nsresult DeleteCaption();
1535 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1536 nsresult DeleteRow(PRInt32 index);
1537 }
1538
1539 [
1540 object,
1541 uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1542 local
1543 /* FROZEN */
1544 ]
1545 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1546 {
1547 nsresult GetRowIndex(PRInt32 *aRowIndex);
1548 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1549 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1550 nsresult GetAlign(nsAString *aAlign);
1551 nsresult SetAlign(const nsAString *aAlign);
1552 nsresult GetBgColor(nsAString *aBgColor);
1553 nsresult SetBgColor(const nsAString *aBgColor);
1554 nsresult GetCh(nsAString *aCh);
1555 nsresult SetCh(const nsAString *aCh);
1556 nsresult GetChOff(nsAString *aChOff);
1557 nsresult SetChOff(const nsAString *aChOff);
1558 nsresult GetVAlign(nsAString *aVAlign);
1559 nsresult SetVAlign(const nsAString *aVAlign);
1560 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1561 nsresult DeleteCell(PRInt32 index);
1562 }
1563
1564 [
1565 object,
1566 uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1567 local
1568 /* FROZEN */
1569 ]
1570 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1571 {
1572 nsresult GetAlign(nsAString *aAlign);
1573 nsresult SetAlign(const nsAString *aAlign);
1574 nsresult GetFrameBorder(nsAString *aFrameBorder);
1575 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1576 nsresult GetHeight(nsAString *aHeight);
1577 nsresult SetHeight(const nsAString *aHeight);
1578 nsresult GetLongDesc(nsAString *aLongDesc);
1579 nsresult SetLongDesc(const nsAString *aLongDesc);
1580 nsresult GetMarginHeight(nsAString *aMarginHeight);
1581 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1582 nsresult GetMarginWidth(nsAString *aMarginWidth);
1583 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1584 nsresult GetName(nsAString *aName);
1585 nsresult SetName(const nsAString *aName);
1586 nsresult GetScrolling(nsAString *aScrolling);
1587 nsresult SetScrolling(const nsAString *aScrolling);
1588 nsresult GetSrc(nsAString *aSrc);
1589 nsresult SetSrc(const nsAString *aSrc);
1590 nsresult GetWidth(nsAString *aWidth);
1591 nsresult SetWidth(const nsAString *aWidth);
1592 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1593 }
1594
1595 [
1596 object,
1597 uuid(a6cf90b9-15b3-11d2-932e-00805f8add32),
1598 local
1599 /* FROZEN */
1600 ]
1601 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
1602 {
1603 nsresult GetFrameBorder(nsAString *aFrameBorder);
1604 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1605 nsresult GetLongDesc(nsAString *aLongDesc);
1606 nsresult SetLongDesc(const nsAString *aLongDesc);
1607 nsresult GetMarginHeight(nsAString *aMarginHeight);
1608 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1609 nsresult GetMarginWidth(nsAString *aMarginWidth);
1610 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1611 nsresult GetName(nsAString *aName);
1612 nsresult SetName(const nsAString *aName);
1613 nsresult GetNoResize(PRBool *aNoResize);
1614 nsresult SetNoResize(PRBool aNoResize);
1615 nsresult GetScrolling(nsAString *aScrolling);
1616 nsresult SetScrolling(const nsAString *aScrolling);
1617 nsresult GetSrc(nsAString *aSrc);
1618 nsresult SetSrc(const nsAString *aSrc);
1619 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1620 }
1621
1622 [
1623 object,
1624 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1625 local
1626 /* FROZEN */
1627 ]
1628 interface nsIURIContentListener : nsISupports
1629 {
1630 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1631 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1632 nsIStreamListener **aContentHandler, PRBool *_retval);
1633 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1634 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1635 char **aDesiredContentType, PRBool *_retval);
1636 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1637 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1638 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1639 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1640 }
1641
1642 [
1643 object,
1644 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1645 local
1646 /* FROZEN */
1647 ]
1648 interface nsITooltipListener : nsISupports
1649 {
1650 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1651 nsresult OnHideTooltip();
1652 }
1653
1654 [
1655 object,
1656 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c),
1657 local
1658 /* FROZEN */
1659 ]
1660 interface nsIWebBrowser : nsISupports
1661 {
1662 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1663 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1664 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1665 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1666 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1667 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1668 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1669 }
1670
1671 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1672 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1673
1674 [
1675 object,
1676 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1677 local
1678 /* FROZEN */
1679 ]
1680 interface nsIWebBrowserSetup : nsISupports
1681 {
1682 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1683 }
1684
1685 typedef void* nativeWindow;
1686
1687 [
1688 object,
1689 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1690 local
1691 /* NOT_FROZEN */
1692 ]
1693 interface nsIBaseWindow : nsISupports
1694 {
1695 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1696 PRInt32 y, PRInt32 cx, PRInt32 cy);
1697 nsresult Create();
1698 nsresult Destroy();
1699 nsresult SetPosition(PRInt32 x, PRInt32 y);
1700 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1701 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1702 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1703 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1704 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1705 nsresult Repaint(PRBool force);
1706 nsresult GetParentWidget(nsIWidget **aParentWidget);
1707 nsresult SetParentWidget(nsIWidget *aParentWidget);
1708 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1709 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1710 nsresult GetVisibility(PRBool *aVisibility);
1711 nsresult SetVisibility(PRBool aVisibility);
1712 nsresult GetEnabled(PRBool *aEnabled);
1713 nsresult SetEnabled(PRBool aEnabled);
1714 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1715 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1716 nsresult GetMainWidget(nsIWidget **aMainWidget);
1717 nsresult SetFocus();
1718 nsresult GetTitle(PRUnichar **aTitle);
1719 nsresult SetTitle(const PRUnichar *aTitle);
1720 }
1721
1722 cpp_quote("#define LOAD_FLAGS_NONE 0x00000")
1723 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1724
1725 [
1726 object,
1727 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1728 local
1729 /* NOT_FROZEN */
1730 ]
1731 interface nsIWebNavigation : nsISupports
1732 {
1733 nsresult GetCanGoBack(PRBool *aCanGoBack);
1734 nsresult GetCanGoForward(PRBool *aCanGoForward);
1735 nsresult GoBack();
1736 nsresult GoForward();
1737 nsresult GotoIndex(PRInt32 index);
1738 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1739 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1740 nsresult Reload(PRUint32 aReloadFlags);
1741 nsresult Stop(PRUint32 aStopFlags);
1742 nsresult GetDocument(nsIDOMDocument **aDocument);
1743 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1744 nsresult GetReferringURI(nsIURI **aReferringURI);
1745 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1746 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1747 }
1748
1749 [
1750 object,
1751 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1752 local
1753 /* FROZEN */
1754 ]
1755 interface nsIWebProgress : nsISupports
1756 {
1757 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1758 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1759 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1760 nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1761 }
1762
1763 [
1764 object,
1765 uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1766 local
1767 /* NOT_FROZEN */
1768 ]
1769 interface nsIPrintSettings : nsISupports
1770 {
1771 typedef struct { char dummy; } nsIntMargin;
1772
1773 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1774 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1775 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1776 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1777 nsresult Clone(nsIPrintSettings **_retval);
1778 nsresult Assign(nsIPrintSettings *aPS);
1779 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1780 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1781 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1782 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1783 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1784 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1785 nsresult GetEdgeTop(double *aEdgeTop);
1786 nsresult SetEdgeTop(double aEdgeTop);
1787 nsresult GetEdgeLeft(double *aEdgeLeft);
1788 nsresult SetEdgeLeft(double aEdgeLeft);
1789 nsresult GetEdgeBottom(double *aEdgeBottom);
1790 nsresult SetEdgeBottom(double aEdgeBottom);
1791 nsresult GetEdgeRight(double *aEdgeRight);
1792 nsresult SetEdgeRight(double aEdgeRight);
1793 nsresult GetMarginTop(double *aMarginTop);
1794 nsresult SetMarginTop(double aMarginTop);
1795 nsresult GetMarginLeft(double *aMarginLeft);
1796 nsresult SetMarginLeft(double aMarginLeft);
1797 nsresult GetMarginBottom(double *aMarginBottom);
1798 nsresult SetMarginBottom(double aMarginBottom);
1799 nsresult GetMarginRight(double *aMarginRight);
1800 nsresult SetMarginRight(double aMarginRight);
1801 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1802 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1803 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1804 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1805 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1806 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1807 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1808 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1809 nsresult GetScaling(double *aScaling);
1810 nsresult SetScaling(double aScaling);
1811 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1812 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1813 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1814 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1815 nsresult GetPrintRange(PRInt16 *aPrintRange);
1816 nsresult SetPrintRange(PRInt16 aPrintRange);
1817 nsresult GetTitle(PRUnichar **aTitle);
1818 nsresult SetTitle(const PRUnichar *aTitle);
1819 nsresult GetDocURL(PRUnichar **aDocURL);
1820 nsresult SetDocURL(const PRUnichar *aDocURL);
1821 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1822 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1823 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1824 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1825 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1826 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1827 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1828 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1829 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1830 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1831 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1832 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1833 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1834 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1835 nsresult GetIsCancelled(PRBool *aIsCancelled);
1836 nsresult SetIsCancelled(PRBool aIsCancelled);
1837 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1838 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1839 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1840 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1841 nsresult GetPrintSilent(PRBool *aPrintSilent);
1842 nsresult SetPrintSilent(PRBool aPrintSilent);
1843 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1844 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1845 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1846 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1847 nsresult GetPaperName(PRUnichar **aPaperName);
1848 nsresult SetPaperName(const PRUnichar *aPaperName);
1849 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1850 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1851 nsresult GetPaperData(PRInt16 *aPaperData);
1852 nsresult SetPaperData(PRInt16 aPaperData);
1853 nsresult GetPaperWidth(double *aPaperWidth);
1854 nsresult SetPaperWidth(double aPaperWidth);
1855 nsresult GetPaperHeight(double *aPaperHeight);
1856 nsresult SetPaperHeight(double aPaperHeight);
1857 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1858 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1859 nsresult GetPlexName(PRUnichar **aPlexName);
1860 nsresult SetPlexName(const PRUnichar *aPlexName);
1861 nsresult GetColorspace(PRUnichar **aColorspace);
1862 nsresult SetColorspace(const PRUnichar *aColorspace);
1863 nsresult GetResolutionName(PRUnichar **aResolutionName);
1864 nsresult SetResolutionName(const PRUnichar aResolutionName);
1865 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1866 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1867 nsresult GetPrintReversed(PRBool *aPrintReversed);
1868 nsresult SetPrintReversed(PRBool aPrintReversed);
1869 nsresult GetPrintInColor(PRBool *aPrintInColor);
1870 nsresult SetPrintInColor(PRBool aPrintInColor);
1871 nsresult GetOrientation(PRInt32 *aOrientation);
1872 nsresult SetOrientation(PRInt32 aOrientation);
1873 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1874 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1875 nsresult GetNumCopies(PRInt32 *aNumCopies);
1876 nsresult SetNumCopies(PRInt32 aNumCopies);
1877 nsresult GetPrinterName(PRUnichar **aPrinterName);
1878 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1879 nsresult GetPrintToFile(PRBool *aPrintToFile);
1880 nsresult SetPrintToFile(PRBool aPrintToFile);
1881 nsresult GetToFileName(PRUnichar **aToFileName);
1882 nsresult SetToFileName(const PRUnichar *aToFileName);
1883 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1884 nsresult SetOutputFormat(PRInt16 aOutputFormat);
1885 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1886 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1887 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1888 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1889 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1890 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1891 nsresult SetMarginInTwips(nsIntMargin *aMargin);
1892 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1893 nsresult GetMarginInTwips(nsIntMargin *aMargin);
1894 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
1895 nsresult SetupSilentPrinting();
1896 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1897 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1898 }
1899
1900 [
1901 object,
1902 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1903 local
1904 /* FROZEN */
1905 ]
1906 interface nsIWebBrowserPrint : nsISupports
1907 {
1908 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1909 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1910 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1911 nsresult GetDoingPrint(PRBool *aDoingPrint);
1912 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1913 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1914 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1915 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1916 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1917 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1918 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1919 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1920 nsIWebProgressListener *aWPListener);
1921 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1922 nsresult Cancel();
1923 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1924 nsresult ExitPrintPreview();
1925 }
1926
1927 [
1928 object,
1929 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1930 local
1931 /* NOT_FROZEN */
1932 ]
1933 interface nsIScrollable : nsISupports
1934 {
1935 enum {
1936 ScrollOrientation_X = 1,
1937 ScrollOrientation_Y = 2
1938 };
1939
1940 enum {
1941 Scrollbar_Auto = 1,
1942 Scrollbar_Never = 2,
1943 Scrollbar_Always = 3
1944 };
1945
1946 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1947 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1948 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1949 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1950 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1951 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1952 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1953 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1954 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1955 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1956 }
1957
1958 [
1959 object,
1960 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1961 local
1962 /* FROZEN */
1963 ]
1964 interface nsIFile : nsISupports
1965 {
1966 nsresult Append(const nsAString *node);
1967 nsresult AppendNative(const nsAString *node);
1968 nsresult Normalize();
1969 nsresult Create(PRUint32 type, PRUint32 permission);
1970 nsresult GetLeafName(nsAString *aLeafName);
1971 nsresult SetLeafName(const nsAString *aLeafName);
1972 nsresult GetNativeLeafName(nsAString *aLeafName);
1973 nsresult SetNativeLeafName(const nsAString *aLeafName);
1974 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1975 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1976 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1977 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1978 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1979 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1980 nsresult Remove(PRBool recursive);
1981 nsresult GetPermissions(PRUint32 *aPermissions);
1982 nsresult SetPermissions(PRUint32 pPermissions);
1983 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1984 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1985 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1986 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1987 nsresult GetFileSize(PRInt64 *aFileSize);
1988 nsresult SetFileSize(PRInt64 aFileSize);
1989 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1990 nsresult GetTarget(nsAString *aTarget);
1991 nsresult GetNativeTarget(nsACString *aNativeTarget);
1992 nsresult GetPath(nsAString *aPath);
1993 nsresult GetNativePath(nsACString *aNativePath);
1994 nsresult Exists(PRBool *_retval);
1995 nsresult IsWritable(PRBool *_retval);
1996 nsresult IsReadable(PRBool *_retval);
1997 nsresult IsExecutable(PRBool *_retval);
1998 nsresult IsHidden(PRBool *_retval);
1999 nsresult IsDirectory(PRBool *_retval);
2000 nsresult IsFile(PRBool *_retval);
2001 nsresult IsSymlink(PRBool *_retval);
2002 nsresult IsSpecial(PRBool *_retval);
2003 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2004 nsresult Clone(nsIFile **_retval);
2005 nsresult Equals(nsIFile *inFile, PRBool *_retval);
2006 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
2007 nsresult GetParent(nsIFile **aParent);
2008 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2009 }
2010
2011 [
2012 object,
2013 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
2014 local
2015 /* FROZEN */
2016 ]
2017 interface nsIPrefBranch : nsISupports
2018 {
2019 nsresult GetRoot(char **aRoot);
2020 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2021 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
2022 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
2023 nsresult GetCharPref(const char *aPrefName, char **_retval);
2024 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2025 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2026 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2027 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2028 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2029 nsresult ClearUserPref(const char *aPrefName);
2030 nsresult LockPref(const char *aPrefName);
2031 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
2032 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
2033 nsresult UnlockPref(const char *aPrefName);
2034 nsresult DeleteBranch(const char *aStartingAt);
2035 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2036 nsresult ResetBranch(const char *aStartingAt);
2037 }
2038
2039 [
2040 object,
2041 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2042 local
2043 /* FROZEN */
2044 ]
2045 interface nsIProtocolHandler : nsISupports
2046 {
2047 nsresult GetScheme(nsACString *aScheme);
2048 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2049 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2050 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2051 nsIURI *aBaseURI, nsIURI **_retval);
2052 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2053 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2054 }
2055
2056 [
2057 object,
2058 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2059 local
2060 /* NOT_FROZEN */
2061 ]
2062 interface nsIExternalProtocolHandler : nsIProtocolHandler
2063 {
2064 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2065 }
2066
2067 [
2068 object,
2069 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2070 local
2071 /* FROZEN */
2072 ]
2073 interface nsIIOService : nsISupports
2074 {
2075 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2076 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2077 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2078 nsIURI **_retval);
2079 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2080 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2081 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2082 nsIChannel **_retval);
2083 nsresult GetOffline(PRBool *aOffline);
2084 nsresult SetOffline(PRBool aOffline);
2085 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2086 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2087 }
2088
2089 [
2090 object,
2091 uuid(a50d5516-5c0a-4f08-b427-703ca0c44ac3),
2092 local,
2093 /* NOT_FROZEN */
2094 ]
2095 interface nsINetUtil : nsISupports
2096 {
2097 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2098 PRBool *aHadCharset, nsACString *_retval);
2099 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2100 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2101 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2102 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2103 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2104 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2105 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2106 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2107 }
2108
2109 [
2110 object,
2111 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2112 local
2113 /* FROZEN */
2114 ]
2115 interface nsIWebBrowserFocus : nsISupports
2116 {
2117 nsresult Activate();
2118 nsresult Deactivate();
2119 nsresult SetFocusAtFirstElement();
2120 nsresult SetFocusAtLastElement();
2121 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2122 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2123 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2124 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2125 }
2126
2127 [
2128 object,
2129 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2130 local
2131 /* FROZEN */
2132 ]
2133 interface nsIWebBrowserChrome : nsISupports
2134 {
2135 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2136 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2137 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2138 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2139 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2140 nsresult DestroyBrowserWindow();
2141 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2142 nsresult ShowAsModal();
2143 nsresult IsWindowModal(PRBool *_retval);
2144 nsresult ExitModalEventLoop(nsresult aStatus);
2145 }
2146
2147 [
2148 object,
2149 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2150 local
2151 /* FROZEN */
2152 ]
2153 interface nsIDOMEventListener : nsISupports
2154 {
2155 nsresult HandleEvent(nsIDOMEvent *event);
2156 }
2157
2158 [
2159 object,
2160 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2161 local
2162 /* FROZEN */
2163 ]
2164 interface nsIDOMEventTarget : nsISupports
2165 {
2166 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2167 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2168 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2169 }
2170
2171 [
2172 object,
2173 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
2174 local
2175 /* FROZEN */
2176 ]
2177 interface nsIDOMEvent : nsISupports
2178 {
2179 nsresult GetType(nsAString *aType);
2180 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2181 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2182 nsresult GetEventPhase(PRUint16 *aEventPhase);
2183 nsresult GetBubbles(PRBool *aBubbles);
2184 nsresult GetCancelable(PRBool *aCancelable);
2185 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2186 nsresult StopPropagation();
2187 nsresult PreventDefault();
2188 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2189 }
2190
2191 cpp_quote("#define CONTEXT_NONE 0x00")
2192 cpp_quote("#define CONTEXT_LINK 0x01")
2193 cpp_quote("#define CONTEXT_IMAGE 0x02")
2194 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2195 cpp_quote("#define CONTEXT_TEXT 0x08")
2196 cpp_quote("#define CONTEXT_INPUT 0x10")
2197 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2198
2199 [
2200 object,
2201 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2202 local
2203 /* FROZEN */
2204 ]
2205 interface nsIContextMenuListener : nsISupports
2206 {
2207 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2208 }
2209
2210 [
2211 object,
2212 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2213 local
2214 /* FROZEN */
2215 ]
2216 interface nsIDOMUIEvent : nsIDOMEvent
2217 {
2218 nsresult GetView(nsIDOMAbstractView **aView);
2219 nsresult GetDetail(PRInt32 *aDetail);
2220 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2221 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2222 }
2223
2224 [
2225 object,
2226 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2227 local
2228 /* FROZEN */
2229 ]
2230 interface nsIDOMMouseEvent : nsIDOMUIEvent
2231 {
2232 nsresult GetScreenX(PRInt32 *aScreenX);
2233 nsresult GetScreenY(PRInt32 *aScreenY);
2234 nsresult GetClientX(PRInt32 *aClientX);
2235 nsresult GetClientY(PRInt32 *aClientY);
2236 nsresult GetCtrlKey(PRBool *aCtrlKey);
2237 nsresult GetShiftKey(PRBool *aShiftKey);
2238 nsresult GetAltKey(PRBool *aAltKey);
2239 nsresult GetMetaKey(PRBool *aMetaKey);
2240 nsresult GetButton(PRUint16 *aButton);
2241 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2242 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2243 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2244 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2245 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2246 nsIDOMEventTarget *relatedTargetArg);
2247 }
2248
2249 [
2250 object,
2251 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2252 local
2253 /* NOT_FROZEN */
2254 ]
2255 interface nsIDOMKeyEvent : nsIDOMUIEvent
2256 {
2257 nsresult GetCharCode(PRUint32 *aCharCode);
2258 nsresult GetKeyCode(PRUint32 *aKeyCode);
2259 nsresult GetAltKey(PRBool *aAltKey);
2260 nsresult GetCtrlKey(PRBool *aCtrlKey);
2261 nsresult GetShiftKey(PRBool *aShiftKey);
2262 nsresult GetMetaKey(PRBool *aMetaKey);
2263 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2264 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2265 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2266 PRUint32 charCodeArg);
2267 }
2268
2269 [
2270 object,
2271 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2272 local
2273 /* FROZEN */
2274 ]
2275 interface nsIEmbeddingSiteWindow : nsISupports
2276 {
2277 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2278 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2279 nsresult SetFocus();
2280 nsresult GetVisibility(PRBool *aVisibility);
2281 nsresult SetVisibility(PRBool aVisibility);
2282 nsresult GetTitle(PRUnichar **aTitle);
2283 nsresult SetTitle(const PRUnichar *aTitle);
2284 nsresult GetSiteWindow(void **aSiteWindow);
2285 }
2286
2287 [
2288 object,
2289 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2290 local
2291 /* FROZEN */
2292 ]
2293 interface nsIComponentRegistrar : nsISupports
2294 {
2295 nsresult AutoRegister(nsIFile *aSpec);
2296 nsresult AutoUnregister(nsIFile *aSpec);
2297 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2298 const char *aContractID, nsIFactory *aFactory);
2299 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2300 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2301 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2302 const char *aType);
2303 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2304 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2305 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2306 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2307 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2308 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2309 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2310 }
2311
2312 [
2313 object,
2314 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2315 local
2316 /* FROZEN */
2317 ]
2318 interface nsIPromptService : nsISupports
2319 {
2320 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2321 const PRUnichar *aText);
2322 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2323 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2324 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2325 const PRUnichar *aText, PRBool *_retval);
2326 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2327 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2328 PRBool *_retval);
2329 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2330 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2331 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2332 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2333 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2334 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2335 PRBool *aCheckState, PRBool *_retval);
2336 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2337 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2338 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2339 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2340 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2341 PRBool *aCheckState, PRBool *_retval);
2342 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2343 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2344 PRInt32 *aOutSelection, PRBool *_retval);
2345 }
2346
2347 [
2348 object,
2349 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2350 local
2351 /* FROZEN */
2352 ]
2353 interface nsITooltipTextProvider : nsISupports
2354 {
2355 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2356 }
2357
2358 [
2359 object,
2360 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2361 local
2362 /* FROZEN */
2363 ]
2364 interface nsIProfile : nsISupports
2365 {
2366 nsresult GetProfileCount(PRInt32 *aProfileCount);
2367 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2368 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2369 nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2370 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2371 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2372 nsresult CreateNewProfile(const PRUnichar *profileName,
2373 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2374 PRBool useExistingDir);
2375 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2376 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2377 nsresult CloneProfile(const PRUnichar *profileName);
2378 }
2379
2380 [
2381 object,
2382 uuid(30465632-a777-44cc-90f9-8145475ef999),
2383 local
2384 /* FROZEN */
2385 ]
2386 interface nsIWindowCreator : nsISupports
2387 {
2388 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2389 nsIWebBrowserChrome **_retval);
2390 }
2391
2392 [
2393 object,
2394 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2395 local
2396 /* NOT_FROZEN */
2397 ]
2398 interface nsIWindowCreator2 : nsIWindowCreator
2399 {
2400 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2401 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2402 nsIWebBrowserChrome **_retval);
2403 }
2404
2405 [
2406 object,
2407 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2408 local
2409 /* FROZEN */
2410 ]
2411 interface nsIWindowWatcher : nsISupports
2412 {
2413 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2414 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2415 nsresult RegisterNotification(nsIObserver *aObserver);
2416 nsresult UnregisterNotification(nsIObserver *aObserver);
2417 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2418 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2419 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2420 nsresult SetWindowCreator(nsIWindowCreator *creator);
2421 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2422 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2423 nsIDOMWindow **_retval);
2424 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2425 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2426 }
2427
2428 [
2429 object,
2430 uuid(274cd32e-3675-47e1-9d8a-fc6504ded9ce),
2431 local
2432 /* NOT_FROZEN */
2433 ]
2434 interface nsIEditingSession : nsISupports
2435 {
2436 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2437 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2438 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2439 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2440 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2441 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2442 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2443 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2444 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2445 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2446 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2447 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2448 }
2449
2450 [
2451 object,
2452 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2453 local
2454 /* NOT_FROZEN */
2455 ]
2456 interface nsICommandParams : nsISupports
2457 {
2458 nsresult GetValueType(const char *name, PRInt16 *_retval);
2459 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2460 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2461 nsresult GetDoubleValue(const char *name, double *_retval);
2462 nsresult GetStringValue(const char *name, nsAString *_retval);
2463 nsresult GetCStringValue(const char *name, char **_retval);
2464 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2465 nsresult SetBooleanValue(const char *name, PRBool value);
2466 nsresult SetLongValue(const char *name, PRInt32 value);
2467 nsresult SetDoubleValue(const char *name, double value);
2468 nsresult SetStringValue(const char *name, const nsAString *value);
2469 nsresult SetCStringValue(const char *name, const char *value);
2470 nsresult SetISupportsValue(const char *name, nsISupports *value);
2471 nsresult RemoveValue(const char *name);
2472 nsresult HasMoreElements(PRBool *_retval);
2473 nsresult First();
2474 nsresult GetNext(char **_retval);
2475 }
2476
2477 [
2478 object,
2479 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2480 local
2481 /* NOT_FROZEN */
2482 ]
2483 interface nsICommandManager : nsISupports
2484 {
2485 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2486 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2487 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2488 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2489 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2490 nsICommandParams *aCommandParams);
2491 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2492 nsIDOMWindow *aTargetWindow);
2493 }
2494
2495 [
2496 object,
2497 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2498 local
2499 /* NOT_FROZEN */
2500 ]
2501 interface nsIControllerContext : nsISupports
2502 {
2503 nsresult Init(nsIControllerCommandTable *aCommandTable);
2504 nsresult SetCommandContext(nsISupports *aCommandContext);
2505 }
2506
2507 [
2508 object,
2509 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2510 local
2511 /* NOT_FROZEN */
2512 ]
2513 interface nsIController : nsISupports
2514 {
2515 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2516 nsresult SupportsCommand(const char *command, PRBool *_retval);
2517 nsresult DoCommand(const char *command);
2518 nsresult OnEvent(const char *eventName);
2519 }
2520
2521 [
2522 object,
2523 uuid(34769de0-30d0-4cef-894a-fcd8bb27c4b4),
2524 local
2525 /* NOT_FROZEN */
2526 ]
2527 interface nsIContentSerializer : nsISupports
2528 {
2529 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2530 PRBool aIsWholeDocument);
2531 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2532 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2533 PRInt32 aEndOffset, nsAString *aStr);
2534 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2535 PRInt32 aEndOffset, nsAString *aStr);
2536 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2537 nsAString *aStr);
2538 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2539 nsresult AppendElementStart(nsIDOMElement *aElement, nsIDOMElement *aOriginalElement,
2540 nsAString *aStr);
2541 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2542 nsresult Flush(nsAString *aStr);
2543 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2544 }
2545
2546 [
2547 object,
2548 uuid(96b60ba0-634a-41e4-928e-78ab0b3c4b46),
2549 local
2550 /* NOT_FROZEN */
2551 ]
2552 interface nsIEditor : nsISupports
2553 {
2554 typedef void *nsIPresShellPtr;
2555 typedef void *nsIContentPtr;
2556
2557 nsresult GetSelection([out] nsISelection *_retval);
2558 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2559 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2560 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2561 nsresult PostCreate();
2562 nsresult PreDestroy();
2563 nsresult GetFlags([out] PRUint32 *_retval);
2564 nsresult SetFlags([in] PRUint32 val);
2565 nsresult GetContentsMIMEType([out] char **_retval);
2566 nsresult SetContentsMIMEType([in] const char *val);
2567 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2568 nsresult GetDocument([out] nsIDOMDocument **_retval);
2569 nsresult GetRootElement([out] nsIDOMElement **_retval);
2570 nsresult GetSelectionController([out] nsISelectionController **_retval);
2571 nsresult DeleteSelection([in] PRInt16 action);
2572 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2573 nsresult GetDocumentModified([out] PRBool *_retval);
2574 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2575 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2576 nsresult ResetModificationCount();
2577 nsresult GetModificationCount([out] PRInt32 *_retval);
2578 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2579 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2580 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2581 nsresult DoTransaction([in] nsITransaction *txn);
2582 nsresult EnableUndo([in] PRBool enable);
2583 nsresult Undo([in] PRUint32 count);
2584 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2585 nsresult Redo([in] PRUint32 count);
2586 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2587 nsresult BeginTransaction();
2588 nsresult EndTransaction();
2589 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2590 nsresult EndPlaceHolderTransaction();
2591 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2592 nsresult SetShouldTxnSetSelection([in] PRBool should);
2593 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2594 nsresult SyncRealTimeSpell();
2595 nsresult SetSpellcheckUserOverride(PRBool enable);
2596 nsresult Cut();
2597 nsresult CanCut([out] PRBool *_retval);
2598 nsresult Copy();
2599 nsresult CanCopy([out] PRBool *_retval);
2600 nsresult Paste([in] PRInt32 aSelectionType);
2601 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2602 nsresult SelectAll();
2603 nsresult BeginningOfDocument();
2604 nsresult EndOfDocument();
2605 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2606 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2607 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2608 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2609 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2610 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2611 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2612 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2613 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2614 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2615 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2616 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2617 nsresult DeleteNode([in] nsIDOMNode *child);
2618 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2619 nsresult SwitchTextDirection();
2620 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2621 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2622 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2623 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2624 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2625 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2626 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2627 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2628 nsresult DumpContentTree();
2629 nsresult DebugDumpContent();
2630 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2631 PRBool IsModifiableNode(nsIDOMNode *aNode);
2632 }
2633
2634 [
2635 object,
2636 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2637 local
2638 /* NOT_FROZEN */
2639 ]
2640 interface nsIHTMLEditor : nsISupports
2641 {
2642 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2643 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2644 nsresult RemoveAllDefaultProperties();
2645 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2646 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2647 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2648 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2649 nsresult RemoveAllInlineProperties();
2650 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2651 nsresult IncreaseFontSize();
2652 nsresult DecreaseFontSize();
2653 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2654 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2655 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2656 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2657 nsresult InsertHTML([in] nsAString *aInputString);
2658 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2659 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2660 nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] PRInt32 aDestinationOffset, [in] PRBool aDeleteSelection);
2661 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2662 nsresult SetDocumentTitle([in] nsAString *aTitle);
2663 nsresult UpdateBaseURL();
2664 nsresult SelectElement([in] nsIDOMElement *aElement);
2665 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2666 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2667 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2668 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2669 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2670 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2671 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2672 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2673 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2674 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2675 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2676 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2677 nsresult RemoveList([in] nsAString *aListType);
2678 nsresult Indent([in] nsAString *aIndent);
2679 nsresult Align([in] nsAString *aAlign);
2680 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2681 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2682 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2683 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2684 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2685 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2686 nsresult SetBackgroundColor([in] nsAString *aColor);
2687 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2688 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2689 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2690 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2691 nsresult SetIsCSSEnabled([in] PRBool prb);
2692 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2693 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2694 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2695 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2696 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2697 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2698 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2699 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2700 }
2701
2702 [
2703 object,
2704 uuid(8adfb831-1053-4a19-884d-bcdad7277b4b),
2705 local
2706 /* NOT_FROZEN */
2707 ]
2708 interface nsIDocShell : nsISupports
2709 {
2710 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
2711 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
2712 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
2713 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
2714 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
2715 nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
2716 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
2717 nsresult PrepareForNewContentModel();
2718 nsresult SetCurrentURI(nsIURI *aURI);
2719 nsresult FirePageHideNotification(PRBool isUnload);
2720 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
2721 nsresult GetPresShell(nsIPresShell **aPresShell);
2722 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
2723 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
2724 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
2725 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
2726 nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
2727 nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
2728 nsresult GetAllowPlugins(PRBool *aAllowPlugins);
2729 nsresult SetAllowPlugins(PRBool aAllowPlugins);
2730 nsresult GetAllowJavascript(PRBool *aAllowJavascript);
2731 nsresult SetAllowJavascript(PRBool aAllowJavascript);
2732 nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
2733 nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
2734 nsresult GetAllowSubframes(PRBool *aAllowSubframes);
2735 nsresult SetAllowSubframes(PRBool aAllowSubframes);
2736 nsresult GetAllowImages(PRBool *aAllowImages);
2737 nsresult SetAllowImages(PRBool aAllowImages);
2738 nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
2739 nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
2740 nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
2741 nsresult GetAppType(PRUint32 *aAppType);
2742 nsresult SetAppType(PRUint32 aAppType);
2743 nsresult GetAllowAuth(PRBool *aAllowAuth);
2744 nsresult SetAllowAuth(PRBool aAllowAuth);
2745 nsresult GetZoom(float *aZoom);
2746 nsresult SetZoom(float aZoom);
2747 nsresult GetMarginWidth(PRInt32 *aMarginWidth);
2748 nsresult SetMarginWidth(PRInt32 aMarginWidth);
2749 nsresult GetMarginHeight(PRInt32 *aMarginHeight);
2750 nsresult SetMarginHeight(PRInt32 aMarginHeight);
2751 nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
2752 nsresult GetBusyFlags(PRUint32 *aBusyFlags);
2753 nsresult GetLoadType(PRUint32 *aLoadType);
2754 nsresult SetLoadType(PRUint32 aLoadType);
2755 nsresult IsBeingDestroyed(PRBool *_retval);
2756 nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
2757 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
2758 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
2759 nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
2760 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
2761 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
2762 nsresult SuspendRefreshURIs();
2763 nsresult ResumeRefreshURIs();
2764 nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
2765 nsresult FinishRestore();
2766 nsresult GetRestoringDocument(PRBool *aRestoringDocument);
2767 nsresult GetUseErrorPages(PRBool *aUseErrorPages);
2768 nsresult SetUseErrorPages(PRBool aUseErrorPages);
2769 nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
2770 nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
2771 nsresult HistoryPurged(PRInt32 numEntries);
2772 nsresult GetSessionStorageForURI(nsIURI *uri, nsIDOMStorage **_retval);
2773 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, PRBool create, nsIDOMStorage **_retval);
2774 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
2775 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
2776 nsresult SetChildOffset(PRUint32 offset);
2777 nsresult GetIsInUnload(PRBool *aIsInUnload);
2778 nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
2779 void DetachEditorFromWindow();
2780 nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
2781 nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
2782 }
2783
2784 [
2785 object,
2786 uuid(365d600b-868a-452a-8de8-f46fad8fee53),
2787 local
2788 /* NOT_FROZEN */
2789 ]
2790 interface nsIMutationObserver : nsISupports
2791 {
2792 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2793 void /*CharacterDataChangeInfo*/ *aInfo);
2794 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2795 void /*CharacterDataChangeInfo*/ *aInfo);
2796 void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2797 nsIAtom *aAttribute, PRInt32 aModType);
2798 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2799 nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask);
2800 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer);
2801 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2802 PRInt32 aIndexInContainer);
2803 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2804 PRInt32 aIndexInContainer);
2805 void NodeWillBeDestroyed(const nsINode *aNode);
2806 void ParentChainChanged(nsIContent *aContent);
2807 }
2808
2809 [
2810 object,
2811 uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2812 local
2813 /* NOT_FROZEN */
2814 ]
2815 interface nsIDocumentObserver : nsIMutationObserver
2816 {
2817 typedef int nsUpdateType;
2818
2819 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2820 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2821 void BeginLoad(nsIDocument *aDocument);
2822 void EndLoad(nsIDocument *aDocument);
2823 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2824 PRInt32 aStateMask);
2825 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2826 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2827 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2828 PRBool aApplicable);
2829 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2830 nsIStyleRule *aNewStyleRule);
2831 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2832 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2833 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2834 void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);
2835 }