msvcrt/tests: Remove a space before a '\n'.
[wine/gsoc-2012-control.git] / dlls / mshtml / nsiface.idl
blob219ac0c1800ad77df78b72d2712c7ceaf6ef0c06
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 \"0.9.0\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
29 import "wtypes.idl";
31 typedef HRESULT nsresult;
32 typedef ULONG nsrefcnt;
34 typedef IID nsID;
35 typedef IID nsIID;
36 typedef nsIID nsCID;
37 typedef REFIID nsIIDRef;
38 typedef nsIIDRef nsCIDRef;
40 typedef void** nsQIResult;
41 typedef WCHAR PRUnichar;
42 typedef ULONG PRUint32;
43 typedef LONG PRInt32;
44 typedef WORD PRUint16;
45 typedef INT16 PRInt16;
46 typedef BYTE PRUint8;
47 typedef BOOL PRBool;
48 typedef LARGE_INTEGER PRInt64;
49 typedef ULARGE_INTEGER PRUint64;
50 typedef PRUint64 DOMTimeStamp;
51 typedef PRUint32 nsLoadFlags;
53 typedef struct {
54 void *v;
55 void *d1;
56 PRUint32 d2;
57 void *d3;
58 } nsCStringContainer;
60 typedef struct {
61 void *v;
62 void *d1;
63 PRUint32 d2;
64 void *d3;
65 } nsStringContainer;
67 typedef nsCStringContainer nsACString;
68 typedef nsStringContainer nsAString;
70 interface nsIWebBrowserChrome;
71 interface nsILoadGroup;
72 interface nsIDOMNode;
73 interface nsIDOMDocument;
74 interface nsIDOMEvent;
75 interface nsIEditor;
76 interface nsISelectionController;
77 interface nsITransactionManager;
78 interface nsITransaction;
79 interface nsIInlineSpellChecker;
80 interface nsIOutputStream;
81 interface nsIEditorObserver;
82 interface nsIEditActionListener;
83 interface nsIDocumentStateListener;
84 interface nsIDOMCSSStyleSheet;
85 interface nsIDOMDocumentView;
86 interface nsIDocumentObserver;
88 interface IMoniker;
91 object,
92 uuid(00000000-0000-0000-c000-000000000046),
93 local
95 interface nsISupports
97 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
98 nsrefcnt AddRef();
99 nsrefcnt Release();
102 /* Currently we don't need a full declaration of these interfaces */
103 typedef nsISupports nsISHistory;
104 typedef nsISupports nsIWidget;
105 typedef nsISupports nsIHttpHeaderVisitor;
106 typedef nsISupports nsIDOMBarProp;
107 typedef nsISupports nsIDOMWindowCollection;
108 typedef nsISupports nsIPrompt;
109 typedef nsISupports nsIAuthPrompt;
110 typedef nsISupports nsIDOMNamedNodeMap;
111 typedef nsISupports nsIDOMAttr;
112 typedef nsISupports nsIDOMDocumentType;
113 typedef nsISupports nsIDOMDOMImplementation;
114 typedef nsISupports nsIDOMCDATASection;
115 typedef nsISupports nsIDOMProcessingInstruction;
116 typedef nsISupports nsIDOMEntityReference;
117 typedef nsISupports nsIDOMHTMLFormElement;
118 typedef nsISupports nsIDOMHTMLOptionsCollection;
119 typedef nsISupports nsIWebProgressListener;
120 typedef nsISupports nsIDOMCSSValue;
121 typedef nsISupports nsIPrintSession;
122 typedef nsISupports nsIControllerCommandTable;
123 typedef nsISupports nsIPrincipal;
124 typedef nsISupports nsIAtom;
125 typedef nsISupports nsISupportsArray;
126 typedef nsISupports nsIContentFilter;
127 typedef nsISupports nsIDOMMediaList;
128 typedef nsISupports nsIDOMHTMLTableCaptionElement;
129 typedef nsISupports nsIDOMHTMLTableSectionElement;
130 typedef nsISupports nsIDOMClientRectList;
131 typedef nsISupports nsIDOMClientRect;
132 typedef nsISupports nsIDOMLocation;
133 typedef nsISupports nsIBoxObject;
134 typedef nsISupports nsIDocument;
135 typedef nsISupports nsIContent;
136 typedef nsISupports nsINode;
137 typedef nsISupports nsIStyleSheet;
138 typedef nsISupports nsIStyleRule;
141 object,
142 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
143 local
144 /* FROZEN */
146 interface nsIServiceManager : nsISupports
148 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
149 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
150 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
151 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
155 object,
156 uuid(00000001-0000-0000-c000-000000000046),
157 local
158 /* FROZEN */
160 interface nsIFactory : nsISupports
162 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
163 nsresult LockFactory(PRBool lock);
167 object,
168 uuid(db242e01-e4d9-11d2-9dde-000064657374),
169 local
170 /* FROZEN */
172 interface nsIObserver : nsISupports
174 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
178 object,
179 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
180 local
181 /* FROZEN */
183 interface nsIComponentManager : nsISupports
185 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
186 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
187 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
188 nsQIResult result);
189 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
190 nsIIDRef aIID, nsQIResult result);
194 object,
195 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
196 local
197 /* FROZEN */
199 interface nsIMemory : nsISupports
201 void *Alloc(/*size_t*/ int size);
202 void *Realloc(void *_ptr, /*size_t*/ int newSize);
203 void Free(void *_ptr);
204 nsresult HeapMinimize(PRBool immediate);
205 nsresult IsLowMemory(PRBool *_retval);
209 object,
210 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
211 local
212 /* FROZEN */
214 interface nsIWeakReference : nsISupports
216 nsresult QueryReferent(const nsIID *riid, void **result);
220 object,
221 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
222 local
223 /* FROZEN */
225 interface nsISupportsWeakReference : nsISupports
227 nsresult GetWeakReference(nsIWeakReference **_retval);
231 object,
232 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
233 local
234 /* FROZEN */
236 interface nsIInterfaceRequestor : nsISupports
238 nsresult GetInterface(const nsIID *riid, void **result);
242 object,
243 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
244 local
245 /* NOT_FROZEN */
247 interface nsIRunnable : nsISupports
249 nsresult Run();
253 object,
254 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
255 local
256 /* FROZEN */
258 interface nsISimpleEnumerator : nsISupports
260 nsresult HasMoreElements(PRBool *_retval);
261 nsresult GetNext(nsISupports **_retval);
265 object,
266 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
267 local
268 /* FROZEN */
270 interface nsIInputStream : nsISupports
272 nsresult Close();
273 nsresult Available(PRUint32 *_retval);
274 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
275 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
276 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
277 PRUint32 aCount, PRUint32 *aWriteCount),
278 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
279 nsresult IsNonBlocking(PRBool *_retval);
283 object,
284 uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53),
285 local
286 /* NOT_FROZEN */
288 interface nsIStringInputStream : nsIInputStream
290 nsresult SetData(const char *data, PRInt32 dataLen);
291 nsresult AdoptData(char *data, PRInt32 dataLen);
292 nsresult ShareData(const char *data, PRInt32 dataLen);
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(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
334 local
335 /* FROZEN */
337 interface nsIRequest : nsISupports
339 nsresult GetName(nsACString *aName);
340 nsresult IsPending(PRBool *_retval);
341 nsresult GetStatus(nsresult *aStatus);
342 nsresult Cancel(nsresult aStatus);
343 nsresult Suspend();
344 nsresult Resume();
345 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
346 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
347 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
348 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
352 object,
353 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
354 local
355 /* FROZEN */
357 interface nsIRequestObserver : nsISupports
359 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
360 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
364 object,
365 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
366 local
367 /* FROZEN */
369 interface nsIStreamListener : nsIRequestObserver
371 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
372 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
376 object,
377 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
378 local
379 /* FROZEN */
381 interface nsILoadGroup : nsIRequest
383 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
384 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
385 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
386 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
387 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
388 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
389 nsresult GetRequests(nsISimpleEnumerator **aRequests);
390 nsresult GetActiveCount(PRUint32 *aActiveCount);
391 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
392 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
396 object,
397 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
398 local
399 /* FROZEN */
401 interface nsIChannel : nsIRequest
403 nsresult GetOriginalURI(nsIURI **aOriginalURI);
404 nsresult SetOriginalURI(nsIURI *aOriginalURI);
405 nsresult GetURI(nsIURI **aURI);
406 nsresult GetOwner(nsISupports **aOwner);
407 nsresult SetOwner(nsISupports *aOwner);
408 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
409 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
410 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
411 nsresult GetContentType(nsACString *aContentType);
412 nsresult SetContentType(const nsACString *aContentType);
413 nsresult GetContentCharset(nsACString *aContentCharset);
414 nsresult SetContentCharset(const nsACString *aContentCharset);
415 nsresult GetContentLength(PRInt32 *aContentLength);
416 nsresult SetContentLength(PRInt32 aContentLength);
417 nsresult Open(nsIInputStream **_retval);
418 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
422 object,
423 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
424 local
425 /* FROZEN */
427 interface nsIHttpChannel : nsIChannel
429 nsresult GetRequestMethod(nsACString *aRequestMethod);
430 nsresult SetRequestMethod(const nsACString *aRequestMethod);
431 nsresult GetReferrer(nsIURI **aReferrer);
432 nsresult SetReferrer(nsIURI *aReferrer);
433 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
434 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
435 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
436 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
437 nsresult SetAllowPipelining(PRBool aAllowPipelining);
438 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
439 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
440 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
441 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
442 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
443 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
444 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
445 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
446 nsresult IsNoStoreResponse(PRBool *_retval);
447 nsresult IsNoCacheResponse(PRBool *_retval);
451 object,
452 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
453 local
454 /* FROZEN */
456 interface nsIUploadChannel : nsISupports
458 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
459 PRInt32 aContentLength);
460 nsresult GetUploadStream(nsIInputStream **aUploadStream);
464 object,
465 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
466 local
467 /* FROZEN */
469 interface nsIDOMCSSRule : nsISupports
471 nsresult GetType(PRUint16 *aType);
472 nsresult GetCssText(nsAString *aCssText);
473 nsresult SetCssText(const nsAString *aCssText);
474 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
475 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
479 object,
480 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
481 local
482 /* FROZEN */
484 interface nsIDOMCSSStyleDeclaration : nsISupports
486 nsresult GetCssText(nsAString *aCssText);
487 nsresult SetCssText(const nsAString *aCssText);
488 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
489 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
490 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
491 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
492 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
493 const nsAString *priority);
494 nsresult GetLength(PRUint32 *aLength);
495 nsresult Item(PRUint32 index, nsAString *_retval);
496 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
500 object,
501 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
502 local
503 /* FROZEN */
505 interface nsIDOMCSSRuleList : nsISupports
507 nsresult GetLength(PRUint32 *aLength);
508 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
512 object,
513 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
514 local
515 /* FROZEN */
517 interface nsIDOMStyleSheet : nsISupports
519 nsresult GetType(nsAString *aType);
520 nsresult GetDisabled(PRBool *aDisabled);
521 nsresult SetDisabled(PRBool aDisabled);
522 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
523 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
524 nsresult GetHref(nsAString *aHref);
525 nsresult GetTitle(nsAString *aTitle);
526 nsresult GetMedia(nsIDOMMediaList **aMedia);
530 object,
531 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
532 local
533 /* FROZEN */
535 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
537 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
538 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
539 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
540 nsresult DeleteRule(PRUint32 index);
544 object,
545 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
546 local
547 /* FROZEN */
549 interface nsIDOMStyleSheetList : nsISupports
551 nsresult GetLength(PRUint32 *aLength);
552 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
556 object,
557 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
558 local
559 /* FROZEN */
561 interface nsIDOMNodeList : nsISupports
563 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
564 nsresult GetLength(PRUint32 *aLength);
568 object,
569 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
570 local
571 /* FROZEN */
573 interface nsIDOMNode : nsISupports
575 enum NSNODETYPE {
576 ELEMENT_NODE = 1,
577 ATTRIBUTE_NODE = 2,
578 TEXT_NODE = 3,
579 CDATA_SELECTION_NODE = 4,
580 ENTITY_REFERENCE_NODE = 5,
581 ENTITY_NODE = 6,
582 PROCESSING_INSTRUCTION_NODE = 7,
583 COMMENT_NODE = 8,
584 DOCUMENT_NODE = 9,
585 DOCUMENT_TYPE_NODE = 10,
586 DOCUMENT_FRAGMENT_NODE = 11,
587 NOTATION_NODE = 12
590 nsresult GetNodeName(nsAString *aNodeName);
591 nsresult GetNodeValue(nsAString *aNodeValue);
592 nsresult SetNodeValue(const nsAString *aNodeValue);
593 nsresult GetNodeType(PRUint16 *aNodeType);
594 nsresult GetParentNode(nsIDOMNode **aParentNode);
595 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
596 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
597 nsresult GetLastChild(nsIDOMNode **aLastChild);
598 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
599 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
600 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
601 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
602 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
603 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
604 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
605 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
606 nsresult HasChildNodes(PRBool *_retval);
607 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
608 nsresult Normalize();
609 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
610 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
611 nsresult GetPrefix(nsAString *aPrefix);
612 nsresult SetPrefix(const nsAString *aPrefix);
613 nsresult GetLocalName(nsAString *aLocalName);
614 nsresult HasAttributes(PRBool *_retval);
618 object,
619 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
620 local
621 /* FROZEN */
623 interface nsIDOMElement : nsIDOMNode
625 nsresult GetTagName(nsAString *aTagName);
626 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
627 nsresult SetAttribute(const nsAString *name, const nsAString *value);
628 nsresult RemoveAttribute(const nsAString *name);
629 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
630 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
631 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
632 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
633 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
634 nsAString *_retval);
635 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
636 const nsAString *value);
637 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
638 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
639 nsIDOMAttr **_retval);
640 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
641 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
642 nsIDOMNodeList **_retval);
643 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
644 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
645 PRBool *_retval);
649 object,
650 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
651 local
652 /* FROZEN */
654 interface nsIDOMElementCSSInlineStyle : nsISupports
656 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
660 object,
661 uuid(f0aef489-18c5-4de6-99d5-58b3758b098c),
662 local
663 /* NOT_FROZEN */
665 interface nsIDOMNSElement : nsISupports
667 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
668 nsresult GetClientRects(nsIDOMClientRectList **_retval);
669 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
670 nsresult GetScrollTop(PRInt32 *aScrollTop);
671 nsresult SetScrollTop(PRInt32 aScrollTop);
672 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
673 nsresult SetScrollLeft(PRInt32 aScrollLeft);
674 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
675 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
676 nsresult GetClientTop(PRInt32 *aClientTop);
677 nsresult GetClientLeft(PRInt32 *aClientLeft);
678 nsresult GetClientHeight(PRInt32 *aClientHeight);
679 nsresult GetClientWidth(PRInt32 *aClientWidth);
680 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
681 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
682 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
683 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
684 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
685 nsresult GetChildren(nsIDOMNodeList **aChildren);
688 cpp_quote("#undef GetClassName")
691 object,
692 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
693 local
694 /* FROZEN */
696 interface nsIDOMHTMLElement : nsIDOMElement
698 nsresult GetId(nsAString *aId);
699 nsresult SetId(const nsAString *aId);
700 nsresult GetTitle(nsAString *aTitle);
701 nsresult SetTitle(const nsAString *aTitle);
702 nsresult GetLang(nsAString *aLang);
703 nsresult SetLang(const nsAString *aLang);
704 nsresult GetDir(nsAString *aDir);
705 nsresult SetDir(const nsAString *aDir);
706 nsresult GetClassName(nsAString *aClassName);
707 nsresult SetClassName(const nsAString *aClassName);
711 object,
712 uuid(7f142f9a-fba7-4949-93d6-cf08a974ac51),
713 local
714 /* NOT_FROZEN */
716 interface nsIDOMNSHTMLElement : nsISupports
718 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
719 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
720 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
721 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
722 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
723 nsresult GetInnerHTML(nsAString *aInnerHTML);
724 nsresult SetInnerHTML(const nsAString *aInnerHTML);
725 nsresult GetTabIndex(PRInt32 *aTabIndex);
726 nsresult SetTabIndex(PRInt32 aTabIndex);
727 nsresult GetContentEditable(nsAString *aContentEditable);
728 nsresult SetContentEditable(const nsAString *aContentEditable);
729 nsresult blur();
730 nsresult focus();
731 nsresult ScrollIntoView(PRBool top);
732 nsresult GetSpellcheck(PRBool *aSpellcheck);
733 nsresult SetSpellcheck(PRBool aSpellcheck);
737 object,
738 uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
739 local
740 /* FROZEN */
742 interface nsIDOMHTMLCollection : nsISupports
744 nsresult GetLength(PRUint32 *aLength);
745 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
746 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
750 object,
751 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
752 local
753 /* FROZEN */
755 interface nsIDOMCharacterData : nsIDOMNode
757 nsresult GetData(nsAString *aData);
758 nsresult SetData(const nsAString *aData);
759 nsresult GetLength(PRUint32 *aLength);
760 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
761 nsresult AppendData(const nsAString *arg);
762 nsresult InsertData(PRUint32 offset, const nsAString *arg);
763 nsresult DeleteData(PRUint32 offset, PRUint32 count);
764 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
768 object,
769 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
770 local
771 /* FROZEN */
773 interface nsIDOMText : nsIDOMCharacterData
775 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
779 object,
780 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
781 local
782 /* FROZEN */
784 interface nsIDOMComment : nsIDOMCharacterData
789 object,
790 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
791 local
792 /* FROZEN */
794 interface nsIDOMDocumentFragment : nsIDOMNode
799 object,
800 uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
801 local
802 /* FROZEN */
804 interface nsIDOMAbstractView : nsISupports
806 nsresult GetDocument(nsIDOMDocumentView **aDocument);
810 object,
811 uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
812 local
813 /* NOT_FROZEN */
815 interface nsIDOMViewCSS : nsIDOMAbstractView
817 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
821 object,
822 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
823 local
824 /* FROZEN */
826 interface nsIDOMDocument : nsIDOMNode
828 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
829 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
830 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
831 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
832 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
833 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
834 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
835 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
836 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
837 nsIDOMProcessingInstruction **_retval);
838 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
839 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
840 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
841 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
842 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
843 nsIDOMElement **_retval);
844 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
845 nsIDOMAttr **_retval);
846 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
847 nsIDOMNodeList **_retval);
848 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
852 object,
853 uuid(533a8131-8d0c-4ebf-990b-7fad7cd51466),
854 local
855 /* NOT_FROZEN */
857 interface nsIDOMNSDocument : nsISupports
859 nsresult GetCharacterSet(nsAString *aCharacterSet);
860 nsresult GetDir(nsAString *aDir);
861 nsresult SetDir(const nsAString *aDir);
862 nsresult GetLocation(nsIDOMLocation **aLocation);
863 nsresult GetTitle(nsAString *aTitle);
864 nsresult SetTitle(const nsAString *aTitle);
865 nsresult GetContentType(nsAString *aContentType);
866 nsresult GetLastModified(nsAString *aLastModified);
867 nsresult GetReferrer(nsAString *aReferrer);
868 nsresult GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject **_retval);
869 nsresult HasFocus(PRBool *_retval);
870 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
871 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
872 nsresult ElementFromPoint(PRInt32 x, PRInt32 y, nsIDOMElement **_retval);
874 /* Wine extensions */
875 nsresult WineAddObserver(nsIDocumentObserver *aObserver);
876 nsresult WineAddScriptRunner(nsIRunnable *aRunnable);
880 object,
881 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
882 local
883 /* FROZEN */
885 interface nsIDOMHTMLDocument : nsIDOMDocument
887 nsresult GetTitle(nsAString *aTitle);
888 nsresult SetTitle(const nsAString *aTitle);
889 nsresult GetReferrer(nsAString *aReferrer);
890 nsresult GetDomain(nsAString *aDomain);
891 nsresult GetURL(nsAString *aURL);
892 nsresult GetBody(nsIDOMHTMLElement **aBody);
893 nsresult SetBody(nsIDOMHTMLElement *aBody);
894 nsresult GetImages(nsIDOMHTMLCollection **aImages);
895 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
896 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
897 nsresult GetForms(nsIDOMHTMLCollection **aForms);
898 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
899 nsresult GetCookie(nsAString *aCookie);
900 nsresult SetCookie(const nsAString *aCookie);
901 nsresult Open();
902 nsresult Close();
903 nsresult Write(const nsAString *text);
904 nsresult Writeln(const nsAString *text);
905 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
909 object,
910 uuid(79beb289-3644-4b54-9432-9fb993945629),
911 local
912 /* NOT_FROZEN */
914 interface nsIDOMNSHTMLDocument : nsISupports
916 nsresult GetWidth(PRInt32 *aWidth);
917 nsresult GetHeight(PRInt32 *aHeight);
918 nsresult GetAlinkColor(nsAString *aAlinkColor);
919 nsresult SetAlinkColor(const nsAString *aAlinkColor);
920 nsresult GetLinkColor(nsAString *aLinkColor);
921 nsresult SetLinkColor(const nsAString *aLinkColor);
922 nsresult GetVlinkColor(nsAString *aVlinkColor);
923 nsresult SetVlinkColor(const nsAString *aVlinkColor);
924 nsresult GetBgColor(nsAString *aBgColor);
925 nsresult SetBgColor(const nsAString *aBgColor);
926 nsresult GetFgColor(nsAString *aFgColor);
927 nsresult SetFgColor(const nsAString *aFgColor);
928 nsresult GetDomain(nsAString *aDomain);
929 nsresult SetDomain(const nsAString *aDomain);
930 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
931 nsresult GetSelection(nsAString *_retval);
932 nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
933 nsresult Write();
934 nsresult Writeln();
935 nsresult Clear();
936 nsresult CaptureEvents(PRInt32 eventFlags);
937 nsresult ReleaseEvents(PRInt32 eventFlags);
938 nsresult RouteEvent(nsIDOMEvent *evt);
939 nsresult GetCompatMode(nsAString *aCompatMode);
940 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
941 nsresult GetDesignMode(nsAString *aDesignMode);
942 nsresult SetDesignMode(const nsAString *aDesignMode);
943 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
944 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
945 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
946 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
947 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
948 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
949 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
950 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
954 object,
955 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
956 local
957 /* FROZEN */
959 interface nsIDOMDocumentStyle : nsISupports
961 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
965 object,
966 uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
967 local
968 /* FROZEN */
970 interface nsIDOMDocumentView : nsISupports
972 nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
976 object,
977 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
978 local
979 /* FROZEN */
981 interface nsIDOMRange : nsISupports
983 enum {
984 NS_START_TO_START,
985 NS_START_TO_END,
986 NS_END_TO_END,
987 NS_END_TO_START
990 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
991 nsresult GetStartOffset(PRInt32 *aStartOffset);
992 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
993 nsresult GetEndOffset(PRInt32 *aEndOffset);
994 nsresult GetCollapsed(PRBool *aCollapsed);
995 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
996 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
997 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
998 nsresult SetStartBefore(nsIDOMNode *refNode);
999 nsresult SetStartAfter(nsIDOMNode *refNode);
1000 nsresult SetEndBefore(nsIDOMNode *refNode);
1001 nsresult SetEndAfter(nsIDOMNode *refNode);
1002 nsresult Collapse(PRBool toStart);
1003 nsresult SelectNode(nsIDOMNode *refNode);
1004 nsresult SelectNodeContents(nsIDOMNode *refNode);
1005 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1006 nsresult DeleteContents();
1007 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1008 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1009 nsresult InsertNode(nsIDOMNode *newNode);
1010 nsresult SurroundContents(nsIDOMNode *newParent);
1011 nsresult CloneRange(nsIDOMRange **_retval);
1012 nsresult ToString(nsAString *_retval);
1013 nsresult Detach();
1017 object,
1018 uuid(59188642-23b4-41d6-bde1-302c3906d1f0),
1019 local
1020 /* NOT_FROZEN */
1022 interface nsIDOMNSRange : nsISupports
1024 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1025 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1026 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1031 object,
1032 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1033 local
1034 /* FROZEN */
1036 interface nsIDOMDocumentRange : nsISupports
1038 nsresult CreateRange(nsIDOMRange **_retval);
1042 object,
1043 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1044 local
1045 /* FROZEN */
1047 interface nsISelection : nsISupports
1049 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1050 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1051 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1052 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1053 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1054 nsresult GetRangeCount(PRInt32 *aRangeCount);
1055 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1056 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1057 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1058 nsresult CollapseToStart();
1059 nsresult CollapseToEnd();
1060 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1061 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1062 nsresult AddRange(nsIDOMRange *range);
1063 nsresult RemoveRange(nsIDOMRange *range);
1064 nsresult RemoveAllRanges();
1065 nsresult DeleteFromDocument();
1066 nsresult SelectionLanguageChange(PRBool langRTL);
1067 nsresult ToString(PRUnichar **_retval);
1071 object,
1072 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1073 local
1074 /* FROZEN */
1076 interface nsIDOMWindow : nsISupports
1078 nsresult GetDocument(nsIDOMDocument **aDocument);
1079 nsresult GetParent(nsIDOMWindow **aParent);
1080 nsresult GetTop(nsIDOMWindow **aTop);
1081 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1082 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1083 nsresult GetName(nsAString *aName);
1084 nsresult SetName(const nsAString *aName);
1085 nsresult GetTextZoom(float *aTextZoom);
1086 nsresult SetTextZoom(float aTextZoom);
1087 nsresult GetScrollX(PRInt32 *aScrollX);
1088 nsresult GetScrollY(PRInt32 *aScrollY);
1089 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1090 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1091 nsresult GetSelection(nsISelection **_retval);
1092 nsresult ScrollByLines(PRInt32 numLines);
1093 nsresult ScrollByPages(PRInt32 numPages);
1094 nsresult SizeToContent();
1098 object,
1099 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1100 local
1101 /* FROZEN */
1103 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1105 nsresult GetALink(nsAString *aALink);
1106 nsresult SetALink(const nsAString *aALink);
1107 nsresult GetBackground(nsAString *aBackground);
1108 nsresult SetBackground(const nsAString *aBackground);
1109 nsresult GetBgColor(nsAString *aBgColor);
1110 nsresult SetBgColor(const nsAString *aBgColor);
1111 nsresult GetLink(nsAString *aLink);
1112 nsresult SetLink(const nsAString *aLink);
1113 nsresult GetText(nsAString *aText);
1114 nsresult SetText(const nsAString *aText);
1115 nsresult GetVLink(nsAString *aVLink);
1116 nsresult SetVLink(const nsAString *aVLink);
1120 object,
1121 uuid(a6cf9093-15b3-11d2-932e-00805f8add32),
1122 local
1123 /* FROZEN */
1125 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1127 nsresult GetDefaultValue(nsAString *aDefaultValue);
1128 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1129 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1130 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1131 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1132 nsresult GetAccept(nsAString *aAccept);
1133 nsresult SetAccept(const nsAString *aAccept);
1134 nsresult GetAccessKey(nsAString *aAccessKey);
1135 nsresult SetAccessKey(const nsAString *aAccessKey);
1136 nsresult GetAlign(nsAString *aAlign);
1137 nsresult SetAlign(const nsAString *aAlign);
1138 nsresult GetAlt(nsAString *aAlt);
1139 nsresult SetAlt(const nsAString *aAlt);
1140 nsresult GetChecked(PRBool *aChecked);
1141 nsresult SetChecked(PRBool aChecked);
1142 nsresult GetDisabled(PRBool *aDisabled);
1143 nsresult SetDisabled(PRBool aDisabled);
1144 nsresult GetMaxLength(PRInt32 *aMaxLength);
1145 nsresult SetMaxLength(PRInt32 aMaxLength);
1146 nsresult GetName(nsAString *aName);
1147 nsresult SetName(const nsAString *aName);
1148 nsresult GetReadOnly(PRBool *aReadOnly);
1149 nsresult SetReadOnly(PRBool aReadOnly);
1150 nsresult GetSize(PRUint32 *aSize);
1151 nsresult SetSize(PRUint32 aSize);
1152 nsresult GetSrc(nsAString *aSrc);
1153 nsresult SetSrc(const nsAString *aSrc);
1154 nsresult GetTabIndex(PRInt32 *aTabIndex);
1155 nsresult SetTabIndex(PRInt32 aTabIndex);
1156 nsresult GetType(nsAString *aType);
1157 nsresult SetType(const nsAString *aType);
1158 nsresult GetUseMap(nsAString *aUseMap);
1159 nsresult SetUseMap(const nsAString *aUseMap);
1160 nsresult GetValue(nsAString *aValue);
1161 nsresult SetValue(const nsAString *aValue);
1162 nsresult Blur();
1163 nsresult Focus();
1164 nsresult Select();
1165 nsresult Click();
1169 object,
1170 uuid(a6cf9092-15b3-11d2-932e-00805f8add32),
1171 local
1172 /* FROZEN */
1174 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1176 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1177 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1178 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1179 nsresult GetText(nsAString *aText);
1180 nsresult GetIndex(PRInt32 *aIndex);
1181 nsresult GetDisabled(PRBool *aDisabled);
1182 nsresult SetDisabled(PRBool aDisabled);
1183 nsresult GetLabel(nsAString *aLabel);
1184 nsresult SetLabel(const nsAString *aLabel);
1185 nsresult GetSelected(PRBool *aSelected);
1186 nsresult SetSelected(PRBool aSelected);
1187 nsresult GetValue(nsAString *aValue);
1188 nsresult SetValue(const nsAString *aValue);
1192 object,
1193 uuid(a6cf9090-15b3-11d2-932e-00805f8add32),
1194 local
1195 /* FROZEN */
1197 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1199 nsresult GetType(nsAString *aType);
1200 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1201 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1202 nsresult GetValue(nsAString *aValue);
1203 nsresult SetValue(const nsAString *aValue);
1204 nsresult GetLength(PRUint32 *aLength);
1205 nsresult SetLength(PRUint32 aLength);
1206 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1207 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1208 nsresult GetDisabled(PRBool *aDisabled);
1209 nsresult SetDisabled(PRBool aDisabled);
1210 nsresult GetMultiple(PRBool *aMultiple);
1211 nsresult SetMultiple(PRBool aMultiple);
1212 nsresult GetName(nsAString *aName);
1213 nsresult SetName(const nsAString *aName);
1214 nsresult GetSize(PRInt32 *aSize);
1215 nsresult SetSize(PRInt32 aSize);
1216 nsresult GetTabIndex(PRInt32 *aTabIndex);
1217 nsresult SetTabIndex(PRInt32 aTabIndex);
1218 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1219 nsresult Remove(PRInt32 index);
1220 nsresult Blur();
1221 nsresult Focus();
1225 object,
1226 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1227 local
1228 /* FROZEN */
1230 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1232 nsresult GetDefaultValue(nsAString *aDefaultValue);
1233 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1234 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1235 nsresult GetAccessKey(nsAString *aAccessKey);
1236 nsresult SetAccessKey(const nsAString *aAccessKey);
1237 nsresult GetCols(PRInt32 *aCols);
1238 nsresult SetCols(PRInt32 aCols);
1239 nsresult GetDisabled(PRBool *aDisabled);
1240 nsresult SetDisabled(PRBool aDisabled);
1241 nsresult GetName(nsAString *aName);
1242 nsresult SetName(const nsAString *aName);
1243 nsresult GetReadOnly(PRBool *aReadOnly);
1244 nsresult SetReadOnly(PRBool aReadOnly);
1245 nsresult GetRows(PRInt32 *aRows);
1246 nsresult SetRows(PRInt32 aRows);
1247 nsresult GetTabIndex(PRInt32 *aTabIndex);
1248 nsresult SetTabIndex(PRInt32 aTabIndex);
1249 nsresult GetType(nsAString *aType);
1250 nsresult GetValue(nsAString *aValue);
1251 nsresult SetValue(const nsAString *aValue);
1252 nsresult Blur();
1253 nsresult Focus();
1254 nsresult Select();
1258 object,
1259 uuid(a6cf90b1-15b3-11d2-932e-00805f8add32),
1260 local
1261 /* FROZEN */
1263 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1265 nsresult GetText(nsAString *aText);
1266 nsresult SetText(const nsAString *aText);
1267 nsresult GetHtmlFor(nsAString *aHtmlFor);
1268 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1269 nsresult GetEvent(nsAString *aEvent);
1270 nsresult SetEvent(const nsAString *aEvent);
1271 nsresult GetCharset(nsAString *aCharset);
1272 nsresult SetCharset(const nsAString *aCharset);
1273 nsresult GetDefer(PRBool *aDefer);
1274 nsresult SetDefer(PRBool aDefer);
1275 nsresult GetSrc(nsAString *aSrc);
1276 nsresult SetSrc(const nsAString *aSrc);
1277 nsresult GetType(nsAString *aType);
1278 nsresult SetType(const nsAString *aType);
1282 object,
1283 uuid(a6cf90ab-15b3-11d2-932e-00805f8add32),
1284 local
1285 /* FROZEN */
1287 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1289 nsresult GetName(nsAString *aName);
1290 nsresult SetName(const nsAString *aName);
1291 nsresult GetAlign(nsAString *aAlign);
1292 nsresult SetAlign(const nsAString *aAlign);
1293 nsresult GetAlt(nsAString *aAlt);
1294 nsresult SetAlt(const nsAString *aAlt);
1295 nsresult GetBorder(nsAString *aBorder);
1296 nsresult SetBorder(const nsAString *aBorder);
1297 nsresult GetHeight(PRInt32 *aHeight);
1298 nsresult SetHeight(PRInt32 aHeight);
1299 nsresult GetHspace(PRInt32 *aHspace);
1300 nsresult SetHspace(PRInt32 aHspace);
1301 nsresult GetIsMap(PRBool *aIsMap);
1302 nsresult SetIsMap(PRBool aIsMap);
1303 nsresult GetLongDesc(nsAString *aLongDesc);
1304 nsresult SetLongDesc(const nsAString *aLongDesc);
1305 nsresult GetSrc(nsAString *aSrc);
1306 nsresult SetSrc(const nsAString *aSrc);
1307 nsresult GetUseMap(nsAString *aUseMap);
1308 nsresult SetUseMap(const nsAString *aUseMap);
1309 nsresult GetVspace(PRInt32 *aVspace);
1310 nsresult SetVspace(PRInt32 aVspace);
1311 nsresult GetWidth(PRInt32 *aWidth);
1312 nsresult SetWidth(PRInt32 aWidth);
1316 object,
1317 uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1318 local
1319 /* FROZEN */
1321 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1323 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1324 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1325 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1326 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1327 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1328 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1329 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1330 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1331 nsresult GetAlign(nsAString *aAlign);
1332 nsresult SetAlign(const nsAString *aAlign);
1333 nsresult GetBgColor(nsAString *aBgColor);
1334 nsresult SetBgColor(const nsAString *aBgColor);
1335 nsresult GetBorder(nsAString *aBorder);
1336 nsresult SetBorder(const nsAString *aBorder);
1337 nsresult GetCellPadding(nsAString *aCellPadding);
1338 nsresult SetCellPadding(const nsAString *aCellPadding);
1339 nsresult GetCellSpacing(nsAString *aCellSpacing);
1340 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1341 nsresult GetFrame(nsAString *aFrame);
1342 nsresult SetFrame(const nsAString *aFrame);
1343 nsresult GetRules(nsAString *aRules);
1344 nsresult SetRules(const nsAString *aRules);
1345 nsresult GetSummary(nsAString *aSummary);
1346 nsresult SetSummary(const nsAString *aSummary);
1347 nsresult GetWidth(nsAString *aWidth);
1348 nsresult SetWidth(const nsAString *aWidth);
1349 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1350 nsresult DeleteTHead();
1351 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1352 nsresult DeleteTFoot();
1353 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1354 nsresult DeleteCaption();
1355 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1356 nsresult DeleteRow(PRInt32 index);
1360 object,
1361 uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1362 local
1363 /* FROZEN */
1365 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1367 nsresult GetRowIndex(PRInt32 *aRowIndex);
1368 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1369 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1370 nsresult GetAlign(nsAString *aAlign);
1371 nsresult SetAlign(const nsAString *aAlign);
1372 nsresult GetBgColor(nsAString *aBgColor);
1373 nsresult SetBgColor(const nsAString *aBgColor);
1374 nsresult GetCh(nsAString *aCh);
1375 nsresult SetCh(const nsAString *aCh);
1376 nsresult GetChOff(nsAString *aChOff);
1377 nsresult SetChOff(const nsAString *aChOff);
1378 nsresult GetVAlign(nsAString *aVAlign);
1379 nsresult SetVAlign(const nsAString *aVAlign);
1380 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1381 nsresult DeleteCell(PRInt32 index);
1385 object,
1386 uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1387 local
1388 /* FROZEN */
1390 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1392 nsresult GetAlign(nsAString *aAlign);
1393 nsresult SetAlign(const nsAString *aAlign);
1394 nsresult GetFrameBorder(nsAString *aFrameBorder);
1395 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1396 nsresult GetHeight(nsAString *aHeight);
1397 nsresult SetHeight(const nsAString *aHeight);
1398 nsresult GetLongDesc(nsAString *aLongDesc);
1399 nsresult SetLongDesc(const nsAString *aLongDesc);
1400 nsresult GetMarginHeight(nsAString *aMarginHeight);
1401 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1402 nsresult GetMarginWidth(nsAString *aMarginWidth);
1403 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1404 nsresult GetName(nsAString *aName);
1405 nsresult SetName(const nsAString *aName);
1406 nsresult GetScrolling(nsAString *aScrolling);
1407 nsresult SetScrolling(const nsAString *aScrolling);
1408 nsresult GetSrc(nsAString *aSrc);
1409 nsresult SetSrc(const nsAString *aSrc);
1410 nsresult GetWidth(nsAString *aWidth);
1411 nsresult SetWidth(const nsAString *aWidth);
1412 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1416 object,
1417 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1418 local
1419 /* FROZEN */
1421 interface nsIURIContentListener : nsISupports
1423 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1424 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1425 nsIStreamListener **aContentHandler, PRBool *_retval);
1426 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1427 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1428 char **aDesiredContentType, PRBool *_retval);
1429 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1430 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1431 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1432 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1436 object,
1437 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1438 local
1439 /* FROZEN */
1441 interface nsITooltipListener : nsISupports
1443 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1444 nsresult OnHideTooltip();
1448 object,
1449 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c),
1450 local
1451 /* FROZEN */
1453 interface nsIWebBrowser : nsISupports
1455 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1456 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1457 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1458 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1459 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1460 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1461 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1464 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1465 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1468 object,
1469 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1470 local
1471 /* FROZEN */
1473 interface nsIWebBrowserSetup : nsISupports
1475 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1478 typedef void* nativeWindow;
1481 object,
1482 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1483 local
1484 /* NOT_FROZEN */
1486 interface nsIBaseWindow : nsISupports
1488 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1489 PRInt32 y, PRInt32 cx, PRInt32 cy);
1490 nsresult Create();
1491 nsresult Destroy();
1492 nsresult SetPosition(PRInt32 x, PRInt32 y);
1493 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1494 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1495 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1496 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1497 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1498 nsresult Repaint(PRBool force);
1499 nsresult GetParentWidget(nsIWidget **aParentWidget);
1500 nsresult SetParentWidget(nsIWidget *aParentWidget);
1501 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1502 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1503 nsresult GetVisibility(PRBool *aVisibility);
1504 nsresult SetVisibility(PRBool aVisibility);
1505 nsresult GetEnabled(PRBool *aEnabled);
1506 nsresult SetEnabled(PRBool aEnabled);
1507 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1508 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1509 nsresult GetMainWidget(nsIWidget **aMainWidget);
1510 nsresult SetFocus();
1511 nsresult GetTitle(PRUnichar **aTitle);
1512 nsresult SetTitle(const PRUnichar *aTitle);
1515 cpp_quote("#define LOAD_FLAGS_NONE 0")
1518 object,
1519 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1520 local
1521 /* NOT_FROZEN */
1523 interface nsIWebNavigation : nsISupports
1525 nsresult GetCanGoBack(PRBool *aCanGoBack);
1526 nsresult GetCanGoForward(PRBool *aCanGoForward);
1527 nsresult GoBack();
1528 nsresult GoForward();
1529 nsresult GotoIndex(PRInt32 index);
1530 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1531 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1532 nsresult Reload(PRUint32 aReloadFlags);
1533 nsresult Stop(PRUint32 aStopFlags);
1534 nsresult GetDocument(nsIDOMDocument **aDocument);
1535 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1536 nsresult GetReferringURI(nsIURI **aReferringURI);
1537 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1538 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1542 object,
1543 uuid(5af07661-6477-4235-8814-4a45215855b8),
1544 local
1545 /* NOT_FROZEN */
1547 interface nsIPrintSettings : nsISupports
1549 typedef struct { char dummy; } nsMargin;
1551 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1552 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1553 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1554 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1555 nsresult Clone(nsIPrintSettings **_retval);
1556 nsresult Assign(nsIPrintSettings *aPS);
1557 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1558 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1559 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1560 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1561 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1562 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1563 nsresult GetEdgeTop(double *aEdgeTop);
1564 nsresult SetEdgeTop(double aEdgeTop);
1565 nsresult GetEdgeLeft(double *aEdgeLeft);
1566 nsresult SetEdgeLeft(double aEdgeLeft);
1567 nsresult GetEdgeBottom(double *aEdgeBottom);
1568 nsresult SetEdgeBottom(double aEdgeBottom);
1569 nsresult GetEdgeRight(double *aEdgeRight);
1570 nsresult SetEdgeRight(double aEdgeRight);
1571 nsresult GetMarginTop(double *aMarginTop);
1572 nsresult SetMarginTop(double aMarginTop);
1573 nsresult GetMarginLeft(double *aMarginLeft);
1574 nsresult SetMarginLeft(double aMarginLeft);
1575 nsresult GetMarginBottom(double *aMarginBottom);
1576 nsresult SetMarginBottom(double aMarginBottom);
1577 nsresult GetMarginRight(double *aMarginRight);
1578 nsresult SetMarginRight(double aMarginRight);
1579 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1580 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1581 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1582 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1583 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1584 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1585 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1586 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1587 nsresult GetScaling(double *aScaling);
1588 nsresult SetScaling(double aScaling);
1589 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1590 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1591 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1592 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1593 nsresult GetPrintRange(PRInt16 *aPrintRange);
1594 nsresult SetPrintRange(PRInt16 aPrintRange);
1595 nsresult GetTitle(PRUnichar **aTitle);
1596 nsresult SetTitle(const PRUnichar *aTitle);
1597 nsresult GetDocURL(PRUnichar **aDocURL);
1598 nsresult SetDocURL(const PRUnichar *aDocURL);
1599 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1600 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1601 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1602 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1603 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1604 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1605 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1606 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1607 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1608 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1609 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1610 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1611 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1612 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1613 nsresult GetIsCancelled(PRBool *aIsCancelled);
1614 nsresult SetIsCancelled(PRBool aIsCancelled);
1615 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1616 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1617 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1618 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1619 nsresult GetPrintSilent(PRBool *aPrintSilent);
1620 nsresult SetPrintSilent(PRBool aPrintSilent);
1621 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1622 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1623 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1624 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1625 nsresult GetPaperName(PRUnichar **aPaperName);
1626 nsresult SetPaperName(const PRUnichar *aPaperName);
1627 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1628 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1629 nsresult GetPaperData(PRInt16 *aPaperData);
1630 nsresult SetPaperData(PRInt16 aPaperData);
1631 nsresult GetPaperWidth(double *aPaperWidth);
1632 nsresult SetPaperWidth(double aPaperWidth);
1633 nsresult GetPaperHeight(double *aPaperHeight);
1634 nsresult SetPaperHeight(double aPaperHeight);
1635 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1636 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1637 nsresult GetPlexName(PRUnichar **aPlexName);
1638 nsresult SetPlexName(const PRUnichar *aPlexName);
1639 nsresult GetColorspace(PRUnichar **aColorspace);
1640 nsresult SetColorspace(const PRUnichar *aColorspace);
1641 nsresult GetResolutionName(PRUnichar **aResolutionName);
1642 nsresult SetResolutionName(const PRUnichar aResolutionName);
1643 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1644 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1645 nsresult GetPrintReversed(PRBool *aPrintReversed);
1646 nsresult SetPrintReversed(PRBool aPrintReversed);
1647 nsresult GetPrintInColor(PRBool *aPrintInColor);
1648 nsresult SetPrintInColor(PRBool aPrintInColor);
1649 nsresult GetOrientation(PRInt32 *aOrientation);
1650 nsresult SetOrientation(PRInt32 aOrientation);
1651 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1652 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1653 nsresult GetNumCopies(PRInt32 *aNumCopies);
1654 nsresult SetNumCopies(PRInt32 aNumCopies);
1655 nsresult GetPrinterName(PRUnichar **aPrinterName);
1656 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1657 nsresult GetPrintToFile(PRBool *aPrintToFile);
1658 nsresult SetPrintToFile(PRBool aPrintToFile);
1659 nsresult GetToFileName(PRUnichar **aToFileName);
1660 nsresult SetToFileName(const PRUnichar *aToFileName);
1661 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1662 nsresult SetOutputFormat(PRInt16 aOutputFormat);
1663 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1664 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1665 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1666 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1667 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1668 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1669 nsresult SetMarginInTwips(nsMargin *aMargin);
1670 nsresult SetEdgeInTwips(nsMargin *aEdge);
1671 nsresult GetMarginInTwips(nsMargin *aMargin);
1672 nsresult GetEdgeInTwips(nsMargin *aEdge);
1673 nsresult SetupSilentPrinting();
1674 nsresult SetUnwriteableMarginInTwips(nsMargin *aEdge);
1675 nsresult GetUnwriteableMarginInTwips(nsMargin *aEdge);
1679 object,
1680 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1681 local
1682 /* FROZEN */
1684 interface nsIWebBrowserPrint : nsISupports
1686 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1687 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1688 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1689 nsresult GetDoingPrint(PRBool *aDoingPrint);
1690 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1691 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1692 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1693 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1694 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1695 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1696 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1697 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1698 nsIWebProgressListener *aWPListener);
1699 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1700 nsresult Cancel();
1701 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1702 nsresult ExitPrintPreview();
1706 object,
1707 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1708 local
1709 /* NOT_FROZEN */
1711 interface nsIScrollable : nsISupports
1713 enum {
1714 ScrollOrientation_X = 1,
1715 ScrollOrientation_Y = 2
1718 enum {
1719 Scrollbar_Auto = 1,
1720 Scrollbar_Never = 2,
1721 Scrollbar_Always = 3
1724 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1725 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1726 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1727 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1728 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1729 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1730 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1731 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1732 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1733 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1737 object,
1738 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1739 local
1740 /* FROZEN */
1742 interface nsIFile : nsISupports
1744 nsresult Append(const nsAString *node);
1745 nsresult AppendNative(const nsAString *node);
1746 nsresult Normalize();
1747 nsresult Create(PRUint32 type, PRUint32 permission);
1748 nsresult GetLeafName(nsAString *aLeafName);
1749 nsresult SetLeafName(const nsAString *aLeafName);
1750 nsresult GetNativeLeafName(nsAString *aLeafName);
1751 nsresult SetNativeLeafName(const nsAString *aLeafName);
1752 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1753 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1754 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1755 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1756 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1757 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1758 nsresult Remove(PRBool recursive);
1759 nsresult GetPermissions(PRUint32 *aPermissions);
1760 nsresult SetPermissions(PRUint32 pPermissions);
1761 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1762 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1763 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1764 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1765 nsresult GetFileSize(PRInt64 *aFileSize);
1766 nsresult SetFileSize(PRInt64 aFileSize);
1767 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1768 nsresult GetTarget(nsAString *aTarget);
1769 nsresult GetNativeTarget(nsACString *aNativeTarget);
1770 nsresult GetPath(nsAString *aPath);
1771 nsresult GetNativePath(nsACString *aNativePath);
1772 nsresult Exists(PRBool *_retval);
1773 nsresult IsWritable(PRBool *_retval);
1774 nsresult IsReadable(PRBool *_retval);
1775 nsresult IsExecutable(PRBool *_retval);
1776 nsresult IsHidden(PRBool *_retval);
1777 nsresult IsDirectory(PRBool *_retval);
1778 nsresult IsFile(PRBool *_retval);
1779 nsresult IsSymlink(PRBool *_retval);
1780 nsresult IsSpecial(PRBool *_retval);
1781 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1782 nsresult Clone(nsIFile **_retval);
1783 nsresult Equals(nsIFile *inFile, PRBool *_retval);
1784 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1785 nsresult GetParent(nsIFile **aParent);
1786 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1790 object,
1791 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
1792 local
1793 /* FROZEN */
1795 interface nsIPrefBranch : nsISupports
1797 nsresult GetRoot(char **aRoot);
1798 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
1799 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
1800 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
1801 nsresult GetCharPref(const char *aPrefName, char **_retval);
1802 nsresult SetCharPref(const char *aPrefName, const char *aValue);
1803 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
1804 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
1805 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
1806 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
1807 nsresult ClearUserPref(const char *aPrefName);
1808 nsresult LockPref(const char *aPrefName);
1809 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
1810 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
1811 nsresult UnlockPref(const char *aPrefName);
1812 nsresult DeleteBranch(const char *aStartingAt);
1813 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
1814 nsresult ResetBranch(const char *aStartingAt);
1818 object,
1819 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
1820 local
1821 /* FROZEN */
1823 interface nsIProtocolHandler : nsISupports
1825 nsresult GetScheme(nsACString *aScheme);
1826 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1827 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1828 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1829 nsIURI *aBaseURI, nsIURI **_retval);
1830 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1831 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1835 object,
1836 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
1837 local
1838 /* NOT_FROZEN */
1840 interface nsIExternalProtocolHandler : nsIProtocolHandler
1842 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1846 object,
1847 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
1848 local
1849 /* FROZEN */
1851 interface nsIIOService : nsISupports
1853 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1854 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1855 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1856 nsIURI **_retval);
1857 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1858 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1859 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1860 nsIChannel **_retval);
1861 nsresult GetOffline(PRBool *aOffline);
1862 nsresult SetOffline(PRBool aOffline);
1863 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1864 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1868 object,
1869 uuid(57322c6f-f4ec-4e46-8253-b74be220de16),
1870 local,
1871 /* NOT_FROZEN */
1873 interface nsINetUtil : nsISupports
1875 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
1876 PRBool *aHadCharset, nsACString *_retval);
1877 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
1878 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
1879 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
1880 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
1881 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
1882 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
1883 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
1884 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
1888 object,
1889 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
1890 local
1891 /* FROZEN */
1893 interface nsIWebBrowserFocus : nsISupports
1895 nsresult Activate();
1896 nsresult Deactivate();
1897 nsresult SetFocusAtFirstElement();
1898 nsresult SetFocusAtLastElement();
1899 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1900 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1901 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1902 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1906 object,
1907 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
1908 local
1909 /* FROZEN */
1911 interface nsIWebBrowserChrome : nsISupports
1913 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1914 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1915 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1916 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1917 nsresult SetChromeFlags(PRUint32 aChromeFlags);
1918 nsresult DestroyBrowserWindow();
1919 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1920 nsresult ShowAsModal();
1921 nsresult IsWindowModal(PRBool *_retval);
1922 nsresult ExitModalEventLoop(nsresult aStatus);
1926 object,
1927 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
1928 local
1929 /* FROZEN */
1931 interface nsIDOMEventListener : nsISupports
1933 nsresult HandleEvent(nsIDOMEvent *event);
1937 object,
1938 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
1939 local
1940 /* FROZEN */
1942 interface nsIDOMEventTarget : nsISupports
1944 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1945 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1946 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1950 object,
1951 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
1952 local
1953 /* FROZEN */
1955 interface nsIDOMEvent : nsISupports
1957 nsresult GetType(nsAString *aType);
1958 nsresult GetTarget(nsIDOMEventTarget **aTarget);
1959 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1960 nsresult GetEventPhase(PRUint16 *aEventPhase);
1961 nsresult GetBubbles(PRBool *aBubbles);
1962 nsresult GetCancelable(PRBool *aCancelable);
1963 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1964 nsresult StopPropagation();
1965 nsresult PreventDefault();
1966 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1969 cpp_quote("#define CONTEXT_NONE 0x00")
1970 cpp_quote("#define CONTEXT_LINK 0x01")
1971 cpp_quote("#define CONTEXT_IMAGE 0x02")
1972 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
1973 cpp_quote("#define CONTEXT_TEXT 0x08")
1974 cpp_quote("#define CONTEXT_INPUT 0x10")
1975 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
1978 object,
1979 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
1980 local
1981 /* FROZEN */
1983 interface nsIContextMenuListener : nsISupports
1985 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1989 object,
1990 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
1991 local
1992 /* FROZEN */
1994 interface nsIDOMUIEvent : nsIDOMEvent
1996 nsresult GetView(nsIDOMAbstractView **aView);
1997 nsresult GetDetail(PRInt32 *aDetail);
1998 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1999 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2003 object,
2004 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2005 local
2006 /* FROZEN */
2008 interface nsIDOMMouseEvent : nsIDOMUIEvent
2010 nsresult GetScreenX(PRInt32 *aScreenX);
2011 nsresult GetScreenY(PRInt32 *aScreenY);
2012 nsresult GetClientX(PRInt32 *aClientX);
2013 nsresult GetClientY(PRInt32 *aClientY);
2014 nsresult GetCtrlKey(PRBool *aCtrlKey);
2015 nsresult GetShiftKey(PRBool *aShiftKey);
2016 nsresult GetAltKey(PRBool *aAltKey);
2017 nsresult GetMetaKey(PRBool *aMetaKey);
2018 nsresult GetButton(PRUint16 *aButton);
2019 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
2020 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2021 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2022 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2023 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2024 nsIDOMEventTarget *relatedTargetArg);
2028 object,
2029 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2030 local
2031 /* NOT_FROZEN */
2033 interface nsIDOMKeyEvent : nsIDOMUIEvent
2035 nsresult GetCharCode(PRUint32 *aCharCode);
2036 nsresult GetKeyCode(PRUint32 *aKeyCode);
2037 nsresult GetAltKey(PRBool *aAltKey);
2038 nsresult GetCtrlKey(PRBool *aCtrlKey);
2039 nsresult GetShiftKey(PRBool *aShiftKey);
2040 nsresult GetMetaKey(PRBool *aMetaKey);
2041 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2042 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2043 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2044 PRUint32 charCodeArg);
2048 object,
2049 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2050 local
2051 /* FROZEN */
2053 interface nsIEmbeddingSiteWindow : nsISupports
2055 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2056 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2057 nsresult SetFocus();
2058 nsresult GetVisibility(PRBool *aVisibility);
2059 nsresult SetVisibility(PRBool aVisibility);
2060 nsresult GetTitle(PRUnichar **aTitle);
2061 nsresult SetTitle(const PRUnichar *aTitle);
2062 nsresult GetSiteWindow(void **aSiteWindow);
2066 object,
2067 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2068 local
2069 /* FROZEN */
2071 interface nsIComponentRegistrar : nsISupports
2073 nsresult AutoRegister(nsIFile *aSpec);
2074 nsresult AutoUnregister(nsIFile *aSpec);
2075 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2076 const char *aContractID, nsIFactory *aFactory);
2077 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2078 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2079 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2080 const char *aType);
2081 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2082 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2083 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2084 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2085 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2086 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2087 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2091 object,
2092 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2093 local
2094 /* FROZEN */
2096 interface nsIPromptService : nsISupports
2098 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2099 const PRUnichar *aText);
2100 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2101 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2102 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2103 const PRUnichar *aText, PRBool *_retval);
2104 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2105 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2106 PRBool *_retval);
2107 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2108 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2109 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2110 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2111 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2112 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2113 PRBool *aCheckState, PRBool *_retval);
2114 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2115 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2116 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2117 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2118 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2119 PRBool *aCheckState, PRBool *_retval);
2120 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2121 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2122 PRInt32 *aOutSelection, PRBool *_retval);
2126 object,
2127 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2128 local
2129 /* FROZEN */
2131 interface nsITooltipTextProvider : nsISupports
2133 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2137 object,
2138 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2139 local
2140 /* FROZEN */
2142 interface nsIProfile : nsISupports
2144 nsresult GetProfileCount(PRInt32 *aProfileCount);
2145 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2146 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2147 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
2148 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2149 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2150 nsresult CreateNewProfile(const PRUnichar *profileName,
2151 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2152 PRBool useExistingDir);
2153 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2154 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2155 nsresult CloneProfile(const PRUnichar *profileName);
2159 object,
2160 uuid(30465632-a777-44cc-90f9-8145475ef999),
2161 local
2162 /* FROZEN */
2164 interface nsIWindowCreator : nsISupports
2166 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2167 nsIWebBrowserChrome **_retval);
2171 object,
2172 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2173 local
2174 /* NOT_FROZEN */
2176 interface nsIWindowCreator2 : nsIWindowCreator
2178 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2179 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2180 nsIWebBrowserChrome **_retval);
2184 object,
2185 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2186 local
2187 /* FROZEN */
2189 interface nsIWindowWatcher : nsISupports
2191 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2192 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2193 nsresult RegisterNotification(nsIObserver *aObserver);
2194 nsresult UnregisterNotification(nsIObserver *aObserver);
2195 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2196 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2197 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2198 nsresult SetWindowCreator(nsIWindowCreator *creator);
2199 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2200 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2201 nsIDOMWindow **_retval);
2202 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2203 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2207 object,
2208 uuid(274cd32e-3675-47e1-9d8a-fc6504ded9ce),
2209 local
2210 /* NOT_FROZEN */
2212 interface nsIEditingSession : nsISupports
2214 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2215 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2216 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2217 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2218 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2219 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2220 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2221 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2222 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2223 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2224 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2225 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2229 object,
2230 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2231 local
2232 /* NOT_FROZEN */
2234 interface nsICommandParams : nsISupports
2236 nsresult GetValueType(const char *name, PRInt16 *_retval);
2237 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2238 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2239 nsresult GetDoubleValue(const char *name, double *_retval);
2240 nsresult GetStringValue(const char *name, nsAString *_retval);
2241 nsresult GetCStringValue(const char *name, char **_retval);
2242 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2243 nsresult SetBooleanValue(const char *name, PRBool value);
2244 nsresult SetLongValue(const char *name, PRInt32 value);
2245 nsresult SetDoubleValue(const char *name, double value);
2246 nsresult SetStringValue(const char *name, const nsAString *value);
2247 nsresult SetCStringValue(const char *name, const char *value);
2248 nsresult SetISupportsValue(const char *name, nsISupports *value);
2249 nsresult RemoveValue(const char *name);
2250 nsresult HasMoreElements(PRBool *_retval);
2251 nsresult First();
2252 nsresult GetNext(char **_retval);
2256 object,
2257 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2258 local
2259 /* NOT_FROZEN */
2261 interface nsICommandManager : nsISupports
2263 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2264 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2265 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2266 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2267 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2268 nsICommandParams *aCommandParams);
2269 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2270 nsIDOMWindow *aTargetWindow);
2274 object,
2275 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2276 local
2277 /* NOT_FROZEN */
2279 interface nsIControllerContext : nsISupports
2281 nsresult Init(nsIControllerCommandTable *aCommandTable);
2282 nsresult SetCommandContext(nsISupports *aCommandContext);
2286 object,
2287 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2288 local
2289 /* NOT_FROZEN */
2291 interface nsIController : nsISupports
2293 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2294 nsresult SupportsCommand(const char *command, PRBool *_retval);
2295 nsresult DoCommand(const char *command);
2296 nsresult OnEvent(const char *eventName);
2300 object,
2301 uuid(34769de0-30d0-4cef-894a-fcd8bb27c4b4),
2302 local
2303 /* NOT_FROZEN */
2305 interface nsIContentSerializer : nsISupports
2307 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2308 PRBool aIsWholeDocument);
2309 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2310 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2311 PRInt32 aEndOffset, nsAString *aStr);
2312 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2313 PRInt32 aEndOffset, nsAString *aStr);
2314 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2315 nsAString *aStr);
2316 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2317 nsresult AppendElementStart(nsIDOMElement *aElement, nsIDOMElement *aOriginalElement,
2318 nsAString *aStr);
2319 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2320 nsresult Flush(nsAString *aStr);
2321 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2325 object,
2326 uuid(96b60ba0-634a-41e4-928e-78ab0b3c4b46),
2327 local
2328 /* NOT_FROZEN */
2330 interface nsIEditor : nsISupports
2332 typedef void *nsIPresShellPtr;
2333 typedef void *nsIContentPtr;
2335 nsresult GetSelection([out] nsISelection *_retval);
2336 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2337 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2338 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2339 nsresult PostCreate();
2340 nsresult PreDestroy();
2341 nsresult GetFlags([out] PRUint32 *_retval);
2342 nsresult SetFlags([in] PRUint32 val);
2343 nsresult GetContentsMIMEType([out] char **_retval);
2344 nsresult SetContentsMIMEType([in] const char *val);
2345 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2346 nsresult GetDocument([out] nsIDOMDocument **_retval);
2347 nsresult GetRootElement([out] nsIDOMElement **_retval);
2348 nsresult GetSelectionController([out] nsISelectionController **_retval);
2349 nsresult DeleteSelection([in] PRInt16 action);
2350 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2351 nsresult GetDocumentModified([out] PRBool *_retval);
2352 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2353 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2354 nsresult ResetModificationCount();
2355 nsresult GetModificationCount([out] PRInt32 *_retval);
2356 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2357 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2358 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2359 nsresult DoTransaction([in] nsITransaction *txn);
2360 nsresult EnableUndo([in] PRBool enable);
2361 nsresult Undo([in] PRUint32 count);
2362 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2363 nsresult Redo([in] PRUint32 count);
2364 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2365 nsresult BeginTransaction();
2366 nsresult EndTransaction();
2367 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2368 nsresult EndPlaceHolderTransaction();
2369 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2370 nsresult SetShouldTxnSetSelection([in] PRBool should);
2371 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2372 nsresult SyncRealTimeSpell();
2373 nsresult SetSpellcheckUserOverride(PRBool enable);
2374 nsresult Cut();
2375 nsresult CanCut([out] PRBool *_retval);
2376 nsresult Copy();
2377 nsresult CanCopy([out] PRBool *_retval);
2378 nsresult Paste([in] PRInt32 aSelectionType);
2379 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2380 nsresult SelectAll();
2381 nsresult BeginningOfDocument();
2382 nsresult EndOfDocument();
2383 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2384 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2385 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2386 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2387 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2388 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2389 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2390 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2391 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2392 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2393 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2394 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2395 nsresult DeleteNode([in] nsIDOMNode *child);
2396 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2397 nsresult SwitchTextDirection();
2398 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2399 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2400 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2401 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2402 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2403 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2404 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2405 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2406 nsresult DumpContentTree();
2407 nsresult DebugDumpContent();
2408 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2409 PRBool IsModifiableNode(nsIDOMNode *aNode);
2413 object,
2414 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2415 local
2416 /* NOT_FROZEN */
2418 interface nsIHTMLEditor : nsISupports
2420 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2421 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2422 nsresult RemoveAllDefaultProperties();
2423 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2424 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2425 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2426 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2427 nsresult RemoveAllInlineProperties();
2428 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2429 nsresult IncreaseFontSize();
2430 nsresult DecreaseFontSize();
2431 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2432 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2433 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2434 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2435 nsresult InsertHTML([in] nsAString *aInputString);
2436 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2437 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2438 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);
2439 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2440 nsresult SetDocumentTitle([in] nsAString *aTitle);
2441 nsresult UpdateBaseURL();
2442 nsresult SelectElement([in] nsIDOMElement *aElement);
2443 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2444 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2445 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2446 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2447 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2448 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2449 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2450 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2451 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2452 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2453 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2454 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2455 nsresult RemoveList([in] nsAString *aListType);
2456 nsresult Indent([in] nsAString *aIndent);
2457 nsresult Align([in] nsAString *aAlign);
2458 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2459 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2460 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2461 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2462 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2463 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2464 nsresult SetBackgroundColor([in] nsAString *aColor);
2465 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2466 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2467 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2468 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2469 nsresult SetIsCSSEnabled([in] PRBool prb);
2470 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2471 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2472 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2473 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2474 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2475 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2476 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2477 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2481 object,
2482 uuid(32e68316-67d4-44a5-8d35-0d390fa9df11),
2483 local
2484 /* NOT_FROZEN */
2486 interface nsIMutationObserver : nsISupports
2488 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2489 void /*CharacterDataChangeInfo*/ *aInfo);
2490 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2491 void /*CharacterDataChangeInfo*/ *aInfo);
2492 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2493 nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask);
2494 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer);
2495 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2496 PRInt32 aIndexInContainer);
2497 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2498 PRInt32 aIndexInContainer);
2499 void NodeWillBeDestroyed(const nsINode *aNode);
2500 void ParentChainChanged(nsIContent *aContent);
2504 object,
2505 uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2506 local
2507 /* NOT_FROZEN */
2509 interface nsIDocumentObserver : nsIMutationObserver
2511 typedef int nsUpdateType;
2513 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2514 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2515 void BeginLoad(nsIDocument *aDocument);
2516 void EndLoad(nsIDocument *aDocument);
2517 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2518 PRInt32 aStateMask);
2519 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2520 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2521 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2522 PRBool aApplicable);
2523 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2524 nsIStyleRule *aNewStyleRule);
2525 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2526 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2527 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2528 void DoneAddingContent(nsIContent *aContent, PRBool aHaveNotified);
2532 * NOTE:
2533 * This is a private Wine interface that is implemented by our implementation
2534 * of nsIURI to store its owner.
2537 object,
2538 uuid(5088272e-900b-11da-c687-000fea57f21a),
2539 local
2540 /* INTERNAL */
2542 interface nsIWineURI : nsIURI
2544 typedef struct NSContainer NSContainer;
2546 nsresult GetNSContainer(NSContainer **aNSContainer);
2547 nsresult SetNSContainer(NSContainer *aNSContainer);
2548 nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
2549 nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
2550 nsresult GetWineURL(LPCWSTR *aURL);
2551 nsresult SetWineURL(LPCWSTR aURL);