mscoree: COM cleanup in metahost.c.
[wine.git] / dlls / mshtml / nsiface.idl
blob7d8b5ce513eb01487fa86775d89025af02336bff
1 /*
2 * Copyright 2005-2007 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 /*
20 * NOTE:
21 * This file is not a typical idl file. Interfaces in this file are XPCOM
22 * interfaces (NOT MSCOM!), but we generate the header file with WIDL
23 * compatible with XPCOM, usable in C code.
26 cpp_quote("#define GECKO_VERSION \"1.1.0\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
29 import "wtypes.idl";
31 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
32 cpp_quote("#undef GetForm")
33 cpp_quote("#undef SetPort")
34 cpp_quote("#endif")
36 typedef HRESULT nsresult;
37 typedef ULONG nsrefcnt;
39 typedef IID nsID;
40 typedef IID nsIID;
41 typedef nsIID nsCID;
42 typedef REFIID nsIIDRef;
43 typedef nsIIDRef nsCIDRef;
45 typedef WCHAR PRUnichar;
46 typedef ULONG PRUint32;
47 typedef LONG PRInt32;
48 typedef WORD PRUint16;
49 typedef INT16 PRInt16;
50 typedef BYTE PRUint8;
51 typedef BOOL PRBool;
52 typedef LONGLONG PRInt64;
53 typedef ULONGLONG PRUint64;
54 typedef PRUint64 DOMTimeStamp;
55 typedef PRUint32 nsLoadFlags;
57 typedef struct {
58 void *v;
59 void *d1;
60 PRUint32 d2;
61 void *d3;
62 } nsCStringContainer;
64 typedef struct {
65 void *v;
66 void *d1;
67 PRUint32 d2;
68 void *d3;
69 } nsStringContainer;
71 typedef nsCStringContainer nsACString;
72 typedef nsStringContainer nsAString;
74 interface nsIWebBrowserChrome;
75 interface nsILoadGroup;
76 interface nsIDOMNode;
77 interface nsIDOMDocument;
78 interface nsIDOMEvent;
79 interface nsIEditor;
80 interface nsISelectionController;
81 interface nsITransactionManager;
82 interface nsITransaction;
83 interface nsIInlineSpellChecker;
84 interface nsIOutputStream;
85 interface nsIEditorObserver;
86 interface nsIEditActionListener;
87 interface nsIDocumentStateListener;
88 interface nsIDOMCSSStyleSheet;
89 interface nsIDOMDocumentView;
90 interface nsIDocumentObserver;
91 interface nsIDOMWindow;
92 interface nsIDOMElement;
94 interface IMoniker;
97 object,
98 uuid(00000000-0000-0000-c000-000000000046),
99 local
101 interface nsISupports
103 nsresult QueryInterface(nsIIDRef riid, void **result);
104 nsrefcnt AddRef();
105 nsrefcnt Release();
108 /* Currently we don't need a full declaration of these interfaces */
109 typedef nsISupports nsISHistory;
110 typedef nsISupports nsIWidget;
111 typedef nsISupports nsIDOMBarProp;
112 typedef nsISupports nsIPrompt;
113 typedef nsISupports nsIAuthPrompt;
114 typedef nsISupports nsIDOMNamedNodeMap;
115 typedef nsISupports nsIDOMDocumentType;
116 typedef nsISupports nsIDOMDOMImplementation;
117 typedef nsISupports nsIDOMCDATASection;
118 typedef nsISupports nsIDOMProcessingInstruction;
119 typedef nsISupports nsIDOMEntityReference;
120 typedef nsISupports nsIWebProgressListener;
121 typedef nsISupports nsIDOMCSSValue;
122 typedef nsISupports nsIPrintSession;
123 typedef nsISupports nsIControllerCommandTable;
124 typedef nsISupports nsIPrincipal;
125 typedef nsISupports nsIAtom;
126 typedef nsISupports nsISupportsArray;
127 typedef nsISupports nsIContentFilter;
128 typedef nsISupports nsIDOMMediaList;
129 typedef nsISupports nsIDOMHTMLTableCaptionElement;
130 typedef nsISupports nsIDOMHTMLTableSectionElement;
131 typedef nsISupports nsIDOMClientRectList;
132 typedef nsISupports nsIDOMLocation;
133 typedef nsISupports nsINode;
134 typedef nsISupports nsIStyleSheet;
135 typedef nsISupports nsIStyleRule;
136 typedef nsISupports nsIVariant;
137 typedef nsISupports nsIDOMUserDataHandler;
138 typedef nsISupports nsIDocShellLoadInfo;
139 typedef nsISupports nsISHEntry;
140 typedef nsISupports nsIPresShell;
141 typedef nsISupports nsIContentViewer;
142 typedef nsISupports nsIDocumentCharsetInfo;
143 typedef nsISupports nsILayoutHistoryState;
144 typedef nsISupports nsISecureBrowserUI;
145 typedef nsISupports nsIDOMStorage;
146 typedef nsISupports nsIDOMDOMTokenList;
147 typedef nsISupports nsITransferable;
148 typedef nsISupports nsIDOMHTMLHeadElement;
149 typedef nsISupports nsIDOMFileList;
150 typedef nsISupports nsIControllers;
151 typedef nsISupports nsIPluginInstanceOwner;
152 typedef nsISupports nsIPluginStreamListener;
155 object,
156 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
157 local
159 interface nsIServiceManager : nsISupports
161 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
162 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
163 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
164 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
168 object,
169 uuid(00000001-0000-0000-c000-000000000046),
170 local
172 interface nsIFactory : nsISupports
174 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
175 nsresult LockFactory(PRBool lock);
179 object,
180 uuid(db242e01-e4d9-11d2-9dde-000064657374),
181 local
183 interface nsIObserver : nsISupports
185 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
189 object,
190 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
191 local
193 interface nsIComponentManager : nsISupports
195 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
196 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
197 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
198 void **result);
199 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
200 nsIIDRef aIID, void **result);
204 object,
205 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
206 local
208 interface nsIMemory : nsISupports
210 void *Alloc(/*size_t*/ int size);
211 void *Realloc(void *_ptr, /*size_t*/ int newSize);
212 void Free(void *_ptr);
213 nsresult HeapMinimize(PRBool immediate);
214 nsresult IsLowMemory(PRBool *_retval);
218 object,
219 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
220 local
222 interface nsIWeakReference : nsISupports
224 nsresult QueryReferent(const nsIID *riid, void **result);
228 object,
229 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
230 local
232 interface nsISupportsWeakReference : nsISupports
234 nsresult GetWeakReference(nsIWeakReference **_retval);
238 object,
239 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
240 local
242 interface nsIInterfaceRequestor : nsISupports
244 nsresult GetInterface(const nsIID *riid, void **result);
248 object,
249 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
250 local
252 interface nsIRunnable : nsISupports
254 nsresult Run();
258 object,
259 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
260 local
262 interface nsISimpleEnumerator : nsISupports
264 nsresult HasMoreElements(PRBool *_retval);
265 nsresult GetNext(nsISupports **_retval);
269 object,
270 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
271 local
273 interface nsIInputStream : nsISupports
275 nsresult Close();
276 nsresult Available(PRUint32 *_retval);
277 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
278 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
279 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
280 PRUint32 aCount, PRUint32 *aWriteCount),
281 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
282 nsresult IsNonBlocking(PRBool *_retval);
286 object,
287 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
288 local
290 interface nsIURI : nsISupports
292 nsresult GetSpec(nsACString *aSpec);
293 nsresult SetSpec(const nsACString *aSpec);
294 nsresult GetPrePath(nsACString *aPrePath);
295 nsresult GetScheme(nsACString *aScheme);
296 nsresult SetScheme(const nsACString *aScheme);
297 nsresult GetUserPass(nsACString *aUserPass);
298 nsresult SetUserPass(const nsACString *aUserPass);
299 nsresult GetUsername(nsACString *aUsername);
300 nsresult SetUsername(const nsACString *aUsername);
301 nsresult GetPassword(nsACString *aPassword);
302 nsresult SetPassword(const nsACString *aPassword);
303 nsresult GetHostPort(nsACString *aHostPort);
304 nsresult SetHostPort(const nsACString *aHostPort);
305 nsresult GetHost(nsACString *aHost);
306 nsresult SetHost(const nsACString *aHost);
307 nsresult GetPort(PRInt32 *aPort);
308 nsresult SetPort(PRInt32 aPort);
309 nsresult GetPath(nsACString *aPath);
310 nsresult SetPath(const nsACString *aPath);
311 nsresult Equals(nsIURI *other, PRBool *_retval);
312 nsresult SchemeIs(const char *scheme, PRBool *_retval);
313 nsresult Clone(nsIURI **_retval);
314 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
315 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
316 nsresult GetAsciiHost(nsACString *aAsciiHost);
317 nsresult GetOriginCharset(nsACString *aOriginCharset);
321 object,
322 uuid(d6116970-8034-11d3-9399-00104ba0fd40),
323 local
325 interface nsIURL : nsIURI
327 nsresult GetFilePath(nsACString *aFilePath);
328 nsresult SetFilePath(const nsACString *aFilePath);
329 nsresult GetParam(nsACString *aParam);
330 nsresult SetParam(const nsACString *aParam);
331 nsresult GetQuery(nsACString *aQuery);
332 nsresult SetQuery(const nsACString *aQuery);
333 nsresult GetRef(nsACString *aRef);
334 nsresult SetRef(const nsACString *aRef);
335 nsresult GetDirectory(nsACString *aDirectory);
336 nsresult SetDirectory(const nsACString *aDirectory);
337 nsresult GetFileName(nsACString *aFileName);
338 nsresult SetFileName(const nsACString *aFileName);
339 nsresult GetFileBaseName(nsACString *aFileBaseName);
340 nsresult SetFileBaseName(const nsACString *aFileBaseName);
341 nsresult GetFileExtension(nsACString *aFileExtension);
342 nsresult SetFileExtension(const nsACString *aFileExtension);
343 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
344 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
348 object,
349 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
350 local
352 interface nsIRequest : nsISupports
354 nsresult GetName(nsACString *aName);
355 nsresult IsPending(PRBool *_retval);
356 nsresult GetStatus(nsresult *aStatus);
357 nsresult Cancel(nsresult aStatus);
358 nsresult Suspend();
359 nsresult Resume();
360 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
361 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
362 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
363 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
367 object,
368 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
369 local
371 interface nsIRequestObserver : nsISupports
373 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
374 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
378 object,
379 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
380 local
382 interface nsIStreamListener : nsIRequestObserver
384 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
385 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
389 object,
390 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
391 local
393 interface nsILoadGroup : nsIRequest
395 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
396 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
397 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
398 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
399 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
400 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
401 nsresult GetRequests(nsISimpleEnumerator **aRequests);
402 nsresult GetActiveCount(PRUint32 *aActiveCount);
403 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
404 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
408 object,
409 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
410 local
412 interface nsIChannel : nsIRequest
414 nsresult GetOriginalURI(nsIURI **aOriginalURI);
415 nsresult SetOriginalURI(nsIURI *aOriginalURI);
416 nsresult GetURI(nsIURI **aURI);
417 nsresult GetOwner(nsISupports **aOwner);
418 nsresult SetOwner(nsISupports *aOwner);
419 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
420 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
421 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
422 nsresult GetContentType(nsACString *aContentType);
423 nsresult SetContentType(const nsACString *aContentType);
424 nsresult GetContentCharset(nsACString *aContentCharset);
425 nsresult SetContentCharset(const nsACString *aContentCharset);
426 nsresult GetContentLength(PRInt32 *aContentLength);
427 nsresult SetContentLength(PRInt32 aContentLength);
428 nsresult Open(nsIInputStream **_retval);
429 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
433 object,
434 uuid(0cf40717-d7c1-4a94-8c1e-d6c9734101bb),
435 local
437 interface nsIHttpHeaderVisitor : nsISupports
439 nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
443 object,
444 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
445 local
447 interface nsIHttpChannel : nsIChannel
449 nsresult GetRequestMethod(nsACString *aRequestMethod);
450 nsresult SetRequestMethod(const nsACString *aRequestMethod);
451 nsresult GetReferrer(nsIURI **aReferrer);
452 nsresult SetReferrer(nsIURI *aReferrer);
453 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
454 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
455 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
456 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
457 nsresult SetAllowPipelining(PRBool aAllowPipelining);
458 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
459 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
460 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
461 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
462 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
463 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
464 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
465 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
466 nsresult IsNoStoreResponse(PRBool *_retval);
467 nsresult IsNoCacheResponse(PRBool *_retval);
471 object,
472 uuid(91dbb42a-dffc-4f47-8b27-9579c0d92c3f),
473 local
475 interface nsIHttpChannelInternal : nsISupports
477 nsresult GetDocumentURI(nsIURI **aDocumentURI);
478 nsresult SetDocumentURI(nsIURI *aDocumentURI);
479 nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
480 nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
481 nsresult SetCookie(const char *aCookieHeader);
482 nsresult SetupFallbackChannel(const char *aFallbackKey);
483 nsresult GetForceAllowThirdPartyCookie(PRBool *aForceAllowThirdPartyCookie);
484 nsresult SetForceAllowThirdPartyCookie(PRBool aForceAllowThirdPartyCookie);
485 nsresult GetCanceled(PRBool *aCanceled);
489 object,
490 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
491 local
493 interface nsIUploadChannel : nsISupports
495 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
496 PRInt32 aContentLength);
497 nsresult GetUploadStream(nsIInputStream **aUploadStream);
501 object,
502 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
503 local
505 interface nsIDOMCSSRule : nsISupports
507 nsresult GetType(PRUint16 *aType);
508 nsresult GetCssText(nsAString *aCssText);
509 nsresult SetCssText(const nsAString *aCssText);
510 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
511 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
515 object,
516 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
517 local
519 interface nsIDOMCSSStyleDeclaration : nsISupports
521 nsresult GetCssText(nsAString *aCssText);
522 nsresult SetCssText(const nsAString *aCssText);
523 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
524 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
525 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
526 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
527 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
528 const nsAString *priority);
529 nsresult GetLength(PRUint32 *aLength);
530 nsresult Item(PRUint32 index, nsAString *_retval);
531 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
535 object,
536 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
537 local
539 interface nsIDOMCSSRuleList : nsISupports
541 nsresult GetLength(PRUint32 *aLength);
542 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
546 object,
547 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
548 local
550 interface nsIDOMStyleSheet : nsISupports
552 nsresult GetType(nsAString *aType);
553 nsresult GetDisabled(PRBool *aDisabled);
554 nsresult SetDisabled(PRBool aDisabled);
555 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
556 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
557 nsresult GetHref(nsAString *aHref);
558 nsresult GetTitle(nsAString *aTitle);
559 nsresult GetMedia(nsIDOMMediaList **aMedia);
563 object,
564 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
565 local
567 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
569 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
570 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
571 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
572 nsresult DeleteRule(PRUint32 index);
576 object,
577 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
578 local
580 interface nsIDOMStyleSheetList : nsISupports
582 nsresult GetLength(PRUint32 *aLength);
583 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
587 object,
588 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
589 local
591 interface nsIDOMNodeList : nsISupports
593 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
594 nsresult GetLength(PRUint32 *aLength);
598 object,
599 uuid(29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f),
600 local
602 interface nsIDOM3Node : nsISupports
604 enum NSDOCPOSITION {
605 DISCONNECTED = 1,
606 PRECEDING = 2,
607 FOLLOWING = 4,
608 CONTAINS = 8,
609 CONTAINED_BY = 16,
610 IMPLEMENTATION_SPECIFIC = 32
613 nsresult GetBaseURI(nsAString *aBaseURI);
614 nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
615 nsresult GetTextContent(nsAString *aTextContent);
616 nsresult SetTextContent(const nsAString *aTextContent);
617 nsresult IsSameNode(nsIDOMNode *other, PRBool *_retval);
618 nsresult LookupPrefix(const nsAString *namespaceURI, PRBool *_retval);
619 nsresult IsDefaultNamespace(const nsAString *namespaceURI, PRBool *_retval);
620 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval);
621 nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
622 nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval);
623 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
624 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
628 object,
629 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
630 local
632 interface nsIDOMNode : nsISupports
634 enum NSNODETYPE {
635 ELEMENT_NODE = 1,
636 ATTRIBUTE_NODE = 2,
637 TEXT_NODE = 3,
638 CDATA_SELECTION_NODE = 4,
639 ENTITY_REFERENCE_NODE = 5,
640 ENTITY_NODE = 6,
641 PROCESSING_INSTRUCTION_NODE = 7,
642 COMMENT_NODE = 8,
643 DOCUMENT_NODE = 9,
644 DOCUMENT_TYPE_NODE = 10,
645 DOCUMENT_FRAGMENT_NODE = 11,
646 NOTATION_NODE = 12
649 nsresult GetNodeName(nsAString *aNodeName);
650 nsresult GetNodeValue(nsAString *aNodeValue);
651 nsresult SetNodeValue(const nsAString *aNodeValue);
652 nsresult GetNodeType(PRUint16 *aNodeType);
653 nsresult GetParentNode(nsIDOMNode **aParentNode);
654 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
655 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
656 nsresult GetLastChild(nsIDOMNode **aLastChild);
657 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
658 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
659 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
660 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
661 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
662 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
663 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
664 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
665 nsresult HasChildNodes(PRBool *_retval);
666 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
667 nsresult Normalize();
668 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
669 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
670 nsresult GetPrefix(nsAString *aPrefix);
671 nsresult SetPrefix(const nsAString *aPrefix);
672 nsresult GetLocalName(nsAString *aLocalName);
673 nsresult HasAttributes(PRBool *_retval);
677 object,
678 uuid(a6cf9070-15b3-11d2-932e-00805f8add32),
679 local
681 interface nsIDOMAttr : nsIDOMNode
683 nsresult GetName(nsAString *aName);
684 nsresult GetSpecified(PRBool *aSpecified);
685 nsresult GetValue(nsAString *aValue);
686 nsresult SetValue(const nsAString *aValue);
687 nsresult GetOwnerElement(nsIDOMElement **aOwnerElement);
691 object,
692 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
693 local
695 interface nsIDOMElement : nsIDOMNode
697 nsresult GetTagName(nsAString *aTagName);
698 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
699 nsresult SetAttribute(const nsAString *name, const nsAString *value);
700 nsresult RemoveAttribute(const nsAString *name);
701 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
702 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
703 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
704 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
705 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
706 nsAString *_retval);
707 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
708 const nsAString *value);
709 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
710 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
711 nsIDOMAttr **_retval);
712 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
713 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
714 nsIDOMNodeList **_retval);
715 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
716 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
717 PRBool *_retval);
721 object,
722 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
723 local
725 interface nsIDOMElementCSSInlineStyle : nsISupports
727 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
731 object,
732 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
733 local
735 interface nsIDOMClientRect : nsISupports
737 nsresult GetLeft(float *aLeft);
738 nsresult GetTop(float *aTop);
739 nsresult GetRight(float *aRight);
740 nsresult GetBottom(float *aBottom);
741 nsresult GetWidth(float *aWidth);
742 nsresult GetHeight(float *aHeight);
746 object,
747 uuid(d894b5d4-44f3-422a-a220-7763c12d4a94),
748 local
750 interface nsIDOMNSElement : nsISupports
752 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
753 nsresult GetClientRects(nsIDOMClientRectList **_retval);
754 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
755 nsresult GetScrollTop(PRInt32 *aScrollTop);
756 nsresult SetScrollTop(PRInt32 aScrollTop);
757 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
758 nsresult SetScrollLeft(PRInt32 aScrollLeft);
759 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
760 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
761 nsresult GetClientTop(PRInt32 *aClientTop);
762 nsresult GetClientLeft(PRInt32 *aClientLeft);
763 nsresult GetClientHeight(PRInt32 *aClientHeight);
764 nsresult GetClientWidth(PRInt32 *aClientWidth);
765 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
766 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
767 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
768 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
769 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
770 nsresult GetChildren(nsIDOMNodeList **aChildren);
771 nsresult GetClassList(nsIDOMDOMTokenList **aClassList);
772 nsresult SetCapture(PRBool retargetToElement);
773 nsresult ReleaseCapture();
774 nsresult MozMatchesSelector(const nsAString *selector, PRBool *_retval);
777 cpp_quote("#undef GetClassName")
780 object,
781 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
782 local
784 interface nsIDOMHTMLElement : nsIDOMElement
786 nsresult GetId(nsAString *aId);
787 nsresult SetId(const nsAString *aId);
788 nsresult GetTitle(nsAString *aTitle);
789 nsresult SetTitle(const nsAString *aTitle);
790 nsresult GetLang(nsAString *aLang);
791 nsresult SetLang(const nsAString *aLang);
792 nsresult GetDir(nsAString *aDir);
793 nsresult SetDir(const nsAString *aDir);
794 nsresult GetClassName(nsAString *aClassName);
795 nsresult SetClassName(const nsAString *aClassName);
799 object,
800 uuid(f0ffe1d2-9615-492b-aae1-05428ebc2a70),
801 local
803 interface nsIDOMNSHTMLElement : nsISupports
805 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
806 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
807 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
808 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
809 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
810 nsresult GetInnerHTML(nsAString *aInnerHTML);
811 nsresult SetInnerHTML(const nsAString *aInnerHTML);
812 nsresult GetHidden(PRBool *aHidden);
813 nsresult SetHidden(PRBool aHidden);
814 nsresult GetTabIndex(PRInt32 *aTabIndex);
815 nsresult SetTabIndex(PRInt32 aTabIndex);
816 nsresult GetContentEditable(nsAString *aContentEditable);
817 nsresult SetContentEditable(const nsAString *aContentEditable);
818 nsresult GetIsContentEditable(PRBool *aIsContentEditable);
819 nsresult GetDraggable(PRBool *aDraggable);
820 nsresult SetDraggable(PRBool aDraggable);
821 nsresult Blur();
822 nsresult Focus();
823 nsresult ScrollIntoView(PRBool top, PRUint8 _argc);
824 nsresult GetSpellcheck(PRBool *aSpellcheck);
825 nsresult SetSpellcheck(PRBool aSpellcheck);
829 object,
830 uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
831 local
833 interface nsIDOMHTMLCollection : nsISupports
835 nsresult GetLength(PRUint32 *aLength);
836 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
837 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
841 object,
842 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
843 local
845 interface nsIDOMCharacterData : nsIDOMNode
847 nsresult GetData(nsAString *aData);
848 nsresult SetData(const nsAString *aData);
849 nsresult GetLength(PRUint32 *aLength);
850 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
851 nsresult AppendData(const nsAString *arg);
852 nsresult InsertData(PRUint32 offset, const nsAString *arg);
853 nsresult DeleteData(PRUint32 offset, PRUint32 count);
854 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
858 object,
859 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
860 local
862 interface nsIDOMText : nsIDOMCharacterData
864 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
868 object,
869 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
870 local
872 interface nsIDOMComment : nsIDOMCharacterData
877 object,
878 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
879 local
881 interface nsIDOMDocumentFragment : nsIDOMNode
886 object,
887 uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
888 local
890 interface nsIDOMAbstractView : nsISupports
892 nsresult GetDocument(nsIDOMDocumentView **aDocument);
896 object,
897 uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
898 local
900 interface nsIDOMViewCSS : nsIDOMAbstractView
902 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
906 object,
907 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
908 local
910 interface nsIDOMDocument : nsIDOMNode
912 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
913 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
914 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
915 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
916 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
917 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
918 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
919 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
920 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
921 nsIDOMProcessingInstruction **_retval);
922 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
923 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
924 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
925 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
926 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
927 nsIDOMElement **_retval);
928 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
929 nsIDOMAttr **_retval);
930 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
931 nsIDOMNodeList **_retval);
932 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
936 object,
937 uuid(7485b35e-d215-42a0-8a67-896f86c8afd9),
938 local
940 interface nsIDOMNSDocument : nsISupports
942 nsresult GetCharacterSet(nsAString *aCharacterSet);
943 nsresult GetDir(nsAString *aDir);
944 nsresult SetDir(const nsAString *aDir);
945 nsresult GetLocation(nsIDOMLocation **aLocation);
946 nsresult GetTitle(nsAString *aTitle);
947 nsresult SetTitle(const nsAString *aTitle);
948 nsresult GetContentType(nsAString *aContentType);
949 nsresult GetReadyState(nsAString *aReadyState);
950 nsresult GetLastModified(nsAString *aLastModified);
951 nsresult GetReferrer(nsAString *aReferrer);
952 nsresult HasFocus(PRBool *_retval);
953 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
954 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
955 nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
956 nsresult ReleaseCapture();
957 nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
959 /* Wine extensions */
960 nsresult WineAddObserver(nsIDocumentObserver *aObserver);
961 nsresult WineRemoveObserver(nsIDocumentObserver *aObserver);
962 nsresult WineAddScriptRunner(nsIRunnable *aRunnable);
966 object,
967 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
968 local
970 interface nsIDOMHTMLDocument : nsIDOMDocument
972 nsresult GetTitle(nsAString *aTitle);
973 nsresult SetTitle(const nsAString *aTitle);
974 nsresult GetReferrer(nsAString *aReferrer);
975 nsresult GetDomain(nsAString *aDomain);
976 nsresult GetURL(nsAString *aURL);
977 nsresult GetBody(nsIDOMHTMLElement **aBody);
978 nsresult SetBody(nsIDOMHTMLElement *aBody);
979 nsresult GetImages(nsIDOMHTMLCollection **aImages);
980 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
981 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
982 nsresult GetForms(nsIDOMHTMLCollection **aForms);
983 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
984 nsresult GetCookie(nsAString *aCookie);
985 nsresult SetCookie(const nsAString *aCookie);
986 nsresult Open();
987 nsresult Close();
988 nsresult Write(const nsAString *text);
989 nsresult Writeln(const nsAString *text);
990 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
994 object,
995 uuid(95cd5ad4-ae8a-4f0e-b168-35e03d5e0b9a),
996 local
998 interface nsIDOMNSHTMLDocument : nsISupports
1000 nsresult GetWidth(PRInt32 *aWidth);
1001 nsresult GetHeight(PRInt32 *aHeight);
1002 nsresult GetAlinkColor(nsAString *aAlinkColor);
1003 nsresult SetAlinkColor(const nsAString *aAlinkColor);
1004 nsresult GetLinkColor(nsAString *aLinkColor);
1005 nsresult SetLinkColor(const nsAString *aLinkColor);
1006 nsresult GetVlinkColor(nsAString *aVlinkColor);
1007 nsresult SetVlinkColor(const nsAString *aVlinkColor);
1008 nsresult GetBgColor(nsAString *aBgColor);
1009 nsresult SetBgColor(const nsAString *aBgColor);
1010 nsresult GetFgColor(nsAString *aFgColor);
1011 nsresult SetFgColor(const nsAString *aFgColor);
1012 nsresult GetDomain(nsAString *aDomain);
1013 nsresult SetDomain(const nsAString *aDomain);
1014 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1015 nsresult GetSelection(nsAString *_retval);
1016 nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
1017 nsresult Clear();
1018 nsresult CaptureEvents(PRInt32 eventFlags);
1019 nsresult ReleaseEvents(PRInt32 eventFlags);
1020 nsresult RouteEvent(nsIDOMEvent *evt);
1021 nsresult GetCompatMode(nsAString *aCompatMode);
1022 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1023 nsresult GetDesignMode(nsAString *aDesignMode);
1024 nsresult SetDesignMode(const nsAString *aDesignMode);
1025 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
1026 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
1027 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
1028 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
1029 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
1030 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
1031 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
1032 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1033 nsresult GetHead(nsIDOMHTMLHeadElement *_retval);
1037 object,
1038 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
1039 local
1041 interface nsIDOMDocumentStyle : nsISupports
1043 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1047 object,
1048 uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
1049 local
1051 interface nsIDOMDocumentView : nsISupports
1053 nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
1057 object,
1058 uuid(46b91d66-28e2-11d4-ab1e-0010830123b4),
1059 local
1061 interface nsIDOMDocumentEvent : nsISupports
1063 cpp_quote("#undef CreateEvent")
1064 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1068 object,
1069 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
1070 local
1072 interface nsIDOMRange : nsISupports
1074 enum {
1075 NS_START_TO_START,
1076 NS_START_TO_END,
1077 NS_END_TO_END,
1078 NS_END_TO_START
1081 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1082 nsresult GetStartOffset(PRInt32 *aStartOffset);
1083 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1084 nsresult GetEndOffset(PRInt32 *aEndOffset);
1085 nsresult GetCollapsed(PRBool *aCollapsed);
1086 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1087 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1088 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1089 nsresult SetStartBefore(nsIDOMNode *refNode);
1090 nsresult SetStartAfter(nsIDOMNode *refNode);
1091 nsresult SetEndBefore(nsIDOMNode *refNode);
1092 nsresult SetEndAfter(nsIDOMNode *refNode);
1093 nsresult Collapse(PRBool toStart);
1094 nsresult SelectNode(nsIDOMNode *refNode);
1095 nsresult SelectNodeContents(nsIDOMNode *refNode);
1096 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1097 nsresult DeleteContents();
1098 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1099 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1100 nsresult InsertNode(nsIDOMNode *newNode);
1101 nsresult SurroundContents(nsIDOMNode *newParent);
1102 nsresult CloneRange(nsIDOMRange **_retval);
1103 nsresult ToString(nsAString *_retval);
1104 nsresult Detach();
1108 object,
1109 uuid(fed93d11-f24d-41d8-ae55-4197927999bb),
1110 local
1112 interface nsIDOMNSRange : nsISupports
1114 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1115 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1116 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1117 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1118 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1123 object,
1124 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1125 local
1127 interface nsIDOMDocumentRange : nsISupports
1129 nsresult CreateRange(nsIDOMRange **_retval);
1133 object,
1134 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1135 local
1137 interface nsISelection : nsISupports
1139 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1140 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1141 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1142 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1143 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1144 nsresult GetRangeCount(PRInt32 *aRangeCount);
1145 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1146 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1147 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1148 nsresult CollapseToStart();
1149 nsresult CollapseToEnd();
1150 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1151 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1152 nsresult AddRange(nsIDOMRange *range);
1153 nsresult RemoveRange(nsIDOMRange *range);
1154 nsresult RemoveAllRanges();
1155 nsresult DeleteFromDocument();
1156 nsresult SelectionLanguageChange(PRBool langRTL);
1157 nsresult ToString(PRUnichar **_retval);
1161 object,
1162 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1163 local
1165 interface nsIDOMWindowCollection : nsISupports
1167 nsresult GetLength(PRUint32 *aLength);
1168 nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1169 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1173 object,
1174 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1175 local
1177 interface nsIDOMWindow : nsISupports
1179 nsresult GetDocument(nsIDOMDocument **aDocument);
1180 nsresult GetParent(nsIDOMWindow **aParent);
1181 nsresult GetTop(nsIDOMWindow **aTop);
1182 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1183 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1184 nsresult GetName(nsAString *aName);
1185 nsresult SetName(const nsAString *aName);
1186 nsresult GetTextZoom(float *aTextZoom);
1187 nsresult SetTextZoom(float aTextZoom);
1188 nsresult GetScrollX(PRInt32 *aScrollX);
1189 nsresult GetScrollY(PRInt32 *aScrollY);
1190 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1191 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1192 nsresult GetSelection(nsISelection **_retval);
1193 nsresult ScrollByLines(PRInt32 numLines);
1194 nsresult ScrollByPages(PRInt32 numPages);
1195 nsresult SizeToContent();
1199 object,
1200 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1201 local
1203 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1205 nsresult GetALink(nsAString *aALink);
1206 nsresult SetALink(const nsAString *aALink);
1207 nsresult GetBackground(nsAString *aBackground);
1208 nsresult SetBackground(const nsAString *aBackground);
1209 nsresult GetBgColor(nsAString *aBgColor);
1210 nsresult SetBgColor(const nsAString *aBgColor);
1211 nsresult GetLink(nsAString *aLink);
1212 nsresult SetLink(const nsAString *aLink);
1213 nsresult GetText(nsAString *aText);
1214 nsresult SetText(const nsAString *aText);
1215 nsresult GetVLink(nsAString *aVLink);
1216 nsresult SetVLink(const nsAString *aVLink);
1220 object,
1221 uuid(a6cf908f-15b3-11d2-932e-00805f8add32),
1222 local
1224 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1226 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1227 nsresult GetLength(PRInt32 *aLength);
1228 nsresult GetName(nsAString *aName);
1229 nsresult SetName(const nsAString *aName);
1230 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1231 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1232 nsresult GetAction(nsAString *aAction);
1233 nsresult SetAction(const nsAString *aAction);
1234 nsresult GetEnctype(nsAString *aEnctype);
1235 nsresult SetEnctype(const nsAString *aEnctype);
1236 nsresult GetMethod(nsAString *aMethod);
1237 nsresult SetMethod(const nsAString *aMethod);
1238 nsresult GetTarget(nsAString *aTarget);
1239 nsresult SetTarget(const nsAString *aTarget);
1240 nsresult Submit();
1241 nsresult Reset();
1245 object,
1246 uuid(2480b6f0-094e-484f-8717-0c204ed23e69),
1247 local
1249 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1251 nsresult GetAccept(nsAString *aAccept);
1252 nsresult SetAccept(const nsAString *aAccept);
1253 nsresult GetAlt(nsAString *aAlt);
1254 nsresult SetAlt(const nsAString *aAlt);
1255 nsresult GetAutofocus(PRBool *aAutofocus);
1256 nsresult SetAutofocus(PRBool aAutofocus);
1257 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1258 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1259 nsresult GetChecked(PRBool *aChecked);
1260 nsresult SetChecked(PRBool aChecked);
1261 nsresult GetDisabled(PRBool *aDisabled);
1262 nsresult SetDisabled(PRBool aDisabled);
1263 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1264 nsresult GetFiles(nsIDOMFileList **aFiles);
1265 nsresult GetIndeterminate(PRBool *aIndeterminate);
1266 nsresult SetIndeterminate(PRBool aIndeterminate);
1267 nsresult GetMaxLength(PRInt32 *aMaxLength);
1268 nsresult SetMaxLength(PRInt32 aMaxLength);
1269 nsresult GetMultiple(PRBool *aMultiple);
1270 nsresult SetMultiple(PRBool aMultiple);
1271 nsresult GetName(nsAString *aName);
1272 nsresult SetName(const nsAString *aName);
1273 nsresult GetPlaceholder(nsAString *aPlaceholder);
1274 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1275 nsresult GetReadOnly(PRBool *aReadOnly);
1276 nsresult SetReadOnly(PRBool aReadOnly);
1277 nsresult GetAccessKey(nsAString *aAccessKey);
1278 nsresult SetAccessKey(const nsAString *aAccessKey);
1279 nsresult GetAlign(nsAString *aAlign);
1280 nsresult SetAlign(const nsAString *aAlign);
1281 nsresult GetSize(PRUint32 *aSize);
1282 nsresult SetSize(PRUint32 aSize);
1283 nsresult GetSrc(nsAString *aSrc);
1284 nsresult SetSrc(const nsAString *aSrc);
1285 nsresult GetType(nsAString *aType);
1286 nsresult SetType(const nsAString *aType);
1287 nsresult GetDefaultValue(nsAString *aDefaultValue);
1288 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1289 nsresult GetValue(nsAString *aValue);
1290 nsresult SetValue(const nsAString *aValue);
1291 nsresult Select();
1292 nsresult GetSelectionStart(PRInt32 *aSelectionStart);
1293 nsresult SetSelectionStart(PRInt32 aSelectionStart);
1294 nsresult GetSelectionEnd(PRInt32 *aSelectionEnd);
1295 nsresult SetSelectionEnd(PRInt32 aSelectionEnd);
1296 nsresult SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd);
1297 nsresult GetTabIndex(PRInt32 *aTabIndex);
1298 nsresult SetTabIndex(PRInt32 aTabIndex);
1299 nsresult GetUseMap(nsAString *aUseMap);
1300 nsresult SetUseMap(const nsAString *aUseMap);
1301 nsresult GetControllers(nsIControllers **aControllers);
1302 nsresult GetTextLength(PRInt32 *aTextLength);
1303 nsresult MozGetFileNameArray(PRUint32 *aLength, PRUnichar ***aFileNames);
1304 nsresult MozSetFileNameArray(const PRUnichar **aFileNames, PRUint32 aLength);
1305 nsresult MozIsTextField(PRBool aExcludePassword, PRBool *_retval);
1306 nsresult Blur();
1307 nsresult Focus();
1308 nsresult Click();
1312 object,
1313 uuid(611d00f5-1eb8-4571-b995-2a2019d2d11c),
1314 local
1316 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1318 nsresult GetDisabled(PRBool *aDisabled);
1319 nsresult SetDisabled(PRBool aDisabled);
1320 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1321 nsresult GetLabel(nsAString *aLabel);
1322 nsresult SetLabel(const nsAString *aLabel);
1323 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1324 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1325 nsresult GetSelected(PRBool *aSelected);
1326 nsresult SetSelected(PRBool aSelected);
1327 nsresult GetValue(nsAString *aValue);
1328 nsresult SetValue(const nsAString *aValue);
1329 nsresult GetText(nsAString *aText);
1330 nsresult SetText(const nsAString *aText);
1331 nsresult GetIndex(PRInt32 *aIndex);
1335 object,
1336 uuid(bce0213c-f70f-488f-b93f-688acca55d63),
1337 local
1339 interface nsIDOMHTMLOptionsCollection : nsISupports
1341 nsresult GetLength(PRUint32 *aLength);
1342 nsresult SetLength(PRUint32 aLength);
1343 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1344 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1348 object,
1349 uuid(110a4b15-e0a2-48d7-8e59-d8d94ef510ad),
1350 local
1352 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1354 nsresult GetAutofocus(PRBool *aAutofocus);
1355 nsresult SetAutofocus(PRBool aAutofocus);
1356 nsresult GetDisabled(PRBool *aDisabled);
1357 nsresult SetDisabled(PRBool aDisabled);
1358 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1359 nsresult GetMultiple(PRBool *aMultiple);
1360 nsresult SetMultiple(PRBool aMultiple);
1361 nsresult GetName(nsAString *aName);
1362 nsresult SetName(const nsAString *aName);
1363 nsresult GetSize(PRInt32 *aSize);
1364 nsresult SetSize(PRInt32 aSize);
1365 nsresult GetType(nsAString *aType);
1366 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1367 nsresult GetLength(PRUint32 *aLength);
1368 nsresult SetLength(PRUint32 aLength);
1369 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1370 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1371 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1372 nsresult Remove(PRInt32 index);
1373 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1374 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1375 nsresult GetValue(nsAString *aValue);
1376 nsresult SetValue(const nsAString *aValue);
1377 nsresult GetTabIndex(PRInt32 *aTabIndex);
1378 nsresult SetTabIndex(PRInt32 aTabIndex);
1379 nsresult Blur();
1380 nsresult Focus();
1384 object,
1385 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1386 local
1388 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1390 nsresult GetDefaultValue(nsAString *aDefaultValue);
1391 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1392 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1393 nsresult GetAccessKey(nsAString *aAccessKey);
1394 nsresult SetAccessKey(const nsAString *aAccessKey);
1395 nsresult GetCols(PRInt32 *aCols);
1396 nsresult SetCols(PRInt32 aCols);
1397 nsresult GetDisabled(PRBool *aDisabled);
1398 nsresult SetDisabled(PRBool aDisabled);
1399 nsresult GetName(nsAString *aName);
1400 nsresult SetName(const nsAString *aName);
1401 nsresult GetReadOnly(PRBool *aReadOnly);
1402 nsresult SetReadOnly(PRBool aReadOnly);
1403 nsresult GetRows(PRInt32 *aRows);
1404 nsresult SetRows(PRInt32 aRows);
1405 nsresult GetTabIndex(PRInt32 *aTabIndex);
1406 nsresult SetTabIndex(PRInt32 aTabIndex);
1407 nsresult GetType(nsAString *aType);
1408 nsresult GetValue(nsAString *aValue);
1409 nsresult SetValue(const nsAString *aValue);
1410 nsresult Blur();
1411 nsresult Focus();
1412 nsresult Select();
1416 object,
1417 uuid(4af8568c-375c-42fd-a82f-b25a7c03fc3e),
1418 local
1420 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1422 nsresult GetSrc(nsAString *aSrc);
1423 nsresult SetSrc(const nsAString *aSrc);
1424 nsresult GetAsync(PRBool *aAsync);
1425 nsresult SetAsync(PRBool aAsync);
1426 nsresult GetDefer(PRBool *aDefer);
1427 nsresult SetDefer(PRBool aDefer);
1428 nsresult GetType(nsAString *aType);
1429 nsresult SetType(const nsAString *aType);
1430 nsresult GetCharset(nsAString *aCharset);
1431 nsresult SetCharset(const nsAString *aCharset);
1432 nsresult GetText(nsAString *aText);
1433 nsresult SetText(const nsAString *aText);
1434 nsresult GetHtmlFor(nsAString *aHtmlFor);
1435 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1436 nsresult GetEvent(nsAString *aEvent);
1437 nsresult SetEvent(const nsAString *aEvent);
1441 object,
1442 uuid(3fc9c313-49b9-4315-b39f-7166cf362e10),
1443 local
1445 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1447 nsresult GetAlt(nsAString *aAlt);
1448 nsresult SetAlt(const nsAString *aAlt);
1449 nsresult GetSrc(nsAString *aSrc);
1450 nsresult SetSrc(const nsAString *aSrc);
1451 nsresult GetUseMap(nsAString *aUseMap);
1452 nsresult SetUseMap(const nsAString *aUseMap);
1453 nsresult GetIsMap(PRBool *aIsMap);
1454 nsresult SetIsMap(PRBool aIsMap);
1455 nsresult GetWidth(PRInt32 *aWidth);
1456 nsresult SetWidth(PRInt32 aWidth);
1457 nsresult GetHeight(PRInt32 *aHeight);
1458 nsresult SetHeight(PRInt32 aHeight);
1459 nsresult GetNaturalWidth(PRInt32 *aNaturalWidth);
1460 nsresult GetNaturalHeight(PRInt32 *aNaturalHeight);
1461 nsresult GetComplete(PRBool *aComplete);
1462 nsresult GetName(nsAString *aName);
1463 nsresult SetName(const nsAString *aName);
1464 nsresult GetAlign(nsAString *aAlign);
1465 nsresult SetAlign(const nsAString *aAlign);
1466 nsresult GetBorder(nsAString *aBorder);
1467 nsresult SetBorder(const nsAString *aBorder);
1468 nsresult GetHspace(PRInt32 *aHspace);
1469 nsresult SetHspace(PRInt32 aHspace);
1470 nsresult GetLongDesc(nsAString *aLongDesc);
1471 nsresult SetLongDesc(const nsAString *aLongDesc);
1472 nsresult GetVspace(PRInt32 *aVspace);
1473 nsresult SetVspace(PRInt32 aVspace);
1474 nsresult GetLowsrc(nsAString *aLowsrc);
1475 nsresult SetLowsrc(const nsAString *aLowsrc);
1476 nsresult GetX(PRInt32 *aX);
1477 nsresult GetY(PRInt32 *aY);
1481 object,
1482 uuid(4e237175-3628-4dc8-892f-5270edc3c71a),
1483 local
1485 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1487 nsresult GetHref(nsAString *aHref);
1488 nsresult SetHref(const nsAString *aHref);
1489 nsresult GetTarget(nsAString *aTarget);
1490 nsresult SetTarget(const nsAString *aTarget);
1491 nsresult GetPing(nsAString *aPing);
1492 nsresult SetPing(const nsAString *aPing);
1493 nsresult GetRel(nsAString *aRel);
1494 nsresult SetRel(const nsAString *aRel);
1495 nsresult GetHreflang(nsAString *aHreflang);
1496 nsresult SetHreflang(const nsAString *aHreflang);
1497 nsresult GetType(nsAString *aType);
1498 nsresult SetType(const nsAString *aType);
1499 nsresult GetText(nsAString *aText);
1500 nsresult SetText(const nsAString *aText);
1501 nsresult GetProtocol(nsAString *aProtocol);
1502 nsresult SetProtocol(const nsAString *aProtocol);
1503 nsresult GetHost(nsAString *aHost);
1504 nsresult SetHost(const nsAString *aHost);
1505 nsresult GetHostname(nsAString *aHostname);
1506 nsresult SetHostname(const nsAString *aHostname);
1507 nsresult GetPort(nsAString *aPort);
1508 nsresult SetPort(const nsAString *aPort);
1509 nsresult GetPathname(nsAString *aPathname);
1510 nsresult SetPathname(const nsAString *aPathname);
1511 nsresult GetSearch(nsAString *aSearch);
1512 nsresult SetSearch(const nsAString *aSearch);
1513 nsresult GetHash(nsAString *aHash);
1514 nsresult SetHash(const nsAString *aHash);
1515 nsresult GetAccessKey(nsAString *aAccessKey);
1516 nsresult SetAccessKey(const nsAString *aAccessKey);
1517 nsresult GetCharset(nsAString *aCharset);
1518 nsresult SetCharset(const nsAString *aCharset);
1519 nsresult GetCoords(nsAString *aCoords);
1520 nsresult SetCoords(const nsAString *aCoords);
1521 nsresult GetName(nsAString *aName);
1522 nsresult SetName(const nsAString *aName);
1523 nsresult GetRev(nsAString *aRev);
1524 nsresult SetRev(const nsAString *aRev);
1525 nsresult GetShape(nsAString *aShape);
1526 nsresult SetShape(const nsAString *aShape);
1527 nsresult GetTabIndex(PRInt32 *aTabIndex);
1528 nsresult SetTabIndex(PRInt32 aTabIndex);
1529 nsresult ToString(nsAString *_retval);
1530 nsresult Blur();
1531 nsresult Focus();
1535 object,
1536 uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1537 local
1539 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1541 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1542 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1543 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1544 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1545 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1546 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1547 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1548 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1549 nsresult GetAlign(nsAString *aAlign);
1550 nsresult SetAlign(const nsAString *aAlign);
1551 nsresult GetBgColor(nsAString *aBgColor);
1552 nsresult SetBgColor(const nsAString *aBgColor);
1553 nsresult GetBorder(nsAString *aBorder);
1554 nsresult SetBorder(const nsAString *aBorder);
1555 nsresult GetCellPadding(nsAString *aCellPadding);
1556 nsresult SetCellPadding(const nsAString *aCellPadding);
1557 nsresult GetCellSpacing(nsAString *aCellSpacing);
1558 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1559 nsresult GetFrame(nsAString *aFrame);
1560 nsresult SetFrame(const nsAString *aFrame);
1561 nsresult GetRules(nsAString *aRules);
1562 nsresult SetRules(const nsAString *aRules);
1563 nsresult GetSummary(nsAString *aSummary);
1564 nsresult SetSummary(const nsAString *aSummary);
1565 nsresult GetWidth(nsAString *aWidth);
1566 nsresult SetWidth(const nsAString *aWidth);
1567 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1568 nsresult DeleteTHead();
1569 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1570 nsresult DeleteTFoot();
1571 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1572 nsresult DeleteCaption();
1573 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1574 nsresult DeleteRow(PRInt32 index);
1578 object,
1579 uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1580 local
1582 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1584 nsresult GetRowIndex(PRInt32 *aRowIndex);
1585 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1586 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1587 nsresult GetAlign(nsAString *aAlign);
1588 nsresult SetAlign(const nsAString *aAlign);
1589 nsresult GetBgColor(nsAString *aBgColor);
1590 nsresult SetBgColor(const nsAString *aBgColor);
1591 nsresult GetCh(nsAString *aCh);
1592 nsresult SetCh(const nsAString *aCh);
1593 nsresult GetChOff(nsAString *aChOff);
1594 nsresult SetChOff(const nsAString *aChOff);
1595 nsresult GetVAlign(nsAString *aVAlign);
1596 nsresult SetVAlign(const nsAString *aVAlign);
1597 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1598 nsresult DeleteCell(PRInt32 index);
1602 object,
1603 uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1604 local
1606 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1608 nsresult GetAlign(nsAString *aAlign);
1609 nsresult SetAlign(const nsAString *aAlign);
1610 nsresult GetFrameBorder(nsAString *aFrameBorder);
1611 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1612 nsresult GetHeight(nsAString *aHeight);
1613 nsresult SetHeight(const nsAString *aHeight);
1614 nsresult GetLongDesc(nsAString *aLongDesc);
1615 nsresult SetLongDesc(const nsAString *aLongDesc);
1616 nsresult GetMarginHeight(nsAString *aMarginHeight);
1617 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1618 nsresult GetMarginWidth(nsAString *aMarginWidth);
1619 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1620 nsresult GetName(nsAString *aName);
1621 nsresult SetName(const nsAString *aName);
1622 nsresult GetScrolling(nsAString *aScrolling);
1623 nsresult SetScrolling(const nsAString *aScrolling);
1624 nsresult GetSrc(nsAString *aSrc);
1625 nsresult SetSrc(const nsAString *aSrc);
1626 nsresult GetWidth(nsAString *aWidth);
1627 nsresult SetWidth(const nsAString *aWidth);
1628 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1632 object,
1633 uuid(a6cf90b9-15b3-11d2-932e-00805f8add32),
1634 local
1636 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
1638 nsresult GetFrameBorder(nsAString *aFrameBorder);
1639 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1640 nsresult GetLongDesc(nsAString *aLongDesc);
1641 nsresult SetLongDesc(const nsAString *aLongDesc);
1642 nsresult GetMarginHeight(nsAString *aMarginHeight);
1643 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1644 nsresult GetMarginWidth(nsAString *aMarginWidth);
1645 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1646 nsresult GetName(nsAString *aName);
1647 nsresult SetName(const nsAString *aName);
1648 nsresult GetNoResize(PRBool *aNoResize);
1649 nsresult SetNoResize(PRBool aNoResize);
1650 nsresult GetScrolling(nsAString *aScrolling);
1651 nsresult SetScrolling(const nsAString *aScrolling);
1652 nsresult GetSrc(nsAString *aSrc);
1653 nsresult SetSrc(const nsAString *aSrc);
1654 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1658 object,
1659 uuid(a6cf90ac-15b3-11d2-932e-00805f8add32),
1660 local
1662 interface nsIDOMHTMLObjectElement : nsIDOMHTMLElement
1664 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1665 nsresult GetCode(nsAString *aCode);
1666 nsresult SetCode(const nsAString *aCode);
1667 nsresult GetAlign(nsAString *aAlign);
1668 nsresult SetAlign(const nsAString *aAlign);
1669 nsresult GetArchive(nsAString *aArchive);
1670 nsresult SetArchive(const nsAString *aArchive);
1671 nsresult GetBorder(nsAString *aBorder);
1672 nsresult SetBorder(const nsAString *aBorder);
1673 nsresult GetCodeBase(nsAString *aCodeBase);
1674 nsresult SetCodeBase(const nsAString *aCodeBase);
1675 nsresult GetCodeType(nsAString *aCodeType);
1676 nsresult SetCodeType(const nsAString *aCodeType);
1677 nsresult GetData(nsAString *aData);
1678 nsresult SetData(const nsAString *aData);
1679 nsresult GetDeclare(PRBool *aDeclare);
1680 nsresult SetDeclare(PRBool aDeclare);
1681 nsresult GetHeight(nsAString *aHeight);
1682 nsresult SetHeight(const nsAString *aHeight);
1683 nsresult GetHspace(PRInt32 *aHspace);
1684 nsresult SetHspace(PRInt32 aHspace);
1685 nsresult GetName(nsAString *aName);
1686 nsresult SetName(const nsAString *aName);
1687 nsresult GetStandby(nsAString *aStandby);
1688 nsresult SetStandby(const nsAString *aStandby);
1689 nsresult GetTabIndex(PRInt32 *aTabIndex);
1690 nsresult SetTabIndex(PRInt32 aTabIndex);
1691 nsresult GetType(nsAString *aType);
1692 nsresult SetType(const nsAString *aType);
1693 nsresult GetUseMap(nsAString *aUseMap);
1694 nsresult SetUseMap(const nsAString *aUseMap);
1695 nsresult GetVspace(PRInt32 *aVspace);
1696 nsresult SetVspace(PRInt32 aVspace);
1697 nsresult GetWidth(nsAString *aWidth);
1698 nsresult SetWidth(const nsAString *aWidth);
1699 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1703 object,
1704 uuid(a6cf90ad-15b3-11d2-932e-00805f8add32),
1705 local
1707 interface nsIDOMHTMLParamElement : nsIDOMHTMLElement
1709 nsresult GetName(nsAString *aName);
1710 nsresult SetName(const nsAString *aName);
1711 nsresult GetType(nsAString *aType);
1712 nsresult SetType(const nsAString *aType);
1713 nsresult GetValue(nsAString *aValue);
1714 nsresult SetValue(const nsAString *aValue);
1715 nsresult GetValueType(nsAString *aValueType);
1716 nsresult SetValueType(const nsAString *aValueType);
1720 object,
1721 uuid(a6cf908d-15b3-11d2-932e-00805f8add32),
1722 local
1724 interface nsIDOMHTMLStyleElement : nsIDOMHTMLElement
1726 nsresult GetDisabled(PRBool *aDisabled);
1727 nsresult SetDisabled(PRBool aDisabled);
1728 nsresult GetMedia(nsAString *aMedia);
1729 nsresult SetMedia(const nsAString *aMedia);
1730 nsresult GetType(nsAString *aType);
1731 nsresult SetType(const nsAString *aType);
1735 object,
1736 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1737 local
1739 interface nsIURIContentListener : nsISupports
1741 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1742 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1743 nsIStreamListener **aContentHandler, PRBool *_retval);
1744 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1745 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1746 char **aDesiredContentType, PRBool *_retval);
1747 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1748 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1749 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1750 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1754 object,
1755 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1756 local
1758 interface nsITooltipListener : nsISupports
1760 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1761 nsresult OnHideTooltip();
1765 object,
1766 uuid(33e9d001-caab-4ba9-8961-54902f197202),
1767 local
1769 interface nsIWebBrowser : nsISupports
1771 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1772 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1773 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1774 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1775 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1776 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1777 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1778 nsresult GetIsActive(PRBool *aIsActive);
1779 nsresult SetIsActive(PRBool aIsActive);
1782 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1783 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1786 object,
1787 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1788 local
1790 interface nsIWebBrowserSetup : nsISupports
1792 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1795 typedef void* nativeWindow;
1798 object,
1799 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1800 local
1802 interface nsIBaseWindow : nsISupports
1804 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1805 PRInt32 y, PRInt32 cx, PRInt32 cy);
1806 nsresult Create();
1807 nsresult Destroy();
1808 nsresult SetPosition(PRInt32 x, PRInt32 y);
1809 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1810 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1811 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1812 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1813 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1814 nsresult Repaint(PRBool force);
1815 nsresult GetParentWidget(nsIWidget **aParentWidget);
1816 nsresult SetParentWidget(nsIWidget *aParentWidget);
1817 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1818 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1819 nsresult GetVisibility(PRBool *aVisibility);
1820 nsresult SetVisibility(PRBool aVisibility);
1821 nsresult GetEnabled(PRBool *aEnabled);
1822 nsresult SetEnabled(PRBool aEnabled);
1823 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1824 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1825 nsresult GetMainWidget(nsIWidget **aMainWidget);
1826 nsresult SetFocus();
1827 nsresult GetTitle(PRUnichar **aTitle);
1828 nsresult SetTitle(const PRUnichar *aTitle);
1831 cpp_quote("#define LOAD_FLAGS_NONE 0x00000")
1832 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1835 object,
1836 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1837 local
1839 interface nsIWebNavigation : nsISupports
1841 nsresult GetCanGoBack(PRBool *aCanGoBack);
1842 nsresult GetCanGoForward(PRBool *aCanGoForward);
1843 nsresult GoBack();
1844 nsresult GoForward();
1845 nsresult GotoIndex(PRInt32 index);
1846 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1847 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1848 nsresult Reload(PRUint32 aReloadFlags);
1849 nsresult Stop(PRUint32 aStopFlags);
1850 nsresult GetDocument(nsIDOMDocument **aDocument);
1851 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1852 nsresult GetReferringURI(nsIURI **aReferringURI);
1853 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1854 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1858 object,
1859 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1860 local
1862 interface nsIWebProgress : nsISupports
1864 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1865 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1866 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1867 nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1871 object,
1872 uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1873 local
1875 interface nsIPrintSettings : nsISupports
1877 typedef struct { char dummy; } nsIntMargin;
1879 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1880 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1881 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1882 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1883 nsresult Clone(nsIPrintSettings **_retval);
1884 nsresult Assign(nsIPrintSettings *aPS);
1885 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1886 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1887 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1888 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1889 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1890 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1891 nsresult GetEdgeTop(double *aEdgeTop);
1892 nsresult SetEdgeTop(double aEdgeTop);
1893 nsresult GetEdgeLeft(double *aEdgeLeft);
1894 nsresult SetEdgeLeft(double aEdgeLeft);
1895 nsresult GetEdgeBottom(double *aEdgeBottom);
1896 nsresult SetEdgeBottom(double aEdgeBottom);
1897 nsresult GetEdgeRight(double *aEdgeRight);
1898 nsresult SetEdgeRight(double aEdgeRight);
1899 nsresult GetMarginTop(double *aMarginTop);
1900 nsresult SetMarginTop(double aMarginTop);
1901 nsresult GetMarginLeft(double *aMarginLeft);
1902 nsresult SetMarginLeft(double aMarginLeft);
1903 nsresult GetMarginBottom(double *aMarginBottom);
1904 nsresult SetMarginBottom(double aMarginBottom);
1905 nsresult GetMarginRight(double *aMarginRight);
1906 nsresult SetMarginRight(double aMarginRight);
1907 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1908 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1909 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1910 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1911 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1912 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1913 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1914 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1915 nsresult GetScaling(double *aScaling);
1916 nsresult SetScaling(double aScaling);
1917 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1918 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1919 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1920 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1921 nsresult GetPrintRange(PRInt16 *aPrintRange);
1922 nsresult SetPrintRange(PRInt16 aPrintRange);
1923 nsresult GetTitle(PRUnichar **aTitle);
1924 nsresult SetTitle(const PRUnichar *aTitle);
1925 nsresult GetDocURL(PRUnichar **aDocURL);
1926 nsresult SetDocURL(const PRUnichar *aDocURL);
1927 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1928 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1929 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1930 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1931 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1932 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1933 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1934 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1935 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1936 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1937 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1938 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1939 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1940 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1941 nsresult GetIsCancelled(PRBool *aIsCancelled);
1942 nsresult SetIsCancelled(PRBool aIsCancelled);
1943 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1944 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1945 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1946 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1947 nsresult GetPrintSilent(PRBool *aPrintSilent);
1948 nsresult SetPrintSilent(PRBool aPrintSilent);
1949 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1950 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1951 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1952 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1953 nsresult GetPaperName(PRUnichar **aPaperName);
1954 nsresult SetPaperName(const PRUnichar *aPaperName);
1955 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1956 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1957 nsresult GetPaperData(PRInt16 *aPaperData);
1958 nsresult SetPaperData(PRInt16 aPaperData);
1959 nsresult GetPaperWidth(double *aPaperWidth);
1960 nsresult SetPaperWidth(double aPaperWidth);
1961 nsresult GetPaperHeight(double *aPaperHeight);
1962 nsresult SetPaperHeight(double aPaperHeight);
1963 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1964 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1965 nsresult GetPlexName(PRUnichar **aPlexName);
1966 nsresult SetPlexName(const PRUnichar *aPlexName);
1967 nsresult GetColorspace(PRUnichar **aColorspace);
1968 nsresult SetColorspace(const PRUnichar *aColorspace);
1969 nsresult GetResolutionName(PRUnichar **aResolutionName);
1970 nsresult SetResolutionName(const PRUnichar aResolutionName);
1971 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1972 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1973 nsresult GetPrintReversed(PRBool *aPrintReversed);
1974 nsresult SetPrintReversed(PRBool aPrintReversed);
1975 nsresult GetPrintInColor(PRBool *aPrintInColor);
1976 nsresult SetPrintInColor(PRBool aPrintInColor);
1977 nsresult GetOrientation(PRInt32 *aOrientation);
1978 nsresult SetOrientation(PRInt32 aOrientation);
1979 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1980 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1981 nsresult GetNumCopies(PRInt32 *aNumCopies);
1982 nsresult SetNumCopies(PRInt32 aNumCopies);
1983 nsresult GetPrinterName(PRUnichar **aPrinterName);
1984 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1985 nsresult GetPrintToFile(PRBool *aPrintToFile);
1986 nsresult SetPrintToFile(PRBool aPrintToFile);
1987 nsresult GetToFileName(PRUnichar **aToFileName);
1988 nsresult SetToFileName(const PRUnichar *aToFileName);
1989 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1990 nsresult SetOutputFormat(PRInt16 aOutputFormat);
1991 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1992 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1993 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1994 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1995 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1996 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1997 nsresult SetMarginInTwips(nsIntMargin *aMargin);
1998 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1999 nsresult GetMarginInTwips(nsIntMargin *aMargin);
2000 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
2001 nsresult SetupSilentPrinting();
2002 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2003 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2007 object,
2008 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
2009 local
2011 interface nsIWebBrowserPrint : nsISupports
2013 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
2014 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
2015 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
2016 nsresult GetDoingPrint(PRBool *aDoingPrint);
2017 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
2018 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
2019 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
2020 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
2021 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
2022 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
2023 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
2024 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
2025 nsIWebProgressListener *aWPListener);
2026 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
2027 nsresult Cancel();
2028 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
2029 nsresult ExitPrintPreview();
2033 object,
2034 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
2035 local
2037 interface nsIScrollable : nsISupports
2039 enum {
2040 ScrollOrientation_X = 1,
2041 ScrollOrientation_Y = 2
2044 enum {
2045 Scrollbar_Auto = 1,
2046 Scrollbar_Never = 2,
2047 Scrollbar_Always = 3
2050 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
2051 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
2052 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
2053 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
2054 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
2055 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
2056 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
2057 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
2058 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
2059 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
2063 object,
2064 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
2065 local
2067 interface nsIFile : nsISupports
2069 nsresult Append(const nsAString *node);
2070 nsresult AppendNative(const nsAString *node);
2071 nsresult Normalize();
2072 nsresult Create(PRUint32 type, PRUint32 permission);
2073 nsresult GetLeafName(nsAString *aLeafName);
2074 nsresult SetLeafName(const nsAString *aLeafName);
2075 nsresult GetNativeLeafName(nsAString *aLeafName);
2076 nsresult SetNativeLeafName(const nsAString *aLeafName);
2077 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2078 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2079 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2080 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2081 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2082 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2083 nsresult Remove(PRBool recursive);
2084 nsresult GetPermissions(PRUint32 *aPermissions);
2085 nsresult SetPermissions(PRUint32 pPermissions);
2086 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
2087 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
2088 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
2089 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
2090 nsresult GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink);
2091 nsresult SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink);
2092 nsresult GetFileSize(PRInt64 *aFileSize);
2093 nsresult SetFileSize(PRInt64 aFileSize);
2094 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
2095 nsresult GetTarget(nsAString *aTarget);
2096 nsresult GetNativeTarget(nsACString *aNativeTarget);
2097 nsresult GetPath(nsAString *aPath);
2098 nsresult GetNativePath(nsACString *aNativePath);
2099 nsresult Exists(PRBool *_retval);
2100 nsresult IsWritable(PRBool *_retval);
2101 nsresult IsReadable(PRBool *_retval);
2102 nsresult IsExecutable(PRBool *_retval);
2103 nsresult IsHidden(PRBool *_retval);
2104 nsresult IsDirectory(PRBool *_retval);
2105 nsresult IsFile(PRBool *_retval);
2106 nsresult IsSymlink(PRBool *_retval);
2107 nsresult IsSpecial(PRBool *_retval);
2108 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2109 nsresult Clone(nsIFile **_retval);
2110 nsresult Equals(nsIFile *inFile, PRBool *_retval);
2111 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
2112 nsresult GetParent(nsIFile **aParent);
2113 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2117 object,
2118 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
2119 local
2121 interface nsIPrefBranch : nsISupports
2123 nsresult GetRoot(char **aRoot);
2124 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2125 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
2126 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
2127 nsresult GetCharPref(const char *aPrefName, char **_retval);
2128 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2129 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2130 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2131 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2132 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2133 nsresult ClearUserPref(const char *aPrefName);
2134 nsresult LockPref(const char *aPrefName);
2135 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
2136 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
2137 nsresult UnlockPref(const char *aPrefName);
2138 nsresult DeleteBranch(const char *aStartingAt);
2139 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2140 nsresult ResetBranch(const char *aStartingAt);
2144 object,
2145 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2146 local
2148 interface nsIDirectoryServiceProvider : nsISupports
2150 nsresult GetFile(const char *prop, PRBool *persistent, nsIFile **_retval);
2154 object,
2155 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2156 local
2158 interface nsIProtocolHandler : nsISupports
2160 nsresult GetScheme(nsACString *aScheme);
2161 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2162 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2163 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2164 nsIURI *aBaseURI, nsIURI **_retval);
2165 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2166 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2170 object,
2171 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2172 local
2174 interface nsIExternalProtocolHandler : nsIProtocolHandler
2176 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2180 object,
2181 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2182 local
2184 interface nsIIOService : nsISupports
2186 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2187 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2188 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2189 nsIURI **_retval);
2190 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2191 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2192 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2193 nsIChannel **_retval);
2194 nsresult GetOffline(PRBool *aOffline);
2195 nsresult SetOffline(PRBool aOffline);
2196 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2197 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2201 object,
2202 uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2203 local,
2205 interface nsINetUtil : nsISupports
2207 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2208 PRBool *aHadCharset, nsACString *_retval);
2209 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2210 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2211 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2212 nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2213 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2214 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2215 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2216 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2217 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2221 object,
2222 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2223 local
2225 interface nsIWebBrowserFocus : nsISupports
2227 nsresult Activate();
2228 nsresult Deactivate();
2229 nsresult SetFocusAtFirstElement();
2230 nsresult SetFocusAtLastElement();
2231 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2232 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2233 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2234 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2238 object,
2239 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2240 local
2242 interface nsIWebBrowserChrome : nsISupports
2244 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2245 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2246 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2247 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2248 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2249 nsresult DestroyBrowserWindow();
2250 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2251 nsresult ShowAsModal();
2252 nsresult IsWindowModal(PRBool *_retval);
2253 nsresult ExitModalEventLoop(nsresult aStatus);
2257 object,
2258 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2259 local
2261 interface nsIDOMEventListener : nsISupports
2263 nsresult HandleEvent(nsIDOMEvent *event);
2267 object,
2268 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2269 local
2271 interface nsIDOMEventTarget : nsISupports
2273 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2274 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2275 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2279 object,
2280 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
2281 local
2283 interface nsIDOMEvent : nsISupports
2285 nsresult GetType(nsAString *aType);
2286 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2287 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2288 nsresult GetEventPhase(PRUint16 *aEventPhase);
2289 nsresult GetBubbles(PRBool *aBubbles);
2290 nsresult GetCancelable(PRBool *aCancelable);
2291 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2292 nsresult StopPropagation();
2293 nsresult PreventDefault();
2294 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2297 cpp_quote("#define CONTEXT_NONE 0x00")
2298 cpp_quote("#define CONTEXT_LINK 0x01")
2299 cpp_quote("#define CONTEXT_IMAGE 0x02")
2300 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2301 cpp_quote("#define CONTEXT_TEXT 0x08")
2302 cpp_quote("#define CONTEXT_INPUT 0x10")
2303 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2306 object,
2307 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2308 local
2310 interface nsIContextMenuListener : nsISupports
2312 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2316 object,
2317 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2318 local
2320 interface nsIDOMUIEvent : nsIDOMEvent
2322 nsresult GetView(nsIDOMAbstractView **aView);
2323 nsresult GetDetail(PRInt32 *aDetail);
2324 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2325 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2329 object,
2330 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2331 local
2333 interface nsIDOMMouseEvent : nsIDOMUIEvent
2335 nsresult GetScreenX(PRInt32 *aScreenX);
2336 nsresult GetScreenY(PRInt32 *aScreenY);
2337 nsresult GetClientX(PRInt32 *aClientX);
2338 nsresult GetClientY(PRInt32 *aClientY);
2339 nsresult GetCtrlKey(PRBool *aCtrlKey);
2340 nsresult GetShiftKey(PRBool *aShiftKey);
2341 nsresult GetAltKey(PRBool *aAltKey);
2342 nsresult GetMetaKey(PRBool *aMetaKey);
2343 nsresult GetButton(PRUint16 *aButton);
2344 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2345 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2346 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2347 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2348 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2349 nsIDOMEventTarget *relatedTargetArg);
2353 object,
2354 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2355 local
2357 interface nsIDOMKeyEvent : nsIDOMUIEvent
2359 nsresult GetCharCode(PRUint32 *aCharCode);
2360 nsresult GetKeyCode(PRUint32 *aKeyCode);
2361 nsresult GetAltKey(PRBool *aAltKey);
2362 nsresult GetCtrlKey(PRBool *aCtrlKey);
2363 nsresult GetShiftKey(PRBool *aShiftKey);
2364 nsresult GetMetaKey(PRBool *aMetaKey);
2365 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2366 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2367 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2368 PRUint32 charCodeArg);
2372 object,
2373 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2374 local
2376 interface nsIEmbeddingSiteWindow : nsISupports
2378 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2379 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2380 nsresult SetFocus();
2381 nsresult GetVisibility(PRBool *aVisibility);
2382 nsresult SetVisibility(PRBool aVisibility);
2383 nsresult GetTitle(PRUnichar **aTitle);
2384 nsresult SetTitle(const PRUnichar *aTitle);
2385 nsresult GetSiteWindow(void **aSiteWindow);
2389 object,
2390 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2391 local
2393 interface nsIComponentRegistrar : nsISupports
2395 nsresult AutoRegister(nsIFile *aSpec);
2396 nsresult AutoUnregister(nsIFile *aSpec);
2397 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2398 const char *aContractID, nsIFactory *aFactory);
2399 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2400 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2401 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2402 const char *aType);
2403 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2404 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2405 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2406 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2407 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2408 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2409 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2413 object,
2414 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2415 local
2417 interface nsIPromptService : nsISupports
2419 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2420 const PRUnichar *aText);
2421 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2422 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2423 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2424 const PRUnichar *aText, PRBool *_retval);
2425 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2426 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2427 PRBool *_retval);
2428 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2429 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2430 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2431 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2432 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2433 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2434 PRBool *aCheckState, PRBool *_retval);
2435 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2436 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2437 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2438 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2439 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2440 PRBool *aCheckState, PRBool *_retval);
2441 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2442 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2443 PRInt32 *aOutSelection, PRBool *_retval);
2447 object,
2448 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2449 local
2451 interface nsITooltipTextProvider : nsISupports
2453 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2457 object,
2458 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2459 local
2461 interface nsIProfile : nsISupports
2463 nsresult GetProfileCount(PRInt32 *aProfileCount);
2464 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2465 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2466 nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2467 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2468 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2469 nsresult CreateNewProfile(const PRUnichar *profileName,
2470 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2471 PRBool useExistingDir);
2472 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2473 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2474 nsresult CloneProfile(const PRUnichar *profileName);
2478 object,
2479 uuid(30465632-a777-44cc-90f9-8145475ef999),
2480 local
2482 interface nsIWindowCreator : nsISupports
2484 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2485 nsIWebBrowserChrome **_retval);
2489 object,
2490 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2491 local
2493 interface nsIWindowCreator2 : nsIWindowCreator
2495 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2496 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2497 nsIWebBrowserChrome **_retval);
2501 object,
2502 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2503 local
2505 interface nsIWindowWatcher : nsISupports
2507 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2508 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2509 nsresult RegisterNotification(nsIObserver *aObserver);
2510 nsresult UnregisterNotification(nsIObserver *aObserver);
2511 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2512 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2513 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2514 nsresult SetWindowCreator(nsIWindowCreator *creator);
2515 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2516 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2517 nsIDOMWindow **_retval);
2518 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2519 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2523 object,
2524 uuid(24f3f4da-18a4-448d-876d-7360fefac029),
2525 local
2527 interface nsIEditingSession : nsISupports
2529 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2530 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2531 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2532 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2533 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2534 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2535 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2536 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2537 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2538 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2539 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2540 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2541 nsresult GetJsAndPluginsDisabled(PRBool *aJsAndPluginsDisabled);
2545 object,
2546 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2547 local
2549 interface nsICommandParams : nsISupports
2551 nsresult GetValueType(const char *name, PRInt16 *_retval);
2552 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2553 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2554 nsresult GetDoubleValue(const char *name, double *_retval);
2555 nsresult GetStringValue(const char *name, nsAString *_retval);
2556 nsresult GetCStringValue(const char *name, char **_retval);
2557 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2558 nsresult SetBooleanValue(const char *name, PRBool value);
2559 nsresult SetLongValue(const char *name, PRInt32 value);
2560 nsresult SetDoubleValue(const char *name, double value);
2561 nsresult SetStringValue(const char *name, const nsAString *value);
2562 nsresult SetCStringValue(const char *name, const char *value);
2563 nsresult SetISupportsValue(const char *name, nsISupports *value);
2564 nsresult RemoveValue(const char *name);
2565 nsresult HasMoreElements(PRBool *_retval);
2566 nsresult First();
2567 nsresult GetNext(char **_retval);
2571 object,
2572 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2573 local
2575 interface nsICommandManager : nsISupports
2577 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2578 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2579 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2580 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2581 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2582 nsICommandParams *aCommandParams);
2583 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2584 nsIDOMWindow *aTargetWindow);
2588 object,
2589 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2590 local
2592 interface nsIControllerContext : nsISupports
2594 nsresult Init(nsIControllerCommandTable *aCommandTable);
2595 nsresult SetCommandContext(nsISupports *aCommandContext);
2599 object,
2600 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2601 local
2603 interface nsIController : nsISupports
2605 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2606 nsresult SupportsCommand(const char *command, PRBool *_retval);
2607 nsresult DoCommand(const char *command);
2608 nsresult OnEvent(const char *eventName);
2612 object,
2613 uuid(dd254504-e273-4923-9ec1-d8421a6635f1),
2614 local
2616 interface nsIContent : nsISupports
2618 /* This is not a real interface declaration. It's too internal for us. */
2622 object,
2623 uuid(b2274bc3-4a1c-4e64-8de4-3bc650288438),
2624 local
2626 interface nsIDocument : nsISupports
2628 /* This is not a real interface declaration. It's too internal for us. */
2632 object,
2633 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
2634 local
2636 interface nsIContentSerializer : nsISupports
2638 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2639 PRBool aIsWholeDocument);
2640 nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2641 nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
2642 PRInt32 aEndOffset, nsAString *aStr);
2643 nsresult AppendProcessingInstruction(nsIContent* aPI, PRInt32 aStartOffset,
2644 PRInt32 aEndOffset, nsAString *aStr);
2645 nsresult AppendComment(nsIContent *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2646 nsAString *aStr);
2647 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
2648 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
2649 nsAString *aStr);
2650 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
2651 nsresult Flush(nsAString *aStr);
2652 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
2656 object,
2657 uuid(972e54e1-dec3-4e3f-87ec-408a7dbcfd92),
2658 local
2660 interface nsIEditor : nsISupports
2662 typedef void *nsIPresShellPtr;
2663 typedef void *nsIContentPtr;
2665 nsresult GetSelection([out] nsISelection *_retval);
2666 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2667 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2668 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2669 nsresult PostCreate();
2670 nsresult PreDestroy();
2671 nsresult GetFlags([out] PRUint32 *_retval);
2672 nsresult SetFlags([in] PRUint32 val);
2673 nsresult GetContentsMIMEType([out] char **_retval);
2674 nsresult SetContentsMIMEType([in] const char *val);
2675 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2676 nsresult GetDocument([out] nsIDOMDocument **_retval);
2677 nsresult GetRootElement([out] nsIDOMElement **_retval);
2678 nsresult GetSelectionController([out] nsISelectionController **_retval);
2679 nsresult DeleteSelection([in] PRInt16 action);
2680 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2681 nsresult GetDocumentModified([out] PRBool *_retval);
2682 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2683 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2684 nsresult ResetModificationCount();
2685 nsresult GetModificationCount([out] PRInt32 *_retval);
2686 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2687 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2688 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2689 nsresult DoTransaction([in] nsITransaction *txn);
2690 nsresult EnableUndo([in] PRBool enable);
2691 nsresult Undo([in] PRUint32 count);
2692 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2693 nsresult Redo([in] PRUint32 count);
2694 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2695 nsresult BeginTransaction();
2696 nsresult EndTransaction();
2697 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2698 nsresult EndPlaceHolderTransaction();
2699 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2700 nsresult SetShouldTxnSetSelection([in] PRBool should);
2701 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2702 nsresult SyncRealTimeSpell();
2703 nsresult SetSpellcheckUserOverride(PRBool enable);
2704 nsresult Cut();
2705 nsresult CanCut([out] PRBool *_retval);
2706 nsresult Copy();
2707 nsresult CanCopy([out] PRBool *_retval);
2708 nsresult Paste([in] PRInt32 aSelectionType);
2709 nsresult PasteTransferable(nsITransferable *aTransferable);
2710 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2711 nsresult CanPasteTransferable(nsITransferable *aTransferable, PRBool *_retval);
2712 nsresult SelectAll();
2713 nsresult BeginningOfDocument();
2714 nsresult EndOfDocument();
2715 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2716 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2717 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2718 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2719 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2720 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2721 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2722 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2723 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2724 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2725 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2726 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2727 nsresult DeleteNode([in] nsIDOMNode *child);
2728 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2729 nsresult SwitchTextDirection();
2730 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2731 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2732 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2733 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2734 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2735 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2736 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2737 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2738 nsresult DumpContentTree();
2739 nsresult DebugDumpContent();
2740 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2741 PRBool IsModifiableNode(nsIDOMNode *aNode);
2745 object,
2746 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2747 local
2749 interface nsIHTMLEditor : nsISupports
2751 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2752 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2753 nsresult RemoveAllDefaultProperties();
2754 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2755 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2756 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2757 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2758 nsresult RemoveAllInlineProperties();
2759 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2760 nsresult IncreaseFontSize();
2761 nsresult DecreaseFontSize();
2762 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2763 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2764 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2765 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2766 nsresult InsertHTML([in] nsAString *aInputString);
2767 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2768 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2769 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);
2770 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2771 nsresult SetDocumentTitle([in] nsAString *aTitle);
2772 nsresult UpdateBaseURL();
2773 nsresult SelectElement([in] nsIDOMElement *aElement);
2774 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2775 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2776 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2777 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2778 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2779 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2780 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2781 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2782 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2783 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2784 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2785 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2786 nsresult RemoveList([in] nsAString *aListType);
2787 nsresult Indent([in] nsAString *aIndent);
2788 nsresult Align([in] nsAString *aAlign);
2789 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2790 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2791 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2792 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2793 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2794 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2795 nsresult SetBackgroundColor([in] nsAString *aColor);
2796 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2797 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2798 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2799 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2800 nsresult SetIsCSSEnabled([in] PRBool prb);
2801 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2802 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2803 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2804 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2805 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2806 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2807 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2808 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2812 object,
2813 uuid(bf6db598-3833-400b-9e53-ec220cb2496c),
2814 local
2816 interface nsIDocShell : nsISupports
2818 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
2819 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
2820 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
2821 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
2822 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
2823 nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
2824 nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, PRBool aReplace);
2825 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
2826 nsresult PrepareForNewContentModel();
2827 nsresult SetCurrentURI(nsIURI *aURI);
2828 nsresult FirePageHideNotification(PRBool isUnload);
2829 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
2830 nsresult GetPresShell(nsIPresShell **aPresShell);
2831 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
2832 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
2833 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
2834 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
2835 nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
2836 nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
2837 nsresult GetAllowPlugins(PRBool *aAllowPlugins);
2838 nsresult SetAllowPlugins(PRBool aAllowPlugins);
2839 nsresult GetAllowJavascript(PRBool *aAllowJavascript);
2840 nsresult SetAllowJavascript(PRBool aAllowJavascript);
2841 nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
2842 nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
2843 nsresult GetAllowSubframes(PRBool *aAllowSubframes);
2844 nsresult SetAllowSubframes(PRBool aAllowSubframes);
2845 nsresult GetAllowImages(PRBool *aAllowImages);
2846 nsresult SetAllowImages(PRBool aAllowImages);
2847 nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
2848 nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
2849 nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
2850 nsresult GetAppType(PRUint32 *aAppType);
2851 nsresult SetAppType(PRUint32 aAppType);
2852 nsresult GetAllowAuth(PRBool *aAllowAuth);
2853 nsresult SetAllowAuth(PRBool aAllowAuth);
2854 nsresult GetZoom(float *aZoom);
2855 nsresult SetZoom(float aZoom);
2856 nsresult GetMarginWidth(PRInt32 *aMarginWidth);
2857 nsresult SetMarginWidth(PRInt32 aMarginWidth);
2858 nsresult GetMarginHeight(PRInt32 *aMarginHeight);
2859 nsresult SetMarginHeight(PRInt32 aMarginHeight);
2860 nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
2861 nsresult GetBusyFlags(PRUint32 *aBusyFlags);
2862 nsresult GetLoadType(PRUint32 *aLoadType);
2863 nsresult SetLoadType(PRUint32 aLoadType);
2864 nsresult IsBeingDestroyed(PRBool *_retval);
2865 nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
2866 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
2867 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
2868 nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
2869 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
2870 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
2871 nsresult SuspendRefreshURIs();
2872 nsresult ResumeRefreshURIs();
2873 nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
2874 nsresult FinishRestore();
2875 nsresult GetRestoringDocument(PRBool *aRestoringDocument);
2876 nsresult GetUseErrorPages(PRBool *aUseErrorPages);
2877 nsresult SetUseErrorPages(PRBool aUseErrorPages);
2878 nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
2879 nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
2880 nsresult HistoryPurged(PRInt32 numEntries);
2881 nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
2882 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
2883 PRBool create, nsIDOMStorage **_retval);
2884 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
2885 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
2886 nsresult SetChildOffset(PRUint32 offset);
2887 nsresult GetIsInUnload(PRBool *aIsInUnload);
2888 nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
2889 void DetachEditorFromWindow();
2890 nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
2891 nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
2892 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
2893 nsresult GetCanExecuteScripts(PRBool *aCanExecuteScripts);
2894 nsresult GetIsActive(PRBool *aIsActive);
2895 nsresult SetIsActive(PRBool aIsActive);
2899 object,
2900 uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa),
2901 local
2903 interface nsIMutationObserver : nsISupports
2905 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2906 void /*CharacterDataChangeInfo*/ *aInfo);
2907 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2908 void /*CharacterDataChangeInfo*/ *aInfo);
2909 void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2910 nsIAtom *aAttribute, PRInt32 aModType);
2911 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2912 nsIAtom *aAttribute, PRInt32 aModType);
2913 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent* aFirstNewContent,
2914 PRInt32 aNewIndexInContainer);
2915 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2916 PRInt32 aIndexInContainer);
2917 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2918 PRInt32 aIndexInContainer, nsIContent *aPreviousSibling);
2919 void NodeWillBeDestroyed(const nsINode *aNode);
2920 void ParentChainChanged(nsIContent *aContent);
2924 object,
2925 uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2926 local
2928 interface nsIDocumentObserver : nsIMutationObserver
2930 typedef int nsUpdateType;
2932 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2933 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2934 void BeginLoad(nsIDocument *aDocument);
2935 void EndLoad(nsIDocument *aDocument);
2936 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2937 PRInt32 aStateMask);
2938 void DocumentStatesChanged(nsIDocument* aDocument, PRInt32 aStateMask);
2939 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2940 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2941 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2942 PRBool aApplicable);
2943 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2944 nsIStyleRule *aNewStyleRule);
2945 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2946 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2947 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2948 void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);
2951 /* Parts of npapi.h */
2953 cpp_quote("#define NP_VERSION_MAJOR 0")
2954 cpp_quote("#define NP_VERSION_MINOR 25")
2956 typedef unsigned char NPBool;
2957 typedef INT16 NPError;
2958 typedef INT16 NPReason;
2959 typedef char *NPMIMEType;
2961 typedef struct _NPP {
2962 void *pdata;
2963 void *ndata;
2964 } NPP_t, *NPP;
2966 typedef struct _NPStream {
2967 void *pdata;
2968 void *ndata;
2969 const char *url;
2970 UINT32 end;
2971 UINT32 lastmodified;
2972 void *notifyData;
2973 const char *headers;
2974 } NPStream;
2976 typedef struct _NPSavedData {
2977 INT32 len;
2978 void *buf;
2979 } NPSavedData;
2981 typedef struct _NPRect {
2982 UINT16 top;
2983 UINT16 left;
2984 UINT16 bottom;
2985 UINT16 right;
2986 } NPRect;
2988 typedef enum {
2989 NPFocusNext = 0,
2990 NPFocusPrevious = 1
2991 } NPFocusDirection;
2993 #define NP_ABI_MASK 0
2995 typedef enum {
2996 NPPVpluginNameString = 1,
2997 NPPVpluginDescriptionString,
2998 NPPVpluginWindowBool,
2999 NPPVpluginTransparentBool,
3000 NPPVjavaClass,
3001 NPPVpluginWindowSize,
3002 NPPVpluginTimerInterval,
3003 NPPVpluginScriptableInstance = (10 | NP_ABI_MASK),
3004 NPPVpluginScriptableIID = 11,
3005 NPPVjavascriptPushCallerBool = 12,
3006 NPPVpluginKeepLibraryInMemory = 13,
3007 NPPVpluginNeedsXEmbed = 14,
3008 NPPVpluginScriptableNPObject = 15,
3009 NPPVformValue = 16,
3010 NPPVpluginUrlRequestsDisplayedBool = 17,
3011 NPPVpluginWantsAllNetworkStreams = 18,
3012 NPPVpluginNativeAccessibleAtkPlugId = 19,
3013 NPPVpluginCancelSrcStream = 20,
3014 NPPVSupportsAdvancedKeyHandling = 21
3015 } NPPVariable;
3017 typedef enum {
3018 NPNVxDisplay = 1,
3019 NPNVxtAppContext,
3020 NPNVnetscapeWindow,
3021 NPNVjavascriptEnabledBool,
3022 NPNVasdEnabledBool,
3023 NPNVisOfflineBool,
3024 NPNVserviceManager = (10 | NP_ABI_MASK),
3025 NPNVDOMElement = (11 | NP_ABI_MASK),
3026 NPNVDOMWindow = (12 | NP_ABI_MASK),
3027 NPNVToolkit = (13 | NP_ABI_MASK),
3028 NPNVSupportsXEmbedBool = 14,
3029 NPNVWindowNPObject = 15,
3030 NPNVPluginElementNPObject = 16,
3031 NPNVSupportsWindowless = 17,
3032 NPNVprivateModeBool = 18,
3033 NPNVsupportsAdvancedKeyHandling = 21
3034 } NPNVariable;
3036 typedef enum {
3037 NPWindowTypeWindow = 1,
3038 NPWindowTypeDrawable
3039 } NPWindowType;
3041 typedef struct _NPWindow {
3042 void *window;
3043 INT32 x;
3044 INT32 y;
3045 UINT32 width;
3046 UINT32 height;
3047 NPRect clipRect;
3048 NPWindowType type;
3049 } NPWindow;
3051 typedef struct _NPFullPrint {
3052 NPBool pluginPrinted;
3053 NPBool printOne;
3054 void *platformPrint;
3055 } NPFullPrint;
3057 typedef struct _NPEmbedPrint {
3058 NPWindow window;
3059 void *platformPrint;
3060 } NPEmbedPrint;
3062 typedef struct _NPPrint {
3063 UINT16 mode;
3064 union {
3065 NPFullPrint fullPrint;
3066 NPEmbedPrint embedPrint;
3067 } print;
3068 } NPPrint;
3070 typedef HRGN NPRegion;
3073 object,
3074 uuid(84994340-e120-4051-824f-d4ee8aef1a3e),
3075 local
3077 interface nsIPluginInstance : nsISupports
3079 typedef void *JSContext;
3080 typedef void *JSObject;
3082 nsresult Initialize(nsIPluginInstanceOwner *aOwner, const char *aMIMEType);
3083 nsresult Start();
3084 nsresult Stop();
3085 nsresult SetWindow(NPWindow *aWindow);
3086 nsresult NewStreamToPlugin(nsIPluginStreamListener **aListener);
3087 nsresult NewStreamFromPlugin(const char *aType, const char *aTarget, nsIOutputStream **aResult);
3088 nsresult Print(NPPrint *aPlatformPrint);
3089 nsresult HandleEvent(void *aEvent, PRInt16 *aHandled);
3090 nsresult InvalidateRect(NPRect *aRect);
3091 nsresult InvalidateRegion(NPRegion aRegion);
3092 nsresult ForceRedraw();
3093 nsresult GetMIMEType(const char **aValue);
3094 nsresult GetJSContext(JSContext **aJSContext);
3095 nsresult GetOwner(nsIPluginInstanceOwner **aOwner);
3096 nsresult SetOwner(nsIPluginInstanceOwner *aOwner);
3097 nsresult ShowStatus(const char *aMessage);
3098 nsresult InvalidateOwner();
3099 nsresult GetJSObject(JSContext *cx, JSObject **_retval);
3100 nsresult GetFormValue(nsAString *aFormValue);
3101 nsresult PushPopupsEnabledState(PRBool aEnabled);
3102 nsresult PopPopupsEnabledState();
3103 nsresult GetPluginAPIVersion(PRUint16 *aPluginAPIVersion);
3104 nsresult DefineJavaProperties();
3105 nsresult ShouldCache(PRBool *_retval);
3106 nsresult IsWindowless(PRBool *_retval);
3107 nsresult IsTransparent(PRBool *_retval);
3108 nsresult GetValueFromPlugin(NPPVariable variable, void *aValue);
3109 nsresult GetDrawingModel(PRInt32 *_retval);
3113 object,
3114 uuid(6d827df5-b5cd-416c-85cb-3cdd05c7aed1),
3115 local
3117 interface nsIPluginTagInfo : nsISupports
3119 typedef enum {
3120 nsPluginTagType_Unknown,
3121 nsPluginTagType_Embed,
3122 nsPluginTagType_Object,
3123 nsPluginTagType_Applet
3124 } nsPluginTagType;
3126 nsresult GetAttributes(PRUint16 *aCount, const char ***aNames, const char ***aValues);
3127 nsresult GetAttribute(const char *aName, const char **aResult);
3128 nsresult GetTagType(nsPluginTagType *aTagType);
3129 nsresult GetTagText(const char **aTagText);
3130 nsresult GetParameters(PRUint16 *aCount, const char ***aNames, const char ***aValues);
3131 nsresult GetParameter(const char *aName, const char **aResult);
3132 nsresult GetDocumentBase(const char **aDocumentBase);
3133 nsresult GetDocumentEncoding(const char **aDocumentEncoding);
3134 nsresult GetAlignment(const char **aElignment);
3135 nsresult GetWidth(PRUint32 *aWidth);
3136 nsresult GetHeight(PRUint32 *aHeight);
3137 nsresult GetBorderVertSpace(PRUint32 *aBorderVertSpace);
3138 nsresult GetBorderHorizSpace(PRUint32 *aBorderHorizSpace);
3139 nsresult GetUniqueID(PRUint32 *aUniqueID);
3140 nsresult GetDOMElement(nsIDOMElement **aDOMElement);