push 9eb9af089d68d39110a91889d3a673043db63c4b
[wine/hacks.git] / dlls / mshtml / nsiface.idl
blob5953143fa908d6a46875865438fda14b2a7f0ede
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.1.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;
87 interface IMoniker;
90 object,
91 uuid(00000000-0000-0000-c000-000000000046),
92 local
94 interface nsISupports
96 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
97 nsrefcnt AddRef();
98 nsrefcnt Release();
101 /* Currently we don't need a full declaration of these interfaces */
102 typedef nsISupports nsISHistory;
103 typedef nsISupports nsIWidget;
104 typedef nsISupports nsIHttpHeaderVisitor;
105 typedef nsISupports nsIDOMBarProp;
106 typedef nsISupports nsIDOMWindowCollection;
107 typedef nsISupports nsIPrompt;
108 typedef nsISupports nsIAuthPrompt;
109 typedef nsISupports nsIDOMNamedNodeMap;
110 typedef nsISupports nsIDOMAttr;
111 typedef nsISupports nsIDOMDocumentType;
112 typedef nsISupports nsIDOMDOMImplementation;
113 typedef nsISupports nsIDOMCDATASection;
114 typedef nsISupports nsIDOMProcessingInstruction;
115 typedef nsISupports nsIDOMEntityReference;
116 typedef nsISupports nsIDOMHTMLFormElement;
117 typedef nsISupports nsIDOMHTMLOptionsCollection;
118 typedef nsISupports nsIWebProgressListener;
119 typedef nsISupports nsIDOMCSSValue;
120 typedef nsISupports nsIPrintSession;
121 typedef nsISupports nsIControllerCommandTable;
122 typedef nsISupports nsIPrincipal;
123 typedef nsISupports nsIAtom;
124 typedef nsISupports nsISupportsArray;
125 typedef nsISupports nsIContentFilter;
126 typedef nsISupports nsIDOMMediaList;
127 typedef nsISupports nsIDOMHTMLTableCaptionElement;
128 typedef nsISupports nsIDOMHTMLTableSectionElement;
131 object,
132 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
133 local
134 /* FROZEN */
136 interface nsIServiceManager : nsISupports
138 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
139 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
140 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
141 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
145 object,
146 uuid(00000001-0000-0000-c000-000000000046),
147 local
148 /* FROZEN */
150 interface nsIFactory : nsISupports
152 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
153 nsresult LockFactory(PRBool lock);
157 object,
158 uuid(db242e01-e4d9-11d2-9dde-000064657374),
159 local
160 /* FROZEN */
162 interface nsIObserver : nsISupports
164 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
168 object,
169 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
170 local
171 /* FROZEN */
173 interface nsIComponentManager : nsISupports
175 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
176 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
177 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
178 nsQIResult result);
179 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
180 nsIIDRef aIID, nsQIResult result);
184 object,
185 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
186 local
187 /* FROZEN */
189 interface nsIMemory : nsISupports
191 void *Alloc(/*size_t*/ int size);
192 void *Realloc(void *_ptr, /*size_t*/ int newSize);
193 void Free(void *_ptr);
194 nsresult HeapMinimize(PRBool immediate);
195 nsresult IsLowMemory(PRBool *_retval);
199 object,
200 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
201 local
202 /* FROZEN */
204 interface nsIWeakReference : nsISupports
206 nsresult QueryReferent(const nsIID *riid, void **result);
210 object,
211 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
212 local
213 /* FROZEN */
215 interface nsISupportsWeakReference : nsISupports
217 nsresult GetWeakReference(nsIWeakReference **_retval);
221 object,
222 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
223 local
224 /* FROZEN */
226 interface nsIInterfaceRequestor : nsISupports
228 nsresult GetInterface(const nsIID *riid, void **result);
232 object,
233 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
234 local
235 /* FROZEN */
237 interface nsISimpleEnumerator : nsISupports
239 nsresult HasMoreElements(PRBool *_retval);
240 nsresult GetNext(nsISupports **_retval);
244 object,
245 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
246 local
247 /* FROZEN */
249 interface nsIInputStream : nsISupports
251 nsresult Close();
252 nsresult Available(PRUint32 *_retval);
253 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
254 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
255 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
256 PRUint32 aCount, PRUint32 *aWriteCount),
257 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
258 nsresult IsNonBlocking(PRBool *_retval);
262 object,
263 uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53),
264 local
265 /* NOT_FROZEN */
267 interface nsIStringInputStream : nsIInputStream
269 nsresult SetData(const char *data, PRInt32 dataLen);
270 nsresult AdoptData(char *data, PRInt32 dataLen);
271 nsresult ShareData(const char *data, PRInt32 dataLen);
275 object,
276 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
277 local
278 /* FROZEN */
280 interface nsIURI : nsISupports
282 nsresult GetSpec(nsACString *aSpec);
283 nsresult SetSpec(const nsACString *aSpec);
284 nsresult GetPrePath(nsACString *aPrePath);
285 nsresult GetScheme(nsACString *aScheme);
286 nsresult SetScheme(const nsACString *aScheme);
287 nsresult GetUserPass(nsACString *aUserPass);
288 nsresult SetUserPass(const nsACString *aUserPass);
289 nsresult GetUsername(nsACString *aUsername);
290 nsresult SetUsername(const nsACString *aUsername);
291 nsresult GetPassword(nsACString *aPassword);
292 nsresult SetPassword(const nsACString *aPassword);
293 nsresult GetHostPort(nsACString *aHostPort);
294 nsresult SetHostPort(const nsACString *aHostPort);
295 nsresult GetHost(nsACString *aHost);
296 nsresult SetHost(const nsACString *aHost);
297 nsresult GetPort(PRInt32 *aPort);
298 nsresult SetPort(PRInt32 aPort);
299 nsresult GetPath(nsACString *aPath);
300 nsresult SetPath(const nsACString *aPath);
301 nsresult Equals(nsIURI *other, PRBool *_retval);
302 nsresult SchemeIs(const char *scheme, PRBool *_retval);
303 nsresult Clone(nsIURI **_retval);
304 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
305 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
306 nsresult GetAsciiHost(nsACString *aAsciiHost);
307 nsresult GetOriginCharset(nsACString *aOriginCharset);
311 object,
312 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
313 local
314 /* FROZEN */
316 interface nsIRequest : nsISupports
318 nsresult GetName(nsACString *aName);
319 nsresult IsPending(PRBool *_retval);
320 nsresult GetStatus(nsresult *aStatus);
321 nsresult Cancel(nsresult aStatus);
322 nsresult Suspend();
323 nsresult Resume();
324 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
325 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
326 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
327 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
331 object,
332 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
333 local
334 /* FROZEN */
336 interface nsIRequestObserver : nsISupports
338 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
339 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
343 object,
344 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
345 local
346 /* FROZEN */
348 interface nsIStreamListener : nsIRequestObserver
350 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
351 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
355 object,
356 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
357 local
358 /* FROZEN */
360 interface nsILoadGroup : nsIRequest
362 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
363 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
364 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
365 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
366 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
367 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
368 nsresult GetRequests(nsISimpleEnumerator **aRequests);
369 nsresult GetActiveCount(PRUint32 *aActiveCount);
370 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
371 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
375 object,
376 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
377 local
378 /* FROZEN */
380 interface nsIChannel : nsIRequest
382 nsresult GetOriginalURI(nsIURI **aOriginalURI);
383 nsresult SetOriginalURI(nsIURI *aOriginalURI);
384 nsresult GetURI(nsIURI **aURI);
385 nsresult GetOwner(nsISupports **aOwner);
386 nsresult SetOwner(nsISupports *aOwner);
387 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
388 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
389 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
390 nsresult GetContentType(nsACString *aContentType);
391 nsresult SetContentType(const nsACString *aContentType);
392 nsresult GetContentCharset(nsACString *aContentCharset);
393 nsresult SetContentCharset(const nsACString *aContentCharset);
394 nsresult GetContentLength(PRInt32 *aContentLength);
395 nsresult SetContentLength(PRInt32 aContentLength);
396 nsresult Open(nsIInputStream **_retval);
397 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
401 object,
402 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
403 local
404 /* FROZEN */
406 interface nsIHttpChannel : nsIChannel
408 nsresult GetRequestMethod(nsACString *aRequestMethod);
409 nsresult SetRequestMethod(const nsACString *aRequestMethod);
410 nsresult GetReferrer(nsIURI **aReferrer);
411 nsresult SetReferrer(nsIURI *aReferrer);
412 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
413 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
414 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
415 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
416 nsresult SetAllowPipelining(PRBool aAllowPipelining);
417 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
418 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
419 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
420 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
421 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
422 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
423 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
424 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
425 nsresult IsNoStoreResponse(PRBool *_retval);
426 nsresult IsNoCacheResponse(PRBool *_retval);
430 object,
431 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
432 local
433 /* FROZEN */
435 interface nsIUploadChannel : nsISupports
437 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
438 PRInt32 aContentLength);
439 nsresult GetUploadStream(nsIInputStream **aUploadStream);
443 object,
444 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
445 local
446 /* FROZEN */
448 interface nsIDOMCSSRule : nsISupports
450 nsresult GetType(PRUint16 *aType);
451 nsresult GetCssText(nsAString *aCssText);
452 nsresult SetCssText(const nsAString *aCssText);
453 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
454 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
458 object,
459 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
460 local
461 /* FROZEN */
463 interface nsIDOMCSSStyleDeclaration : nsISupports
465 nsresult GetCssText(nsAString *aCssText);
466 nsresult SetCssText(const nsAString *aCssText);
467 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
468 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
469 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
470 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
471 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
472 const nsAString *priority);
473 nsresult GetLength(PRUint32 *aLength);
474 nsresult Item(PRUint32 index, nsAString *_retval);
475 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
479 object,
480 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
481 local
482 /* FROZEN */
484 interface nsIDOMCSSRuleList : nsISupports
486 nsresult GetLength(PRUint32 *aLength);
487 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
491 object,
492 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
493 local
494 /* FROZEN */
496 interface nsIDOMStyleSheet : nsISupports
498 nsresult GetType(nsAString *aType);
499 nsresult GetDisabled(PRBool *aDisabled);
500 nsresult SetDisabled(PRBool aDisabled);
501 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
502 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
503 nsresult GetHref(nsAString *aHref);
504 nsresult GetTitle(nsAString *aTitle);
505 nsresult GetMedia(nsIDOMMediaList **aMedia);
509 object,
510 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
511 local
512 /* FROZEN */
514 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
516 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
517 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
518 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
519 nsresult DeleteRule(PRUint32 index);
523 object,
524 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
525 local
526 /* FROZEN */
528 interface nsIDOMStyleSheetList : nsISupports
530 nsresult GetLength(PRUint32 *aLength);
531 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
535 object,
536 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
537 local
538 /* FROZEN */
540 interface nsIDOMNodeList : nsISupports
542 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
543 nsresult GetLength(PRUint32 *aLength);
547 object,
548 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
549 local
550 /* FROZEN */
552 interface nsIDOMNode : nsISupports
554 enum NSNODETYPE {
555 ELEMENT_NODE = 1,
556 ATTRIBUTE_NODE = 2,
557 TEXT_NODE = 3,
558 CDATA_SELECTION_NODE = 4,
559 ENTITY_REFERENCE_NODE = 5,
560 ENTITY_NODE = 6,
561 PROCESSING_INSTRUCTION_NODE = 7,
562 COMMENT_NODE = 8,
563 DOCUMENT_NODE = 9,
564 DOCUMENT_TYPE_NODE = 10,
565 DOCUMENT_FRAGMENT_NODE = 11,
566 NOTATION_NODE = 12
569 nsresult GetNodeName(nsAString *aNodeName);
570 nsresult GetNodeValue(nsAString *aNodeValue);
571 nsresult SetNodeValue(const nsAString *aNodeValue);
572 nsresult GetNodeType(PRUint16 *aNodeType);
573 nsresult GetParentNode(nsIDOMNode **aParentNode);
574 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
575 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
576 nsresult GetLastChild(nsIDOMNode **aLastChild);
577 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
578 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
579 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
580 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
581 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
582 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
583 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
584 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
585 nsresult HasChildNodes(PRBool *_retval);
586 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
587 nsresult Normalize();
588 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
589 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
590 nsresult GetPrefix(nsAString *aPrefix);
591 nsresult SetPrefix(const nsAString *aPrefix);
592 nsresult GetLocalName(nsAString *aLocalName);
593 nsresult HasAttributes(PRBool *_retval);
597 object,
598 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
599 local
600 /* FROZEN */
602 interface nsIDOMElement : nsIDOMNode
604 nsresult GetTagName(nsAString *aTagName);
605 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
606 nsresult SetAttribute(const nsAString *name, const nsAString *value);
607 nsresult RemoveAttribute(const nsAString *name);
608 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
609 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
610 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
611 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
612 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
613 nsAString *_retval);
614 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
615 const nsAString *value);
616 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
617 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
618 nsIDOMAttr **_retval);
619 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
620 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
621 nsIDOMNodeList **_retval);
622 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
623 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
624 PRBool *_retval);
628 object,
629 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
630 local
631 /* FROZEN */
633 interface nsIDOMElementCSSInlineStyle : nsISupports
635 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
638 cpp_quote("#undef GetClassName")
641 object,
642 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
643 local
644 /* FROZEN */
646 interface nsIDOMHTMLElement : nsIDOMElement
648 nsresult GetId(nsAString *aId);
649 nsresult SetId(const nsAString *aId);
650 nsresult GetTitle(nsAString *aTitle);
651 nsresult SetTitle(const nsAString *aTitle);
652 nsresult GetLang(nsAString *aLang);
653 nsresult SetLang(const nsAString *aLang);
654 nsresult GetDir(nsAString *aDir);
655 nsresult SetDir(const nsAString *aDir);
656 nsresult GetClassName(nsAString *aClassName);
657 nsresult SetClassName(const nsAString *aClassName);
661 object,
662 uuid(da83b2ec-8264-4410-8496-ada3acd2ae42),
663 local
664 /* NOT_FROZEN */
666 interface nsIDOMNSHTMLElement : nsISupports
668 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
669 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
670 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
671 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
672 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
673 nsresult GetInnerHTML(nsAString *aInnerHTML);
674 nsresult SetInnerHTML(const nsAString *aInnerHTML);
675 nsresult GetScrollTop(PRInt32 *aScrollTop);
676 nsresult SetScrollTop(PRInt32 aScrollTop);
677 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
678 nsresult SetScrollLeft(PRInt32 aScrollLeft);
679 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
680 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
681 nsresult GetClientHeight(PRInt32 *aClientHeight);
682 nsresult GetClientWidth(PRInt32 *aClientWidth);
683 nsresult GetTabIndex(PRInt32 *aTabIndex);
684 nsresult SetTabIndex(PRInt32 aTabIndex);
685 nsresult blur();
686 nsresult focus();
687 nsresult ScrollIntoView(PRBool top);
691 object,
692 uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
693 local
694 /* FROZEN */
696 interface nsIDOMHTMLCollection : nsISupports
698 nsresult GetLength(PRUint32 *aLength);
699 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
700 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
704 object,
705 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
706 local
707 /* FROZEN */
709 interface nsIDOMCharacterData : nsIDOMNode
711 nsresult GetData(nsAString *aData);
712 nsresult SetData(const nsAString *aData);
713 nsresult GetLength(PRUint32 *aLength);
714 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
715 nsresult AppendData(const nsAString *arg);
716 nsresult InsertData(PRUint32 offset, const nsAString *arg);
717 nsresult DeleteData(PRUint32 offset, PRUint32 count);
718 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
722 object,
723 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
724 local
725 /* FROZEN */
727 interface nsIDOMText : nsIDOMCharacterData
729 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
733 object,
734 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
735 local
736 /* FROZEN */
738 interface nsIDOMComment : nsIDOMCharacterData
743 object,
744 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
745 local
746 /* FROZEN */
748 interface nsIDOMDocumentFragment : nsIDOMNode
753 object,
754 uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
755 local
756 /* FROZEN */
758 interface nsIDOMAbstractView : nsISupports
760 nsresult GetDocument(nsIDOMDocumentView **aDocument);
764 object,
765 uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
766 local
767 /* NOT_FROZEN */
769 interface nsIDOMViewCSS : nsIDOMAbstractView
771 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
775 object,
776 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
777 local
778 /* FROZEN */
780 interface nsIDOMDocument : nsIDOMNode
782 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
783 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
784 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
785 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
786 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
787 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
788 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
789 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
790 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
791 nsIDOMProcessingInstruction **_retval);
792 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
793 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
794 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
795 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
796 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
797 nsIDOMElement **_retval);
798 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
799 nsIDOMAttr **_retval);
800 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
801 nsIDOMNodeList **_retval);
802 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
806 object,
807 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
808 local
809 /* FROZEN */
811 interface nsIDOMHTMLDocument : nsIDOMDocument
813 nsresult GetTitle(nsAString *aTitle);
814 nsresult SetTitle(const nsAString *aTitle);
815 nsresult GetReferrer(nsAString *aReferrer);
816 nsresult GetDomain(nsAString *aDomain);
817 nsresult GetURL(nsAString *aURL);
818 nsresult GetBody(nsIDOMHTMLElement **aBody);
819 nsresult SetBody(nsIDOMHTMLElement *aBody);
820 nsresult GetImages(nsIDOMHTMLCollection **aImages);
821 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
822 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
823 nsresult GetForms(nsIDOMHTMLCollection **aForms);
824 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
825 nsresult GetCookie(nsAString *aCookie);
826 nsresult SetCookie(const nsAString *aCookie);
827 nsresult Open();
828 nsresult Close();
829 nsresult Write(const nsAString *text);
830 nsresult Writeln(const nsAString *text);
831 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
835 object,
836 uuid(79beb289-3644-4b54-9432-9fb993945629),
837 local
838 /* NOT_FROZEN */
840 interface nsIDOMNSHTMLDocument : nsISupports
842 nsresult GetWidth(PRInt32 *aWidth);
843 nsresult GetHeight(PRInt32 *aHeight);
844 nsresult GetAlinkColor(nsAString *aAlinkColor);
845 nsresult SetAlinkColor(const nsAString *aAlinkColor);
846 nsresult GetLinkColor(nsAString *aLinkColor);
847 nsresult SetLinkColor(const nsAString *aLinkColor);
848 nsresult GetVlinkColor(nsAString *aVlinkColor);
849 nsresult SetVlinkColor(const nsAString *aVlinkColor);
850 nsresult GetBgColor(nsAString *aBgColor);
851 nsresult SetBgColor(const nsAString *aBgColor);
852 nsresult GetFgColor(nsAString *aFgColor);
853 nsresult SetFgColor(const nsAString *aFgColor);
854 nsresult GetDomain(nsAString *aDomain);
855 nsresult SetDomain(const nsAString *aDomain);
856 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
857 nsresult GetSelection(nsAString *_retval);
858 nsresult Open(nsIDOMDocument **_retval);
859 nsresult Write();
860 nsresult Writeln();
861 nsresult Clear();
862 nsresult CaptureEvents(PRInt32 eventFlags);
863 nsresult ReleaseEvents(PRInt32 eventFlags);
864 nsresult RouteEvent(nsIDOMEvent *evt);
865 nsresult GetCompatMode(nsAString *aCompatMode);
866 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
867 nsresult GetDesignMode(nsAString *aDesignMode);
868 nsresult SetDesignMode(const nsAString *aDesignMode);
869 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
870 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
871 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
872 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
873 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
874 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
875 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
876 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
880 object,
881 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
882 local
883 /* FROZEN */
885 interface nsIDOMDocumentStyle : nsISupports
887 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
891 object,
892 uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
893 local
894 /* FROZEN */
896 interface nsIDOMDocumentView : nsISupports
898 nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
902 object,
903 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
904 local
905 /* FROZEN */
907 interface nsIDOMRange : nsISupports
909 enum {
910 NS_START_TO_START,
911 NS_START_TO_END,
912 NS_END_TO_END,
913 NS_END_TO_START
916 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
917 nsresult GetStartOffset(PRInt32 *aStartOffset);
918 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
919 nsresult GetEndOffset(PRInt32 *aEndOffset);
920 nsresult GetCollapsed(PRBool *aCollapsed);
921 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
922 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
923 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
924 nsresult SetStartBefore(nsIDOMNode *refNode);
925 nsresult SetStartAfter(nsIDOMNode *refNode);
926 nsresult SetEndBefore(nsIDOMNode *refNode);
927 nsresult SetEndAfter(nsIDOMNode *refNode);
928 nsresult Collapse(PRBool toStart);
929 nsresult SelectNode(nsIDOMNode *refNode);
930 nsresult SelectNodeContents(nsIDOMNode *refNode);
931 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
932 nsresult DeleteContents();
933 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
934 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
935 nsresult InsertNode(nsIDOMNode *newNode);
936 nsresult SurroundContents(nsIDOMNode *newParent);
937 nsresult CloneRange(nsIDOMRange **_retval);
938 nsresult ToString(nsAString *_retval);
939 nsresult Detach();
943 object,
944 uuid(a6cf90f2-15b3-11d2-932e-00805f8add32),
945 local
947 interface nsIDOMNSRange : nsISupports
949 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
950 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
951 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
952 nsresult IntersectsNode([in] nsIDOMNode *n, [out] PRBool *_retval);
953 nsresult CompareNode([in] nsIDOMNode *n, [out] PRUint16 *_retval);
954 nsresult nSDetach();
959 object,
960 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
961 local
962 /* FROZEN */
964 interface nsIDOMDocumentRange : nsISupports
966 nsresult CreateRange(nsIDOMRange **_retval);
970 object,
971 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
972 local
973 /* FROZEN */
975 interface nsISelection : nsISupports
977 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
978 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
979 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
980 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
981 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
982 nsresult GetRangeCount(PRInt32 *aRangeCount);
983 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
984 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
985 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
986 nsresult CollapseToStart();
987 nsresult CollapseToEnd();
988 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
989 nsresult SelectAllChildren(nsIDOMNode *parentNode);
990 nsresult AddRange(nsIDOMRange *range);
991 nsresult RemoveRange(nsIDOMRange *range);
992 nsresult RemoveAllRanges();
993 nsresult DeleteFromDocument();
994 nsresult SelectionLanguageChange(PRBool langRTL);
995 nsresult ToString(PRUnichar **_retval);
999 object,
1000 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1001 local
1002 /* FROZEN */
1004 interface nsIDOMWindow : nsISupports
1006 nsresult GetDocument(nsIDOMDocument **aDocument);
1007 nsresult GetParent(nsIDOMWindow **aParent);
1008 nsresult GetTop(nsIDOMWindow **aTop);
1009 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1010 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1011 nsresult GetName(nsAString *aName);
1012 nsresult SetName(const nsAString *aName);
1013 nsresult GetTextZoom(float *aTextZoom);
1014 nsresult SetTextZoom(float aTextZoom);
1015 nsresult GetScrollX(PRInt32 *aScrollX);
1016 nsresult GetScrollY(PRInt32 *aScrollY);
1017 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1018 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1019 nsresult GetSelection(nsISelection **_retval);
1020 nsresult ScrollByLines(PRInt32 numLines);
1021 nsresult ScrollByPages(PRInt32 numPages);
1022 nsresult SizeToContent();
1026 object,
1027 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1028 local
1029 /* FROZEN */
1031 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1033 nsresult GetALink(nsAString *aALink);
1034 nsresult SetALink(const nsAString *aALink);
1035 nsresult GetBackground(nsAString *aBackground);
1036 nsresult SetBackground(const nsAString *aBackground);
1037 nsresult GetBgColor(nsAString *aBgColor);
1038 nsresult SetBgColor(const nsAString *aBgColor);
1039 nsresult GetLink(nsAString *aLink);
1040 nsresult SetLink(const nsAString *aLink);
1041 nsresult GetText(nsAString *aText);
1042 nsresult SetText(const nsAString *aText);
1043 nsresult GetVLink(nsAString *aVLink);
1044 nsresult SetVLink(const nsAString *aVLink);
1048 object,
1049 uuid(a6cf9093-15b3-11d2-932e-00805f8add32),
1050 local
1051 /* FROZEN */
1053 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1055 nsresult GetDefaultValue(nsAString *aDefaultValue);
1056 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1057 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1058 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1059 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1060 nsresult GetAccept(nsAString *aAccept);
1061 nsresult SetAccept(const nsAString *aAccept);
1062 nsresult GetAccessKey(nsAString *aAccessKey);
1063 nsresult SetAccessKey(const nsAString *aAccessKey);
1064 nsresult GetAlign(nsAString *aAlign);
1065 nsresult SetAlign(const nsAString *aAlign);
1066 nsresult GetAlt(nsAString *aAlt);
1067 nsresult SetAlt(const nsAString *aAlt);
1068 nsresult GetChecked(PRBool *aChecked);
1069 nsresult SetChecked(PRBool aChecked);
1070 nsresult GetDisabled(PRBool *aDisabled);
1071 nsresult SetDisabled(PRBool aDisabled);
1072 nsresult GetMaxLength(PRInt32 *aMaxLength);
1073 nsresult SetMaxLength(PRInt32 aMaxLength);
1074 nsresult GetName(nsAString *aName);
1075 nsresult SetName(const nsAString *aName);
1076 nsresult GetReadOnly(PRBool *aReadOnly);
1077 nsresult SetReadOnly(PRBool aReadOnly);
1078 nsresult GetSize(PRUint32 *aSize);
1079 nsresult SetSize(PRUint32 aSize);
1080 nsresult GetSrc(nsAString *aSrc);
1081 nsresult SetSrc(const nsAString *aSrc);
1082 nsresult GetTabIndex(PRInt32 *aTabIndex);
1083 nsresult SetTabIndex(PRInt32 aTabIndex);
1084 nsresult GetType(nsAString *aType);
1085 nsresult SetType(const nsAString *aType);
1086 nsresult GetUseMap(nsAString *aUseMap);
1087 nsresult SetUseMap(const nsAString *aUseMap);
1088 nsresult GetValue(nsAString *aValue);
1089 nsresult SetValue(const nsAString *aValue);
1090 nsresult Blur();
1091 nsresult Focus();
1092 nsresult Select();
1093 nsresult Click();
1097 object,
1098 uuid(a6cf9092-15b3-11d2-932e-00805f8add32),
1099 local
1100 /* FROZEN */
1102 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1104 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1105 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1106 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1107 nsresult GetText(nsAString *aText);
1108 nsresult GetIndex(PRInt32 *aIndex);
1109 nsresult GetDisabled(PRBool *aDisabled);
1110 nsresult SetDisabled(PRBool aDisabled);
1111 nsresult GetLabel(nsAString *aLabel);
1112 nsresult SetLabel(const nsAString *aLabel);
1113 nsresult GetSelected(PRBool *aSelected);
1114 nsresult SetSelected(PRBool aSelected);
1115 nsresult GetValue(nsAString *aValue);
1116 nsresult SetValue(const nsAString *aValue);
1120 object,
1121 uuid(a6cf9090-15b3-11d2-932e-00805f8add32),
1122 local
1123 /* FROZEN */
1125 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1127 nsresult GetType(nsAString *aType);
1128 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1129 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1130 nsresult GetValue(nsAString *aValue);
1131 nsresult SetValue(const nsAString *aValue);
1132 nsresult GetLength(PRUint32 *aLength);
1133 nsresult SetLength(PRUint32 aLength);
1134 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1135 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1136 nsresult GetDisabled(PRBool *aDisabled);
1137 nsresult SetDisabled(PRBool aDisabled);
1138 nsresult GetMultiple(PRBool *aMultiple);
1139 nsresult SetMultiple(PRBool aMultiple);
1140 nsresult GetName(nsAString *aName);
1141 nsresult SetName(const nsAString *aName);
1142 nsresult GetSize(PRInt32 *aSize);
1143 nsresult SetSize(PRInt32 aSize);
1144 nsresult GetTabIndex(PRInt32 *aTabIndex);
1145 nsresult SetTabIndex(PRInt32 aTabIndex);
1146 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1147 nsresult Remove(PRInt32 index);
1148 nsresult Blur();
1149 nsresult Focus();
1153 object,
1154 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1155 local
1156 /* FROZEN */
1158 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1160 nsresult GetDefaultValue(nsAString *aDefaultValue);
1161 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1162 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1163 nsresult GetAccessKey(nsAString *aAccessKey);
1164 nsresult SetAccessKey(const nsAString *aAccessKey);
1165 nsresult GetCols(PRInt32 *aCols);
1166 nsresult SetCols(PRInt32 aCols);
1167 nsresult GetDisabled(PRBool *aDisabled);
1168 nsresult SetDisabled(PRBool aDisabled);
1169 nsresult GetName(nsAString *aName);
1170 nsresult SetName(const nsAString *aName);
1171 nsresult GetReadOnly(PRBool *aReadOnly);
1172 nsresult SetReadOnly(PRBool aReadOnly);
1173 nsresult GetRows(PRInt32 *aRows);
1174 nsresult SetRows(PRInt32 aRows);
1175 nsresult GetTabIndex(PRInt32 *aTabIndex);
1176 nsresult SetTabIndex(PRInt32 aTabIndex);
1177 nsresult GetType(nsAString *aType);
1178 nsresult GetValue(nsAString *aValue);
1179 nsresult SetValue(const nsAString *aValue);
1180 nsresult Blur();
1181 nsresult Focus();
1182 nsresult Select();
1186 object,
1187 uuid(a6cf90b1-15b3-11d2-932e-00805f8add32),
1188 local
1189 /* FROZEN */
1191 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1193 nsresult GetText(nsAString *aText);
1194 nsresult SetText(const nsAString *aText);
1195 nsresult GetHtmlFor(nsAString *aHtmlFor);
1196 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1197 nsresult GetEvent(nsAString *aEvent);
1198 nsresult SetEvent(const nsAString *aEvent);
1199 nsresult GetCharset(nsAString *aCharset);
1200 nsresult SetCharset(const nsAString *aCharset);
1201 nsresult GetDefer(PRBool *aDefer);
1202 nsresult SetDefer(PRBool aDefer);
1203 nsresult GetSrc(nsAString *aSrc);
1204 nsresult SetSrc(const nsAString *aSrc);
1205 nsresult GetType(nsAString *aType);
1206 nsresult SetType(const nsAString *aType);
1210 object,
1211 uuid(a6cf90ab-15b3-11d2-932e-00805f8add32),
1212 local
1213 /* FROZEN */
1215 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1217 nsresult GetName(nsAString *aName);
1218 nsresult SetName(const nsAString *aName);
1219 nsresult GetAlign(nsAString *aAlign);
1220 nsresult SetAlign(const nsAString *aAlign);
1221 nsresult GetAlt(nsAString *aAlt);
1222 nsresult SetAlt(const nsAString *aAlt);
1223 nsresult GetBorder(nsAString *aBorder);
1224 nsresult SetBorder(const nsAString *aBorder);
1225 nsresult GetHeight(PRInt32 *aHeight);
1226 nsresult SetHeight(PRInt32 aHeight);
1227 nsresult GetHspace(PRInt32 *aHspace);
1228 nsresult SetHspace(PRInt32 aHspace);
1229 nsresult GetIsMap(PRBool *aIsMap);
1230 nsresult SetIsMap(PRBool aIsMap);
1231 nsresult GetLongDesc(nsAString *aLongDesc);
1232 nsresult SetLongDesc(const nsAString *aLongDesc);
1233 nsresult GetSrc(nsAString *aSrc);
1234 nsresult SetSrc(const nsAString *aSrc);
1235 nsresult GetUseMap(nsAString *aUseMap);
1236 nsresult SetUseMap(const nsAString *aUseMap);
1237 nsresult GetVspace(PRInt32 *aVspace);
1238 nsresult SetVspace(PRInt32 aVspace);
1239 nsresult GetWidth(PRInt32 *aWidth);
1240 nsresult SetWidth(PRInt32 aWidth);
1244 object,
1245 uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1246 local
1247 /* FROZEN */
1249 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1251 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1252 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1253 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1254 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1255 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1256 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1257 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1258 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1259 nsresult GetAlign(nsAString *aAlign);
1260 nsresult SetAlign(const nsAString *aAlign);
1261 nsresult GetBgColor(nsAString *aBgColor);
1262 nsresult SetBgColor(const nsAString *aBgColor);
1263 nsresult GetBorder(nsAString *aBorder);
1264 nsresult SetBorder(const nsAString *aBorder);
1265 nsresult GetCellPadding(nsAString *aCellPadding);
1266 nsresult SetCellPadding(const nsAString *aCellPadding);
1267 nsresult GetCellSpacing(nsAString *aCellSpacing);
1268 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1269 nsresult GetFrame(nsAString *aFrame);
1270 nsresult SetFrame(const nsAString *aFrame);
1271 nsresult GetRules(nsAString *aRules);
1272 nsresult SetRules(const nsAString *aRules);
1273 nsresult GetSummary(nsAString *aSummary);
1274 nsresult SetSummary(const nsAString *aSummary);
1275 nsresult GetWidth(nsAString *aWidth);
1276 nsresult SetWidth(const nsAString *aWidth);
1277 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1278 nsresult DeleteTHead();
1279 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1280 nsresult DeleteTFoot();
1281 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1282 nsresult DeleteCaption();
1283 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1284 nsresult DeleteRow(PRInt32 index);
1288 object,
1289 uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1290 local
1291 /* FROZEN */
1293 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1295 nsresult GetRowIndex(PRInt32 *aRowIndex);
1296 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1297 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1298 nsresult GetAlign(nsAString *aAlign);
1299 nsresult SetAlign(const nsAString *aAlign);
1300 nsresult GetBgColor(nsAString *aBgColor);
1301 nsresult SetBgColor(const nsAString *aBgColor);
1302 nsresult GetCh(nsAString *aCh);
1303 nsresult SetCh(const nsAString *aCh);
1304 nsresult GetChOff(nsAString *aChOff);
1305 nsresult SetChOff(const nsAString *aChOff);
1306 nsresult GetVAlign(nsAString *aVAlign);
1307 nsresult SetVAlign(const nsAString *aVAlign);
1308 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1309 nsresult DeleteCell(PRInt32 index);
1313 object,
1314 uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1315 local
1316 /* FROZEN */
1318 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1320 nsresult GetAlign(nsAString *aAlign);
1321 nsresult SetAlign(const nsAString *aAlign);
1322 nsresult GetFrameBorder(nsAString *aFrameBorder);
1323 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1324 nsresult GetHeight(nsAString *aHeight);
1325 nsresult SetHeight(const nsAString *aHeight);
1326 nsresult GetLongDesc(nsAString *aLongDesc);
1327 nsresult SetLongDesc(const nsAString *aLongDesc);
1328 nsresult GetMarginHeight(nsAString *aMarginHeight);
1329 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1330 nsresult GetMarginWidth(nsAString *aMarginWidth);
1331 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1332 nsresult GetName(nsAString *aName);
1333 nsresult SetName(const nsAString *aName);
1334 nsresult GetScrolling(nsAString *aScrolling);
1335 nsresult SetScrolling(const nsAString *aScrolling);
1336 nsresult GetSrc(nsAString *aSrc);
1337 nsresult SetSrc(const nsAString *aSrc);
1338 nsresult GetWidth(nsAString *aWidth);
1339 nsresult SetWidth(const nsAString *aWidth);
1340 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1344 object,
1345 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1346 local
1347 /* FROZEN */
1349 interface nsIURIContentListener : nsISupports
1351 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1352 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1353 nsIStreamListener **aContentHandler, PRBool *_retval);
1354 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1355 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1356 char **aDesiredContentType, PRBool *_retval);
1357 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1358 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1359 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1360 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1364 object,
1365 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1366 local
1367 /* FROZEN */
1369 interface nsITooltipListener : nsISupports
1371 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1372 nsresult OnHideTooltip();
1376 object,
1377 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c),
1378 local
1379 /* FROZEN */
1381 interface nsIWebBrowser : nsISupports
1383 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1384 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1385 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1386 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1387 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1388 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1389 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1392 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1393 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1396 object,
1397 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1398 local
1399 /* FROZEN */
1401 interface nsIWebBrowserSetup : nsISupports
1403 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1406 typedef void* nativeWindow;
1409 object,
1410 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1411 local
1412 /* NOT_FROZEN */
1414 interface nsIBaseWindow : nsISupports
1416 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1417 PRInt32 y, PRInt32 cx, PRInt32 cy);
1418 nsresult Create();
1419 nsresult Destroy();
1420 nsresult SetPosition(PRInt32 x, PRInt32 y);
1421 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1422 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1423 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1424 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1425 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1426 nsresult Repaint(PRBool force);
1427 nsresult GetParentWidget(nsIWidget **aParentWidget);
1428 nsresult SetParentWidget(nsIWidget *aParentWidget);
1429 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1430 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1431 nsresult GetVisibility(PRBool *aVisibility);
1432 nsresult SetVisibility(PRBool aVisibility);
1433 nsresult GetEnabled(PRBool *aEnabled);
1434 nsresult SetEnabled(PRBool aEnabled);
1435 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1436 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1437 nsresult GetMainWidget(nsIWidget **aMainWidget);
1438 nsresult SetFocus();
1439 nsresult GetTitle(PRUnichar **aTitle);
1440 nsresult SetTitle(const PRUnichar *aTitle);
1443 cpp_quote("#define LOAD_FLAGS_NONE 0")
1446 object,
1447 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1448 local
1449 /* NOT_FROZEN */
1451 interface nsIWebNavigation : nsISupports
1453 nsresult GetCanGoBack(PRBool *aCanGoBack);
1454 nsresult GetCanGoForward(PRBool *aCanGoForward);
1455 nsresult GoBack();
1456 nsresult GoForward();
1457 nsresult GotoIndex(PRInt32 index);
1458 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1459 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1460 nsresult Reload(PRUint32 aReloadFlags);
1461 nsresult Stop(PRUint32 aStopFlags);
1462 nsresult GetDocument(nsIDOMDocument **aDocument);
1463 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1464 nsresult GetReferringURI(nsIURI **aReferringURI);
1465 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1466 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1470 object,
1471 uuid(f1094df6-ce0e-42c9-9847-2f663172c38d),
1472 local
1473 /* NOT_FROZEN */
1475 interface nsIPrintSettings : nsISupports
1477 typedef struct { char dummy; } nsMargin;
1479 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1480 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1481 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1482 nsresult GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight);
1483 nsresult Clone(nsIPrintSettings **_retval);
1484 nsresult Assign(nsIPrintSettings *aPS);
1485 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1486 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1487 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1488 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1489 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1490 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1491 nsresult GetMarginTop(double *aMarginTop);
1492 nsresult SetMarginTop(double aMarginTop);
1493 nsresult GetMarginLeft(double *aMarginLeft);
1494 nsresult SetMarginLeft(double aMarginLeft);
1495 nsresult GetMarginBottom(double *aMarginBottom);
1496 nsresult SetMarginBottom(double aMarginBottom);
1497 nsresult GetMarginRight(double *aMarginRight);
1498 nsresult SetMarginRight(double aMarginRight);
1499 nsresult GetScaling(double *aScaling);
1500 nsresult SetScaling(double aScaling);
1501 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1502 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1503 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1504 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1505 nsresult GetPrintRange(PRInt16 *aPrintRange);
1506 nsresult SetPrintRange(PRInt16 aPrintRange);
1507 nsresult GetTitle(PRUnichar **aTitle);
1508 nsresult SetTitle(const PRUnichar *aTitle);
1509 nsresult GetDocURL(PRUnichar **aDocURL);
1510 nsresult SetDocURL(const PRUnichar *aDocURL);
1511 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1512 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1513 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1514 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1515 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1516 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1517 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1518 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1519 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1520 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1521 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1522 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1523 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1524 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1525 nsresult GetIsCancelled(PRBool *aIsCancelled);
1526 nsresult SetIsCancelled(PRBool aIsCancelled);
1527 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1528 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1529 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1530 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1531 nsresult GetPrintSilent(PRBool *aPrintSilent);
1532 nsresult SetPrintSilent(PRBool aPrintSilent);
1533 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1534 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1535 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1536 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1537 nsresult GetPaperName(PRUnichar **aPaperName);
1538 nsresult SetPaperName(const PRUnichar *aPaperName);
1539 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1540 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1541 nsresult GetPaperData(PRInt16 *aPaperData);
1542 nsresult SetPaperData(PRInt16 aPaperData);
1543 nsresult GetPaperWidth(double *aPaperWidth);
1544 nsresult SetPaperWidth(double aPaperWidth);
1545 nsresult GetPaperHeight(double *aPaperHeight);
1546 nsresult SetPaperHeight(double aPaperHeight);
1547 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1548 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1549 nsresult GetPlexName(PRUnichar **aPlexName);
1550 nsresult SetPlexName(const PRUnichar *aPlexName);
1551 nsresult GetColorspace(PRUnichar **aColorspace);
1552 nsresult SetColorspace(const PRUnichar *aColorspace);
1553 nsresult GetResolutionName(PRUnichar **aResolutionName);
1554 nsresult SetResolutionName(const PRUnichar aResolutionName);
1555 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1556 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1557 nsresult GetPrintReversed(PRBool *aPrintReversed);
1558 nsresult SetPrintReversed(PRBool aPrintReversed);
1559 nsresult GetPrintInColor(PRBool *aPrintInColor);
1560 nsresult SetPrintInColor(PRBool aPrintInColor);
1561 nsresult GetPaperSize(PRInt32 *aPaperSize);
1562 nsresult SetPaperSize(PRInt32 aPaperSize);
1563 nsresult GetOrientation(PRInt32 *aOrientation);
1564 nsresult SetOrientation(PRInt32 aOrientation);
1565 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1566 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1567 nsresult GetNumCopies(PRInt32 *aNumCopies);
1568 nsresult SetNumCopies(PRInt32 aNumCopies);
1569 nsresult GetPrinterName(PRUnichar **aPrinterName);
1570 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1571 nsresult GetPrintToFile(PRBool *aPrintToFile);
1572 nsresult SetPrintToFile(PRBool aPrintToFile);
1573 nsresult GetToFileName(PRUnichar **aToFileName);
1574 nsresult SetToFileName(const PRUnichar *aToFileName);
1575 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1576 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1577 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1578 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1579 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1580 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1581 nsresult SetMarginInTwips(nsMargin *aMargin);
1582 nsresult GetMarginInTwips(nsMargin *aMargin);
1586 object,
1587 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1588 local
1589 /* FROZEN */
1591 interface nsIWebBrowserPrint : nsISupports
1593 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1594 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1595 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1596 nsresult GetDoingPrint(PRBool *aDoingPrint);
1597 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1598 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1599 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1600 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1601 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1602 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1603 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1604 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1605 nsIWebProgressListener *aWPListener);
1606 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1607 nsresult Cancel();
1608 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1609 nsresult ExitPrintPreview();
1613 object,
1614 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1615 local
1616 /* NOT_FROZEN */
1618 interface nsIScrollable : nsISupports
1620 enum {
1621 ScrollOrientation_X = 1,
1622 ScrollOrientation_Y = 2
1625 enum {
1626 Scrollbar_Auto = 1,
1627 Scrollbar_Never = 2,
1628 Scrollbar_Always = 3
1631 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1632 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1633 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1634 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1635 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1636 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1637 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1638 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1639 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1640 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1644 object,
1645 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1646 local
1647 /* FROZEN */
1649 interface nsIFile : nsISupports
1651 nsresult Append(const nsAString *node);
1652 nsresult AppendNative(const nsAString *node);
1653 nsresult Normalize();
1654 nsresult Create(PRUint32 type, PRUint32 permission);
1655 nsresult GetLeafName(nsAString *aLeafName);
1656 nsresult SetLeafName(const nsAString *aLeafName);
1657 nsresult GetNativeLeafName(nsAString *aLeafName);
1658 nsresult SetNativeLeafName(const nsAString *aLeafName);
1659 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1660 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1661 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1662 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1663 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1664 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1665 nsresult Remove(PRBool recursive);
1666 nsresult GetPermissions(PRUint32 *aPermissions);
1667 nsresult SetPermissions(PRUint32 pPermissions);
1668 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1669 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1670 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1671 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1672 nsresult GetFileSize(PRInt64 *aFileSize);
1673 nsresult SetFileSize(PRInt64 aFileSize);
1674 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1675 nsresult GetTarget(nsAString *aTarget);
1676 nsresult GetNativeTarget(nsACString *aNativeTarget);
1677 nsresult GetPath(nsAString *aPath);
1678 nsresult GetNativePath(nsACString *aNativePath);
1679 nsresult Exists(PRBool *_retval);
1680 nsresult IsWritable(PRBool *_retval);
1681 nsresult IsReadable(PRBool *_retval);
1682 nsresult IsExecutable(PRBool *_retval);
1683 nsresult IsHidden(PRBool *_retval);
1684 nsresult IsDirectory(PRBool *_retval);
1685 nsresult IsFile(PRBool *_retval);
1686 nsresult IsSymlink(PRBool *_retval);
1687 nsresult IsSpecial(PRBool *_retval);
1688 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1689 nsresult Clone(nsIFile **_retval);
1690 nsresult Equals(nsIFile *inFile, PRBool *_retval);
1691 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1692 nsresult GetParent(nsIFile **aParent);
1693 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1697 object,
1698 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
1699 local
1700 /* FROZEN */
1702 interface nsIPrefBranch : nsISupports
1704 nsresult GetRoot(char **aRoot);
1705 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
1706 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
1707 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
1708 nsresult GetCharPref(const char *aPrefName, char **_retval);
1709 nsresult SetCharPref(const char *aPrefName, const char *aValue);
1710 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
1711 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
1712 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
1713 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
1714 nsresult ClearUserPref(const char *aPrefName);
1715 nsresult LockPref(const char *aPrefName);
1716 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
1717 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
1718 nsresult UnlockPref(const char *aPrefName);
1719 nsresult DeleteBranch(const char *aStartingAt);
1720 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
1721 nsresult ResetBranch(const char *aStartingAt);
1725 object,
1726 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
1727 local
1728 /* FROZEN */
1730 interface nsIProtocolHandler : nsISupports
1732 nsresult GetScheme(nsACString *aScheme);
1733 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1734 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1735 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1736 nsIURI *aBaseURI, nsIURI **_retval);
1737 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1738 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1742 object,
1743 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
1744 local
1745 /* NOT_FROZEN */
1747 interface nsIExternalProtocolHandler : nsIProtocolHandler
1749 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1753 object,
1754 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
1755 local
1756 /* FROZEN */
1758 interface nsIIOService : nsISupports
1760 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1761 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1762 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1763 nsIURI **_retval);
1764 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1765 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1766 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1767 nsIChannel **_retval);
1768 nsresult GetOffline(PRBool *aOffline);
1769 nsresult SetOffline(PRBool aOffline);
1770 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1771 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1775 object,
1776 uuid(f0c5dddb-4713-4603-af2d-bf671838996b),
1777 local,
1778 /* NOT_FROZEN */
1780 interface nsINetUtil : nsISupports
1782 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
1783 PRBool *aHadCharset, nsACString *aContentType);
1787 object,
1788 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
1789 local
1790 /* FROZEN */
1792 interface nsIWebBrowserFocus : nsISupports
1794 nsresult Activate();
1795 nsresult Deactivate();
1796 nsresult SetFocusAtFirstElement();
1797 nsresult SetFocusAtLastElement();
1798 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1799 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1800 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1801 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1805 object,
1806 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
1807 local
1808 /* FROZEN */
1810 interface nsIWebBrowserChrome : nsISupports
1812 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1813 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1814 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1815 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1816 nsresult SetChromeFlags(PRUint32 aChromeFlags);
1817 nsresult DestroyBrowserWindow();
1818 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1819 nsresult ShowAsModal();
1820 nsresult IsWindowModal(PRBool *_retval);
1821 nsresult ExitModalEventLoop(nsresult aStatus);
1825 object,
1826 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
1827 local
1828 /* FROZEN */
1830 interface nsIDOMEventListener : nsISupports
1832 nsresult HandleEvent(nsIDOMEvent *event);
1836 object,
1837 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
1838 local
1839 /* FROZEN */
1841 interface nsIDOMEventTarget : nsISupports
1843 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1844 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1845 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1849 object,
1850 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
1851 local
1852 /* FROZEN */
1854 interface nsIDOMEvent : nsISupports
1856 nsresult GetType(nsAString *aType);
1857 nsresult GetTarget(nsIDOMEventTarget **aTarget);
1858 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1859 nsresult GetEventPhase(PRUint16 *aEventPhase);
1860 nsresult GetBubbles(PRBool *aBubbles);
1861 nsresult GetCancelable(PRBool *aCancelable);
1862 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1863 nsresult StopPropagation();
1864 nsresult PreventDefault();
1865 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1868 cpp_quote("#define CONTEXT_NONE 0x00")
1869 cpp_quote("#define CONTEXT_LINK 0x01")
1870 cpp_quote("#define CONTEXT_IMAGE 0x02")
1871 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
1872 cpp_quote("#define CONTEXT_TEXT 0x08")
1873 cpp_quote("#define CONTEXT_INPUT 0x10")
1874 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
1877 object,
1878 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
1879 local
1880 /* FROZEN */
1882 interface nsIContextMenuListener : nsISupports
1884 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1888 object,
1889 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
1890 local
1891 /* FROZEN */
1893 interface nsIDOMUIEvent : nsIDOMEvent
1895 nsresult GetView(nsIDOMAbstractView **aView);
1896 nsresult GetDetail(PRInt32 *aDetail);
1897 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1898 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
1902 object,
1903 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
1904 local
1905 /* FROZEN */
1907 interface nsIDOMMouseEvent : nsIDOMUIEvent
1909 nsresult GetScreenX(PRInt32 *aScreenX);
1910 nsresult GetScreenY(PRInt32 *aScreenY);
1911 nsresult GetClientX(PRInt32 *aClientX);
1912 nsresult GetClientY(PRInt32 *aClientY);
1913 nsresult GetCtrlKey(PRBool *aCtrlKey);
1914 nsresult GetShiftKey(PRBool *aShiftKey);
1915 nsresult GetAltKey(PRBool *aAltKey);
1916 nsresult GetMetaKey(PRBool *aMetaKey);
1917 nsresult GetButton(PRUint16 *aButton);
1918 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1919 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1920 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1921 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1922 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1923 nsIDOMEventTarget *relatedTargetArg);
1927 object,
1928 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
1929 local
1930 /* NOT_FROZEN */
1932 interface nsIDOMKeyEvent : nsIDOMUIEvent
1934 nsresult GetCharCode(PRUint32 *aCharCode);
1935 nsresult GetKeyCode(PRUint32 *aKeyCode);
1936 nsresult GetAltKey(PRBool *aAltKey);
1937 nsresult GetCtrlKey(PRBool *aCtrlKey);
1938 nsresult GetShiftKey(PRBool *aShiftKey);
1939 nsresult GetMetaKey(PRBool *aMetaKey);
1940 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
1941 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
1942 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
1943 PRUint32 charCodeArg);
1947 object,
1948 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
1949 local
1950 /* FROZEN */
1952 interface nsIEmbeddingSiteWindow : nsISupports
1954 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1955 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1956 nsresult SetFocus();
1957 nsresult GetVisibility(PRBool *aVisibility);
1958 nsresult SetVisibility(PRBool aVisibility);
1959 nsresult GetTitle(PRUnichar **aTitle);
1960 nsresult SetTitle(const PRUnichar *aTitle);
1961 nsresult GetSiteWindow(void **aSiteWindow);
1965 object,
1966 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
1967 local
1968 /* FROZEN */
1970 interface nsIComponentRegistrar : nsISupports
1972 nsresult AutoRegister(nsIFile *aSpec);
1973 nsresult AutoUnregister(nsIFile *aSpec);
1974 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1975 const char *aContractID, nsIFactory *aFactory);
1976 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1977 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1978 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1979 const char *aType);
1980 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1981 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1982 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1983 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1984 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1985 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1986 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1990 object,
1991 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
1992 local
1993 /* FROZEN */
1995 interface nsIPromptService : nsISupports
1997 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1998 const PRUnichar *aText);
1999 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2000 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2001 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2002 const PRUnichar *aText, PRBool *_retval);
2003 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2004 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2005 PRBool *_retval);
2006 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2007 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2008 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2009 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2010 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2011 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2012 PRBool *aCheckState, PRBool *_retval);
2013 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2014 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2015 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2016 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2017 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2018 PRBool *aCheckState, PRBool *_retval);
2019 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2020 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2021 PRInt32 *aOutSelection, PRBool *_retval);
2025 object,
2026 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2027 local
2028 /* FROZEN */
2030 interface nsITooltipTextProvider : nsISupports
2032 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2036 object,
2037 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2038 local
2039 /* FROZEN */
2041 interface nsIProfile : nsISupports
2043 nsresult GetProfileCount(PRInt32 *aProfileCount);
2044 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2045 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2046 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
2047 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2048 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2049 nsresult CreateNewProfile(const PRUnichar *profileName,
2050 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2051 PRBool useExistingDir);
2052 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2053 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2054 nsresult CloneProfile(const PRUnichar *profileName);
2058 object,
2059 uuid(30465632-a777-44cc-90f9-8145475ef999),
2060 local
2061 /* FROZEN */
2063 interface nsIWindowCreator : nsISupports
2065 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2066 nsIWebBrowserChrome **_retval);
2070 object,
2071 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2072 local
2073 /* NOT_FROZEN */
2075 interface nsIWindowCreator2 : nsIWindowCreator
2077 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2078 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2079 nsIWebBrowserChrome **_retval);
2083 object,
2084 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2085 local
2086 /* FROZEN */
2088 interface nsIWindowWatcher : nsISupports
2090 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2091 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2092 nsresult RegisterNotification(nsIObserver *aObserver);
2093 nsresult UnregisterNotification(nsIObserver *aObserver);
2094 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2095 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2096 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2097 nsresult SetWindowCreator(nsIWindowCreator *creator);
2098 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2099 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2100 nsIDOMWindow **_retval);
2101 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2102 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2106 object,
2107 uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b),
2108 local
2109 /* NOT_FROZEN */
2111 interface nsIEditingSession : nsISupports
2113 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2114 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2115 PRBool doAfterUriLoad);
2116 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2117 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2118 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2119 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2120 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2124 object,
2125 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2126 local
2127 /* NOT_FROZEN */
2129 interface nsICommandParams : nsISupports
2131 nsresult GetValueType(const char *name, PRInt16 *_retval);
2132 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2133 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2134 nsresult GetDoubleValue(const char *name, double *_retval);
2135 nsresult GetStringValue(const char *name, nsAString *_retval);
2136 nsresult GetCStringValue(const char *name, char **_retval);
2137 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2138 nsresult SetBooleanValue(const char *name, PRBool value);
2139 nsresult SetLongValue(const char *name, PRInt32 value);
2140 nsresult SetDoubleValue(const char *name, double value);
2141 nsresult SetStringValue(const char *name, const nsAString *value);
2142 nsresult SetCStringValue(const char *name, const char *value);
2143 nsresult SetISupportsValue(const char *name, nsISupports *value);
2144 nsresult RemoveValue(const char *name);
2145 nsresult HasMoreElements(PRBool *_retval);
2146 nsresult First();
2147 nsresult GetNext(char **_retval);
2151 object,
2152 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2153 local
2154 /* NOT_FROZEN */
2156 interface nsICommandManager : nsISupports
2158 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2159 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2160 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2161 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2162 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2163 nsICommandParams *aCommandParams);
2164 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2165 nsIDOMWindow *aTargetWindow);
2169 object,
2170 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2171 local
2172 /* NOT_FROZEN */
2174 interface nsIControllerContext : nsISupports
2176 nsresult Init(nsIControllerCommandTable *aCommandTable);
2177 nsresult SetCommandContext(nsISupports *aCommandContext);
2181 object,
2182 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2183 local
2184 /* NOT_FROZEN */
2186 interface nsIController : nsISupports
2188 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2189 nsresult SupportsCommand(const char *command, PRBool *_retval);
2190 nsresult DoCommand(const char *command);
2191 nsresult OnEvent(const char *eventName);
2195 object,
2196 uuid(d650439a-ca29-410d-a906-b0557fb62fcd),
2197 local
2198 /* NOT_FROZEN */
2200 interface nsIContentSerializer : nsISupports
2202 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying);
2203 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2204 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2205 PRInt32 aEndOffset, nsAString *aStr);
2206 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2207 PRInt32 aEndOffset, nsAString *aStr);
2208 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2209 nsAString *aStr);
2210 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2211 nsresult AppendElementStart(nsIDOMElement *aElement, PRBool aHasChildren, nsAString *aStr);
2212 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2213 nsresult Flush(nsAString *aStr);
2214 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2218 object,
2219 uuid(D4882FFB-E927-408b-96BE-D4391B456FA9),
2220 local
2221 /* NOT_FROZEN */
2223 interface nsIEditor : nsISupports
2225 typedef void *nsIPresShellPtr;
2226 typedef void *nsIContentPtr;
2228 nsresult GetSelection([out] nsISelection *_retval);
2229 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2230 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2231 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2232 nsresult PostCreate();
2233 nsresult PreDestroy();
2234 nsresult GetFlags([out] PRUint32 *_retval);
2235 nsresult SetFlags([in] PRUint32 val);
2236 nsresult GetContentsMIMEType([out] char **_retval);
2237 nsresult SetContentsMIMEType([in] const char *val);
2238 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2239 nsresult GetDocument([out] nsIDOMDocument **_retval);
2240 nsresult GetRootElement([out] nsIDOMElement **_retval);
2241 nsresult GetSelectionController([out] nsISelectionController **_retval);
2242 nsresult DeleteSelection([in] PRInt16 action);
2243 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2244 nsresult GetDocumentModified([out] PRBool *_retval);
2245 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2246 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2247 nsresult ResetModificationCount();
2248 nsresult GetModificationCount([out] PRInt32 *_retval);
2249 nsresult IncrementModificationCount([in] long aModCount);
2250 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2251 nsresult DoTransaction([in] nsITransaction *txn);
2252 nsresult EnableUndo([in] PRBool enable);
2253 nsresult Undo([in] PRUint32 count);
2254 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2255 nsresult Redo([in] PRUint32 count);
2256 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2257 nsresult BeginTransaction();
2258 nsresult EndTransaction();
2259 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2260 nsresult EndPlaceHolderTransaction();
2261 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2262 nsresult SetShouldTxnSetSelection([in] PRBool should);
2263 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2264 nsresult Cut();
2265 nsresult CanCut([out] PRBool *_retval);
2266 nsresult Copy();
2267 nsresult CanCopy([out] PRBool *_retval);
2268 nsresult Paste([in] PRInt32 aSelectionType);
2269 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2270 nsresult SelectAll();
2271 nsresult BeginningOfDocument();
2272 nsresult EndOfDocument();
2273 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2274 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2275 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2276 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2277 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2278 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2279 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2280 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2281 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2282 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2283 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2284 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2285 nsresult DeleteNode([in] nsIDOMNode *child);
2286 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2287 nsresult SwitchTextDirection();
2288 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2289 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2290 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2291 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2292 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2293 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2294 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2295 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2296 nsresult DumpContentTree();
2297 nsresult DebugDumpContent();
2298 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2302 object,
2303 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2304 local
2305 /* NOT_FROZEN */
2307 interface nsIHTMLEditor : nsISupports
2309 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2310 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2311 nsresult RemoveAllDefaultProperties();
2312 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2313 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2314 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2315 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2316 nsresult RemoveAllInlineProperties();
2317 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2318 nsresult IncreaseFontSize();
2319 nsresult DecreaseFontSize();
2320 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2321 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2322 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2323 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2324 nsresult InsertHTML([in] nsAString *aInputString);
2325 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2326 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2327 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);
2328 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2329 nsresult SetDocumentTitle([in] nsAString *aTitle);
2330 nsresult UpdateBaseURL();
2331 nsresult SelectElement([in] nsIDOMElement *aElement);
2332 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2333 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2334 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2335 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2336 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2337 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2338 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2339 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2340 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2341 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2342 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2343 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2344 nsresult RemoveList([in] nsAString *aListType);
2345 nsresult Indent([in] nsAString *aIndent);
2346 nsresult Align([in] nsAString *aAlign);
2347 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2348 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2349 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2350 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2351 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2352 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2353 nsresult SetBackgroundColor([in] nsAString *aColor);
2354 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2355 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2356 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2357 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2358 nsresult SetIsCSSEnabled([in] PRBool prb);
2359 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2360 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2361 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2362 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2363 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2364 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2365 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2366 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2370 * NOTE:
2371 * This is a private Wine interface that is implemented by our implementation
2372 * of nsIURI to store its owner.
2375 object,
2376 uuid(5088272e-900b-11da-c687-000fea57f21a),
2377 local
2378 /* INTERNAL */
2380 interface nsIWineURI : nsIURI
2382 typedef struct NSContainer NSContainer;
2384 nsresult GetNSContainer(NSContainer **aNSContainer);
2385 nsresult SetNSContainer(NSContainer *aNSContainer);
2386 nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
2387 nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
2388 nsresult GetWineURL(LPCWSTR *aURL);
2389 nsresult SetWineURL(LPCWSTR aURL);