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