ddraw: Use unsafe_impl_from_IDirect3DViewport for application provided interfaces.
[wine/multimedia.git] / dlls / mshtml / nsiface.idl
blob8c40e058774a3fc7ad5338ed361f4cd407d4805e
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.3\"")
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 nsIDOMWindow;
91 interface nsIDOMElement;
92 interface nsIDOMRange;
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 nsIDOMDocumentType;
115 typedef nsISupports nsIDOMDOMImplementation;
116 typedef nsISupports nsIDOMCDATASection;
117 typedef nsISupports nsIDOMProcessingInstruction;
118 typedef nsISupports nsIDOMEntityReference;
119 typedef nsISupports nsIWebProgressListener;
120 typedef nsISupports nsIDOMCSSValue;
121 typedef nsISupports nsIPrintSession;
122 typedef nsISupports nsIControllerCommandTable;
123 typedef nsISupports nsIPrincipal;
124 typedef nsISupports nsIAtom;
125 typedef nsISupports nsISupportsArray;
126 typedef nsISupports nsIContentFilter;
127 typedef nsISupports nsIDOMMediaList;
128 typedef nsISupports nsIDOMHTMLTableCaptionElement;
129 typedef nsISupports nsIDOMHTMLTableSectionElement;
130 typedef nsISupports nsIDOMClientRectList;
131 typedef nsISupports nsIDOMLocation;
132 typedef nsISupports nsINode;
133 typedef nsISupports nsIStyleSheet;
134 typedef nsISupports nsIStyleRule;
135 typedef nsISupports nsIVariant;
136 typedef nsISupports nsIDOMUserDataHandler;
137 typedef nsISupports nsIDocShellLoadInfo;
138 typedef nsISupports nsISHEntry;
139 typedef nsISupports nsIPresShell;
140 typedef nsISupports nsIContentViewer;
141 typedef nsISupports nsIDocumentCharsetInfo;
142 typedef nsISupports nsILayoutHistoryState;
143 typedef nsISupports nsISecureBrowserUI;
144 typedef nsISupports nsIDOMStorage;
145 typedef nsISupports nsIDOMDOMTokenList;
146 typedef nsISupports nsITransferable;
147 typedef nsISupports nsIDOMHTMLHeadElement;
148 typedef nsISupports nsIDOMFileList;
149 typedef nsISupports nsIControllers;
150 typedef nsISupports nsIDOMValidityState;
151 typedef nsISupports nsIPluginInstanceOwner;
152 typedef nsISupports nsIPluginStreamListener;
153 typedef nsISupports nsIContentSink;
154 typedef nsISupports nsIParserFilter;
155 typedef nsISupports nsIDTD;
156 typedef nsISupports nsIObserver;
157 typedef nsISupports nsIDOMNodeFilter;
158 typedef nsISupports nsIDOMNodeIterator;
159 typedef nsISupports nsIDOMTreeWalker;
160 typedef nsISupports nsIHttpUpgradeListener;
161 typedef nsISupports nsIDOMDOMStringMap;
163 typedef void *JSContext;
164 typedef void *JSObject;
167 object,
168 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
169 local
171 interface nsIServiceManager : nsISupports
173 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
174 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
175 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
176 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
180 object,
181 uuid(00000001-0000-0000-c000-000000000046),
182 local
184 interface nsIFactory : nsISupports
186 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
187 nsresult LockFactory(PRBool lock);
191 object,
192 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
193 local
195 interface nsIComponentManager : nsISupports
197 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
198 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
199 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
200 void **result);
201 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
202 nsIIDRef aIID, void **result);
206 object,
207 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
208 local
210 interface nsIMemory : nsISupports
212 void *Alloc(/*size_t*/ int size);
213 void *Realloc(void *_ptr, /*size_t*/ int newSize);
214 void Free(void *_ptr);
215 nsresult HeapMinimize(PRBool immediate);
216 nsresult IsLowMemory(PRBool *_retval);
220 object,
221 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
222 local
224 interface nsIWeakReference : nsISupports
226 nsresult QueryReferent(const nsIID *riid, void **result);
230 object,
231 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
232 local
234 interface nsISupportsWeakReference : nsISupports
236 nsresult GetWeakReference(nsIWeakReference **_retval);
240 object,
241 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
242 local
244 interface nsIInterfaceRequestor : nsISupports
246 nsresult GetInterface(const nsIID *riid, void **result);
250 object,
251 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
252 local
254 interface nsIRunnable : nsISupports
256 nsresult Run();
260 object,
261 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
262 local
264 interface nsISimpleEnumerator : nsISupports
266 nsresult HasMoreElements(PRBool *_retval);
267 nsresult GetNext(nsISupports **_retval);
271 object,
272 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
273 local
275 interface nsIInputStream : nsISupports
277 nsresult Close();
278 nsresult Available(PRUint32 *_retval);
279 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
280 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
281 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
282 PRUint32 aCount, PRUint32 *aWriteCount),
283 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
284 nsresult IsNonBlocking(PRBool *_retval);
288 object,
289 uuid(d6d04c36-0fa4-4db3-be05-4a18397103e2),
290 local
292 interface nsIURI : nsISupports
294 nsresult GetSpec(nsACString *aSpec);
295 nsresult SetSpec(const nsACString *aSpec);
296 nsresult GetPrePath(nsACString *aPrePath);
297 nsresult GetScheme(nsACString *aScheme);
298 nsresult SetScheme(const nsACString *aScheme);
299 nsresult GetUserPass(nsACString *aUserPass);
300 nsresult SetUserPass(const nsACString *aUserPass);
301 nsresult GetUsername(nsACString *aUsername);
302 nsresult SetUsername(const nsACString *aUsername);
303 nsresult GetPassword(nsACString *aPassword);
304 nsresult SetPassword(const nsACString *aPassword);
305 nsresult GetHostPort(nsACString *aHostPort);
306 nsresult SetHostPort(const nsACString *aHostPort);
307 nsresult GetHost(nsACString *aHost);
308 nsresult SetHost(const nsACString *aHost);
309 nsresult GetPort(PRInt32 *aPort);
310 nsresult SetPort(PRInt32 aPort);
311 nsresult GetPath(nsACString *aPath);
312 nsresult SetPath(const nsACString *aPath);
313 nsresult GetRef(nsACString *aRef);
314 nsresult SetRef(const nsACString *aRef);
315 nsresult Equals(nsIURI *other, PRBool *_retval);
316 nsresult EqualsExceptRef(nsIURI *other, PRBool *_retval);
317 nsresult SchemeIs(const char *scheme, PRBool *_retval);
318 nsresult Clone(nsIURI **_retval);
319 nsresult CloneIgnoringRef(nsIURI **_retval);
320 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
321 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
322 nsresult GetAsciiHost(nsACString *aAsciiHost);
323 nsresult GetOriginCharset(nsACString *aOriginCharset);
327 object,
328 uuid(55e824ca-f1bb-4452-9e14-fcfa1ff091ce),
329 local
331 interface nsIURL : nsIURI
333 nsresult GetFilePath(nsACString *aFilePath);
334 nsresult SetFilePath(const nsACString *aFilePath);
335 nsresult GetParam(nsACString *aParam);
336 nsresult SetParam(const nsACString *aParam);
337 nsresult GetQuery(nsACString *aQuery);
338 nsresult SetQuery(const nsACString *aQuery);
339 nsresult GetDirectory(nsACString *aDirectory);
340 nsresult SetDirectory(const nsACString *aDirectory);
341 nsresult GetFileName(nsACString *aFileName);
342 nsresult SetFileName(const nsACString *aFileName);
343 nsresult GetFileBaseName(nsACString *aFileBaseName);
344 nsresult SetFileBaseName(const nsACString *aFileBaseName);
345 nsresult GetFileExtension(nsACString *aFileExtension);
346 nsresult SetFileExtension(const nsACString *aFileExtension);
347 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
348 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
352 object,
353 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
354 local
356 interface nsIRequest : nsISupports
358 nsresult GetName(nsACString *aName);
359 nsresult IsPending(PRBool *_retval);
360 nsresult GetStatus(nsresult *aStatus);
361 nsresult Cancel(nsresult aStatus);
362 nsresult Suspend();
363 nsresult Resume();
364 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
365 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
366 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
367 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
371 object,
372 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
373 local
375 interface nsIRequestObserver : nsISupports
377 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
378 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
382 object,
383 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
384 local
386 interface nsIStreamListener : nsIRequestObserver
388 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
389 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
393 object,
394 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
395 local
397 interface nsILoadGroup : nsIRequest
399 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
400 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
401 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
402 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
403 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
404 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
405 nsresult GetRequests(nsISimpleEnumerator **aRequests);
406 nsresult GetActiveCount(PRUint32 *aActiveCount);
407 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
408 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
412 object,
413 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
414 local
416 interface nsIChannel : nsIRequest
418 nsresult GetOriginalURI(nsIURI **aOriginalURI);
419 nsresult SetOriginalURI(nsIURI *aOriginalURI);
420 nsresult GetURI(nsIURI **aURI);
421 nsresult GetOwner(nsISupports **aOwner);
422 nsresult SetOwner(nsISupports *aOwner);
423 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
424 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
425 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
426 nsresult GetContentType(nsACString *aContentType);
427 nsresult SetContentType(const nsACString *aContentType);
428 nsresult GetContentCharset(nsACString *aContentCharset);
429 nsresult SetContentCharset(const nsACString *aContentCharset);
430 nsresult GetContentLength(PRInt32 *aContentLength);
431 nsresult SetContentLength(PRInt32 aContentLength);
432 nsresult Open(nsIInputStream **_retval);
433 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
437 object,
438 uuid(0cf40717-d7c1-4a94-8c1e-d6c9734101bb),
439 local
441 interface nsIHttpHeaderVisitor : nsISupports
443 nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
447 object,
448 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
449 local
451 interface nsIHttpChannel : nsIChannel
453 nsresult GetRequestMethod(nsACString *aRequestMethod);
454 nsresult SetRequestMethod(const nsACString *aRequestMethod);
455 nsresult GetReferrer(nsIURI **aReferrer);
456 nsresult SetReferrer(nsIURI *aReferrer);
457 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
458 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
459 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
460 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
461 nsresult SetAllowPipelining(PRBool aAllowPipelining);
462 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
463 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
464 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
465 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
466 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
467 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
468 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
469 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
470 nsresult IsNoStoreResponse(PRBool *_retval);
471 nsresult IsNoCacheResponse(PRBool *_retval);
475 object,
476 uuid(9363fd96-af59-47e8-bddf-1d5e91acd336),
477 local
479 interface nsIHttpChannelInternal : nsISupports
481 nsresult GetDocumentURI(nsIURI **aDocumentURI);
482 nsresult SetDocumentURI(nsIURI *aDocumentURI);
483 nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
484 nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
485 nsresult SetCookie(const char *aCookieHeader);
486 nsresult SetupFallbackChannel(const char *aFallbackKey);
487 nsresult GetForceAllowThirdPartyCookie(PRBool *aForceAllowThirdPartyCookie);
488 nsresult SetForceAllowThirdPartyCookie(PRBool aForceAllowThirdPartyCookie);
489 nsresult GetCanceled(PRBool *aCanceled);
490 nsresult GetChannelIsForDownload(PRBool *aChannelIsForDownload);
491 nsresult SetChannelIsForDownload(PRBool aChannelIsForDownload);
492 nsresult GetLocalAddress(nsACString *aLocalAddress);
493 nsresult GetLocalPort(PRInt32 *aLocalPort);
494 nsresult GetRemoteAddress(nsACString *aRemoteAddress);
495 nsresult GetRemotePort(PRInt32 *aRemotePort);
496 nsresult SetCacheKeysRedirectChain(void /*nsTArray<nsCString>*/ *cacheKeys);
497 nsresult HTTPUpgrade(const nsACString *aProtocolName, nsIHttpUpgradeListener *aListener);
501 object,
502 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
503 local
505 interface nsIUploadChannel : nsISupports
507 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
508 PRInt32 aContentLength);
509 nsresult GetUploadStream(nsIInputStream **aUploadStream);
513 object,
514 uuid(8d171460-a716-41f1-92be-8c659db39b45),
515 local
517 interface nsIAsyncVerifyRedirectCallback : nsISupports
519 nsresult OnRedirectVerifyCallback(nsresult result);
523 object,
524 uuid(a430d870-df77-4502-9570-d46a8de33154),
525 local
527 interface nsIChannelEventSink : nsISupports
529 cpp_quote("#define REDIRECT_TEMPORARY 1")
530 cpp_quote("#define REDIRECT_PERMANENT 2")
531 cpp_quote("#define REDIRECT_INTERNAL 4")
533 nsresult AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, PRUint32 flags,
534 nsIAsyncVerifyRedirectCallback *callback);
538 object,
539 uuid(2938307a-9d70-4b63-8afc-0197e82318ad),
540 local
542 interface nsIDOMCSSRule : nsISupports
544 nsresult GetType(PRUint16 *aType);
545 nsresult GetCssText(nsAString *aCssText);
546 nsresult SetCssText(const nsAString *aCssText);
547 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
548 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
552 object,
553 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
554 local
556 interface nsIDOMCSSStyleDeclaration : nsISupports
558 nsresult GetCssText(nsAString *aCssText);
559 nsresult SetCssText(const nsAString *aCssText);
560 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
561 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
562 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
563 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
564 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
565 const nsAString *priority);
566 nsresult GetLength(PRUint32 *aLength);
567 nsresult Item(PRUint32 index, nsAString *_retval);
568 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
572 object,
573 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
574 local
576 interface nsIDOMCSSRuleList : nsISupports
578 nsresult GetLength(PRUint32 *aLength);
579 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
583 object,
584 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
585 local
587 interface nsIDOMStyleSheet : nsISupports
589 nsresult GetType(nsAString *aType);
590 nsresult GetDisabled(PRBool *aDisabled);
591 nsresult SetDisabled(PRBool aDisabled);
592 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
593 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
594 nsresult GetHref(nsAString *aHref);
595 nsresult GetTitle(nsAString *aTitle);
596 nsresult GetMedia(nsIDOMMediaList **aMedia);
600 object,
601 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
602 local
604 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
606 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
607 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
608 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
609 nsresult DeleteRule(PRUint32 index);
613 object,
614 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
615 local
617 interface nsIDOMStyleSheetList : nsISupports
619 nsresult GetLength(PRUint32 *aLength);
620 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
624 object,
625 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
626 local
628 interface nsIDOMNodeList : nsISupports
630 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
631 nsresult GetLength(PRUint32 *aLength);
635 object,
636 uuid(29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f),
637 local
639 interface nsIDOM3Node : nsISupports
641 enum NSDOCPOSITION {
642 DISCONNECTED = 1,
643 PRECEDING = 2,
644 FOLLOWING = 4,
645 CONTAINS = 8,
646 CONTAINED_BY = 16,
647 IMPLEMENTATION_SPECIFIC = 32
650 nsresult GetBaseURI(nsAString *aBaseURI);
651 nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
652 nsresult GetTextContent(nsAString *aTextContent);
653 nsresult SetTextContent(const nsAString *aTextContent);
654 nsresult IsSameNode(nsIDOMNode *other, PRBool *_retval);
655 nsresult LookupPrefix(const nsAString *namespaceURI, PRBool *_retval);
656 nsresult IsDefaultNamespace(const nsAString *namespaceURI, PRBool *_retval);
657 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval);
658 nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
659 nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval);
660 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
661 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
665 object,
666 uuid(a6cf907b-15b3-11d2-932e-00805f8add32),
667 local
669 interface nsIDOMNamedNodeMap : nsISupports
671 nsresult GetNamedItem(const nsAString *name, nsIDOMNode **_retval);
672 nsresult SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval);
673 nsresult RemoveNamedItem(const nsAString *name, nsIDOMNode **_retval);
674 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
675 nsresult GetLength(PRUint32 *aLength);
676 nsresult GetNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNode **_retval);
677 nsresult SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval);
678 nsresult RemoveNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNode **_retval);
682 object,
683 uuid(817dc774-2ad2-4111-9042-1787df86c015),
684 local
686 interface nsIDOMNode : nsISupports
688 enum NSNODETYPE {
689 ELEMENT_NODE = 1,
690 ATTRIBUTE_NODE = 2,
691 TEXT_NODE = 3,
692 CDATA_SELECTION_NODE = 4,
693 ENTITY_REFERENCE_NODE = 5,
694 ENTITY_NODE = 6,
695 PROCESSING_INSTRUCTION_NODE = 7,
696 COMMENT_NODE = 8,
697 DOCUMENT_NODE = 9,
698 DOCUMENT_TYPE_NODE = 10,
699 DOCUMENT_FRAGMENT_NODE = 11,
700 NOTATION_NODE = 12
703 nsresult GetNodeName(nsAString *aNodeName);
704 nsresult GetNodeValue(nsAString *aNodeValue);
705 nsresult SetNodeValue(const nsAString *aNodeValue);
706 nsresult GetNodeType(PRUint16 *aNodeType);
707 nsresult GetParentNode(nsIDOMNode **aParentNode);
708 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
709 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
710 nsresult GetLastChild(nsIDOMNode **aLastChild);
711 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
712 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
713 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
714 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
715 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
716 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
717 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
718 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
719 nsresult HasChildNodes(PRBool *_retval);
720 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
721 nsresult Normalize();
722 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
723 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
724 nsresult GetPrefix(nsAString *aPrefix);
725 nsresult GetLocalName(nsAString *aLocalName);
726 nsresult HasAttributes(PRBool *_retval);
730 object,
731 uuid(669a0f55-1e5d-4471-8de9-a6c6774354dd),
732 local
734 interface nsIDOMAttr : nsIDOMNode
736 nsresult GetName(nsAString *aName);
737 nsresult GetSpecified(PRBool *aSpecified);
738 nsresult GetValue(nsAString *aValue);
739 nsresult SetValue(const nsAString *aValue);
740 nsresult GetOwnerElement(nsIDOMElement **aOwnerElement);
744 object,
745 uuid(f220e259-5c41-4cca-a38b-7267ffa874aa),
746 local
748 interface nsIDOMElement : nsIDOMNode
750 nsresult GetTagName(nsAString *aTagName);
751 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
752 nsresult SetAttribute(const nsAString *name, const nsAString *value);
753 nsresult RemoveAttribute(const nsAString *name);
754 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
755 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
756 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
757 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
758 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
759 nsAString *_retval);
760 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
761 const nsAString *value);
762 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
763 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
764 nsIDOMAttr **_retval);
765 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
766 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
767 nsIDOMNodeList **_retval);
768 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
769 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
770 PRBool *_retval);
774 object,
775 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
776 local
778 interface nsIDOMElementCSSInlineStyle : nsISupports
780 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
784 object,
785 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
786 local
788 interface nsIDOMClientRect : nsISupports
790 nsresult GetLeft(float *aLeft);
791 nsresult GetTop(float *aTop);
792 nsresult GetRight(float *aRight);
793 nsresult GetBottom(float *aBottom);
794 nsresult GetWidth(float *aWidth);
795 nsresult GetHeight(float *aHeight);
799 object,
800 uuid(d894b5d4-44f3-422a-a220-7763c12d4a94),
801 local
803 interface nsIDOMNSElement : nsISupports
805 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
806 nsresult GetClientRects(nsIDOMClientRectList **_retval);
807 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
808 nsresult GetScrollTop(PRInt32 *aScrollTop);
809 nsresult SetScrollTop(PRInt32 aScrollTop);
810 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
811 nsresult SetScrollLeft(PRInt32 aScrollLeft);
812 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
813 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
814 nsresult GetClientTop(PRInt32 *aClientTop);
815 nsresult GetClientLeft(PRInt32 *aClientLeft);
816 nsresult GetClientHeight(PRInt32 *aClientHeight);
817 nsresult GetClientWidth(PRInt32 *aClientWidth);
818 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
819 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
820 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
821 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
822 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
823 nsresult GetChildren(nsIDOMNodeList **aChildren);
824 nsresult GetClassList(nsIDOMDOMTokenList **aClassList);
825 nsresult SetCapture(PRBool retargetToElement);
826 nsresult ReleaseCapture();
827 nsresult MozMatchesSelector(const nsAString *selector, PRBool *_retval);
830 cpp_quote("#undef GetClassName")
833 object,
834 uuid(164c7ebd-2245-42d2-a96f-2bf2d01c1697),
835 local
837 interface nsIDOMHTMLElement : nsIDOMElement
839 nsresult GetId(nsAString *aId);
840 nsresult SetId(const nsAString *aId);
841 nsresult GetTitle(nsAString *aTitle);
842 nsresult SetTitle(const nsAString *aTitle);
843 nsresult GetLang(nsAString *aLang);
844 nsresult SetLang(const nsAString *aLang);
845 nsresult GetDir(nsAString *aDir);
846 nsresult SetDir(const nsAString *aDir);
847 nsresult GetClassName(nsAString *aClassName);
848 nsresult SetClassName(const nsAString *aClassName);
849 nsresult GetAccessKey(nsAString *aAccessKey);
850 nsresult SetAccessKey(const nsAString *aAccessKey);
851 nsresult Blur();
852 nsresult Focus();
853 nsresult Click();
857 object,
858 uuid(cf76761d-2d93-4e88-aaf1-b637878bad65),
859 local
861 interface nsIDOMNSHTMLElement : nsISupports
863 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
864 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
865 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
866 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
867 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
868 nsresult GetInnerHTML(nsAString *aInnerHTML);
869 nsresult SetInnerHTML(const nsAString *aInnerHTML);
870 nsresult GetHidden(PRBool *aHidden);
871 nsresult SetHidden(PRBool aHidden);
872 nsresult GetTabIndex(PRInt32 *aTabIndex);
873 nsresult SetTabIndex(PRInt32 aTabIndex);
874 nsresult GetContentEditable(nsAString *aContentEditable);
875 nsresult SetContentEditable(const nsAString *aContentEditable);
876 nsresult GetIsContentEditable(PRBool *aIsContentEditable);
877 nsresult GetDraggable(PRBool *aDraggable);
878 nsresult SetDraggable(PRBool aDraggable);
879 nsresult ScrollIntoView(PRBool top, PRUint8 _argc);
880 nsresult GetSpellcheck(PRBool *aSpellcheck);
881 nsresult SetSpellcheck(PRBool aSpellcheck);
882 nsresult GetDataset(nsIDOMDOMStringMap **aDataset);
886 object,
887 uuid(1af9e026-011d-4d0e-91db-09bcfa3e9622),
888 local
890 interface nsIDOMHTMLCollection : nsISupports
892 nsresult GetLength(PRUint32 *aLength);
893 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
894 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
898 object,
899 uuid(6ce64178-d600-4e5e-a33a-5bde69f05bd5),
900 local
902 interface nsIDOMCharacterData : nsIDOMNode
904 nsresult GetData(nsAString *aData);
905 nsresult SetData(const nsAString *aData);
906 nsresult GetLength(PRUint32 *aLength);
907 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
908 nsresult AppendData(const nsAString *arg);
909 nsresult InsertData(PRUint32 offset, const nsAString *arg);
910 nsresult DeleteData(PRUint32 offset, PRUint32 count);
911 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
915 object,
916 uuid(48642156-d686-46b7-8e96-35edd5b2afa8),
917 local
919 interface nsIDOMText : nsIDOMCharacterData
921 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
925 object,
926 uuid(eaf04950-d409-41a0-a99d-2e4e43c1e33d),
927 local
929 interface nsIDOMComment : nsIDOMCharacterData
934 object,
935 uuid(06376ec5-7c91-45ad-a346-30a06a125935),
936 local
938 interface nsIDOMDocumentFragment : nsIDOMNode
943 object,
944 uuid(61b2159c-614e-4aff-a626-f34af9bb1759),
945 local
947 interface nsIDOMDocument : nsIDOMNode
949 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
950 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
951 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
952 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
953 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
954 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
955 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
956 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
957 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
958 nsIDOMProcessingInstruction **_retval);
959 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
960 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
961 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
962 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
963 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
964 nsIDOMElement **_retval);
965 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
966 nsIDOMAttr **_retval);
967 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
968 nsIDOMNodeList **_retval);
969 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
970 nsresult GetInputEncoding(nsAString *aInputEncoding);
971 nsresult GetXmlEncoding(nsAString *aXmlEncoding);
972 nsresult GetXmlStandalone(PRBool *aXmlStandalone);
973 nsresult SetXmlStandalone(PRBool aXmlStandalone);
974 nsresult GetXmlVersion(nsAString *aXmlVersion);
975 nsresult SetXmlVersion(const nsAString *aXmlVersion);
976 nsresult GetDocumentURI(nsAString *aDocumentURI);
977 nsresult SetDocumentURI(const nsAString *aDocumentURI);
978 nsresult AdoptNode(nsIDOMNode *source, nsIDOMNode **_retval);
979 nsresult NormalizeDocument();
980 nsresult GetDefaultView(nsIDOMWindow **aDefaultView);
981 nsresult CreateRange(nsIDOMRange **_retval);
982 nsresult CreateNodeIterator(nsIDOMNode *root, PRUint32 whatToShow, nsIDOMNodeFilter *filter,
983 PRBool entityReferenceExpansion, nsIDOMNodeIterator **_retval);
984 nsresult CreateTreeWalker(nsIDOMNode *root, PRUint32 whatToShow, nsIDOMNodeFilter *filter,
985 PRBool entityReferenceExpansion, nsIDOMTreeWalker **_retval);
986 cpp_quote("#undef CreateEvent")
987 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
991 object,
992 uuid(92f2c6f8-3668-4a47-8251-2a900afe11fa),
993 local
995 interface nsIDOMNSDocument : nsISupports
997 nsresult GetCharacterSet(nsAString *aCharacterSet);
998 nsresult GetDir(nsAString *aDir);
999 nsresult SetDir(const nsAString *aDir);
1000 nsresult GetLocation(nsIDOMLocation **aLocation);
1001 nsresult GetTitle(nsAString *aTitle);
1002 nsresult SetTitle(const nsAString *aTitle);
1003 nsresult GetContentType(nsAString *aContentType);
1004 nsresult GetReadyState(nsAString *aReadyState);
1005 nsresult GetLastModified(nsAString *aLastModified);
1006 nsresult GetReferrer(nsAString *aReferrer);
1007 nsresult HasFocus(PRBool *_retval);
1008 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
1009 nsresult GetCurrentScript(nsIDOMElement **aActiveElement);
1010 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
1011 nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
1012 nsresult ReleaseCapture();
1013 nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
1017 object,
1018 uuid(eb3750ae-d156-4b97-b200-f35276c6510f),
1019 local
1021 interface nsIDOMHTMLDocument : nsIDOMDocument
1023 nsresult GetTitle(nsAString *aTitle);
1024 nsresult SetTitle(const nsAString *aTitle);
1025 nsresult GetReferrer(nsAString *aReferrer);
1026 nsresult GetDomain(nsAString *aDomain);
1027 nsresult GetURL(nsAString *aURL);
1028 nsresult GetBody(nsIDOMHTMLElement **aBody);
1029 nsresult SetBody(nsIDOMHTMLElement *aBody);
1030 nsresult GetImages(nsIDOMHTMLCollection **aImages);
1031 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
1032 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
1033 nsresult GetForms(nsIDOMHTMLCollection **aForms);
1034 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
1035 nsresult GetCookie(nsAString *aCookie);
1036 nsresult SetCookie(const nsAString *aCookie);
1037 nsresult Open();
1038 nsresult Close();
1039 nsresult Write(const nsAString *text);
1040 nsresult Writeln(const nsAString *text);
1041 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
1045 object,
1046 uuid(386e9eee-1f06-40a6-a1a7-ed986646b793),
1047 local
1049 interface nsIDOMNSHTMLDocument : nsISupports
1051 nsresult GetAlinkColor(nsAString *aAlinkColor);
1052 nsresult SetAlinkColor(const nsAString *aAlinkColor);
1053 nsresult GetLinkColor(nsAString *aLinkColor);
1054 nsresult SetLinkColor(const nsAString *aLinkColor);
1055 nsresult GetVlinkColor(nsAString *aVlinkColor);
1056 nsresult SetVlinkColor(const nsAString *aVlinkColor);
1057 nsresult GetBgColor(nsAString *aBgColor);
1058 nsresult SetBgColor(const nsAString *aBgColor);
1059 nsresult GetFgColor(nsAString *aFgColor);
1060 nsresult SetFgColor(const nsAString *aFgColor);
1061 nsresult GetDomain(nsAString *aDomain);
1062 nsresult SetDomain(const nsAString *aDomain);
1063 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1064 nsresult GetSelection(nsAString *_retval);
1065 nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
1066 nsresult Clear();
1067 nsresult CaptureEvents(PRInt32 eventFlags);
1068 nsresult ReleaseEvents(PRInt32 eventFlags);
1069 nsresult RouteEvent(nsIDOMEvent *evt);
1070 nsresult GetCompatMode(nsAString *aCompatMode);
1071 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1072 nsresult GetDesignMode(nsAString *aDesignMode);
1073 nsresult SetDesignMode(const nsAString *aDesignMode);
1074 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
1075 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
1076 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
1077 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
1078 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
1079 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
1080 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
1081 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1082 nsresult GetHead(nsIDOMHTMLHeadElement *_retval);
1086 object,
1087 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
1088 local
1090 interface nsIDOMDocumentStyle : nsISupports
1092 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1096 object,
1097 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
1098 local
1100 interface nsIDOMRange : nsISupports
1102 enum {
1103 NS_START_TO_START,
1104 NS_START_TO_END,
1105 NS_END_TO_END,
1106 NS_END_TO_START
1109 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1110 nsresult GetStartOffset(PRInt32 *aStartOffset);
1111 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1112 nsresult GetEndOffset(PRInt32 *aEndOffset);
1113 nsresult GetCollapsed(PRBool *aCollapsed);
1114 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1115 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1116 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1117 nsresult SetStartBefore(nsIDOMNode *refNode);
1118 nsresult SetStartAfter(nsIDOMNode *refNode);
1119 nsresult SetEndBefore(nsIDOMNode *refNode);
1120 nsresult SetEndAfter(nsIDOMNode *refNode);
1121 nsresult Collapse(PRBool toStart);
1122 nsresult SelectNode(nsIDOMNode *refNode);
1123 nsresult SelectNodeContents(nsIDOMNode *refNode);
1124 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1125 nsresult DeleteContents();
1126 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1127 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1128 nsresult InsertNode(nsIDOMNode *newNode);
1129 nsresult SurroundContents(nsIDOMNode *newParent);
1130 nsresult CloneRange(nsIDOMRange **_retval);
1131 nsresult ToString(nsAString *_retval);
1132 nsresult Detach();
1136 object,
1137 uuid(fed93d11-f24d-41d8-ae55-4197927999bb),
1138 local
1140 interface nsIDOMNSRange : nsISupports
1142 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1143 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1144 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1145 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1146 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1151 object,
1152 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1153 local
1155 interface nsISelection : nsISupports
1157 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1158 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1159 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1160 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1161 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1162 nsresult GetRangeCount(PRInt32 *aRangeCount);
1163 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1164 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1165 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1166 nsresult CollapseToStart();
1167 nsresult CollapseToEnd();
1168 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1169 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1170 nsresult AddRange(nsIDOMRange *range);
1171 nsresult RemoveRange(nsIDOMRange *range);
1172 nsresult RemoveAllRanges();
1173 nsresult DeleteFromDocument();
1174 nsresult SelectionLanguageChange(PRBool langRTL);
1175 nsresult ToString(PRUnichar **_retval);
1179 object,
1180 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1181 local
1183 interface nsIDOMWindowCollection : nsISupports
1185 nsresult GetLength(PRUint32 *aLength);
1186 nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1187 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1191 object,
1192 uuid(ff7d278f-93db-4078-b89a-058c8e1270b4),
1193 local
1195 interface nsIDOMWindow : nsISupports
1197 nsresult GetDocument(nsIDOMDocument **aDocument);
1198 nsresult GetParent(nsIDOMWindow **aParent);
1199 nsresult GetTop(nsIDOMWindow **aTop);
1200 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1201 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1202 nsresult GetName(nsAString *aName);
1203 nsresult SetName(const nsAString *aName);
1204 nsresult GetTextZoom(float *aTextZoom);
1205 nsresult SetTextZoom(float aTextZoom);
1206 nsresult GetScrollX(PRInt32 *aScrollX);
1207 nsresult GetScrollY(PRInt32 *aScrollY);
1208 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1209 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1210 nsresult GetSelection(nsISelection **_retval);
1211 nsresult ScrollByLines(PRInt32 numLines);
1212 nsresult ScrollByPages(PRInt32 numPages);
1213 nsresult SizeToContent();
1214 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
1218 object,
1219 uuid(87db4ba2-367d-4604-ad36-b97cc09bf3f1),
1220 local
1222 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1224 nsresult GetALink(nsAString *aALink);
1225 nsresult SetALink(const nsAString *aALink);
1226 nsresult GetBackground(nsAString *aBackground);
1227 nsresult SetBackground(const nsAString *aBackground);
1228 nsresult GetBgColor(nsAString *aBgColor);
1229 nsresult SetBgColor(const nsAString *aBgColor);
1230 nsresult GetLink(nsAString *aLink);
1231 nsresult SetLink(const nsAString *aLink);
1232 nsresult GetText(nsAString *aText);
1233 nsresult SetText(const nsAString *aText);
1234 nsresult GetVLink(nsAString *aVLink);
1235 nsresult SetVLink(const nsAString *aVLink);
1239 object,
1240 uuid(e8624d8a-0e9c-49d4-848c-75afcfd6f048),
1241 local
1243 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1245 nsresult GetName(nsAString *aName);
1246 nsresult SetName(const nsAString *aName);
1247 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1248 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1249 nsresult GetAction(nsAString *aAction);
1250 nsresult SetAction(const nsAString *aAction);
1251 nsresult GetAutocomplete(nsAString *aAutocomplete);
1252 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1253 nsresult GetEnctype(nsAString *aEnctype);
1254 nsresult SetEnctype(const nsAString *aEnctype);
1255 nsresult GetMethod(nsAString *aMethod);
1256 nsresult SetMethod(const nsAString *aMethod);
1257 nsresult GetNoValidate(PRBool *aNoValidate);
1258 nsresult SetNoValidate(PRBool aNoValidate);
1259 nsresult GetTarget(nsAString *aTarget);
1260 nsresult SetTarget(const nsAString *aTarget);
1261 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1262 nsresult GetLength(PRInt32 *aLength);
1263 nsresult Submit();
1264 nsresult Reset();
1268 object,
1269 uuid(a59ba6b8-6f8b-4003-a8a4-184a51a05050),
1270 local
1272 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1274 nsresult GetAccept(nsAString *aAccept);
1275 nsresult SetAccept(const nsAString *aAccept);
1276 nsresult GetAlt(nsAString *aAlt);
1277 nsresult SetAlt(const nsAString *aAlt);
1278 nsresult GetAutocomplete(nsAString *aAutocomplete);
1279 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1280 nsresult GetAutofocus(PRBool *aAutofocus);
1281 nsresult SetAutofocus(PRBool aAutofocus);
1282 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1283 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1284 nsresult GetChecked(PRBool *aChecked);
1285 nsresult SetChecked(PRBool aChecked);
1286 nsresult GetDisabled(PRBool *aDisabled);
1287 nsresult SetDisabled(PRBool aDisabled);
1288 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1289 nsresult GetFormAction(nsAString *aFormAction);
1290 nsresult SetFormAction(const nsAString *aFormAction);
1291 nsresult GetFormEnctype(nsAString *aFormEnctype);
1292 nsresult SetFormEnctype(const nsAString *aFormEnctype);
1293 nsresult GetFormMethod(nsAString *aFormMethod);
1294 nsresult SetFormMethod(const nsAString *aFormMethod);
1295 nsresult GetFormNoValidate(PRBool *aFormNoValidate);
1296 nsresult SetFormNoValidate(PRBool aFormNoValidate);
1297 nsresult GetFormTarget(nsAString *aFormTarget);
1298 nsresult SetFormTarget(const nsAString *aFormTarget);
1299 nsresult GetFiles(nsIDOMFileList **aFiles);
1300 nsresult GetIndeterminate(PRBool *aIndeterminate);
1301 nsresult SetIndeterminate(PRBool aIndeterminate);
1302 nsresult GetList(nsIDOMHTMLElement **aList);
1303 nsresult GetMaxLength(PRInt32 *aMaxLength);
1304 nsresult SetMaxLength(PRInt32 aMaxLength);
1305 nsresult GetMultiple(PRBool *aMultiple);
1306 nsresult SetMultiple(PRBool aMultiple);
1307 nsresult GetName(nsAString *aName);
1308 nsresult SetName(const nsAString *aName);
1309 nsresult GetPattern(nsAString *aPattern);
1310 nsresult SetPattern(const nsAString *aPattern);
1311 nsresult GetPlaceholder(nsAString *aPlaceholder);
1312 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1313 nsresult GetReadOnly(PRBool *aReadOnly);
1314 nsresult SetReadOnly(PRBool aReadOnly);
1315 nsresult GetRequired(PRBool *aRequired);
1316 nsresult SetRequired(PRBool aRequired);
1317 nsresult GetAlign(nsAString *aAlign);
1318 nsresult SetAlign(const nsAString *aAlign);
1319 nsresult GetSize(PRUint32 *aSize);
1320 nsresult SetSize(PRUint32 aSize);
1321 nsresult GetSrc(nsAString *aSrc);
1322 nsresult SetSrc(const nsAString *aSrc);
1323 nsresult GetType(nsAString *aType);
1324 nsresult SetType(const nsAString *aType);
1325 nsresult GetDefaultValue(nsAString *aDefaultValue);
1326 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1327 nsresult GetValue(nsAString *aValue);
1328 nsresult SetValue(const nsAString *aValue);
1329 nsresult GetWillValidate(PRBool *aWillValidate);
1330 nsresult GetValidity(nsIDOMValidityState **aValidity);
1331 nsresult GetValidationMessage(nsAString *aValidationMessage);
1332 nsresult CheckValidity(PRBool *_retval);
1333 nsresult SetCustomValidity(const nsAString *error);
1334 nsresult Select();
1335 nsresult GetSelectionStart(PRInt32 *aSelectionStart);
1336 nsresult SetSelectionStart(PRInt32 aSelectionStart);
1337 nsresult GetSelectionEnd(PRInt32 *aSelectionEnd);
1338 nsresult SetSelectionEnd(PRInt32 aSelectionEnd);
1339 nsresult SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd);
1340 nsresult GetTabIndex(PRInt32 *aTabIndex);
1341 nsresult SetTabIndex(PRInt32 aTabIndex);
1342 nsresult GetUseMap(nsAString *aUseMap);
1343 nsresult SetUseMap(const nsAString *aUseMap);
1344 nsresult GetControllers(nsIControllers **aControllers);
1345 nsresult GetTextLength(PRInt32 *aTextLength);
1346 nsresult MozGetFileNameArray(PRUint32 *aLength, PRUnichar ***aFileNames);
1347 nsresult MozSetFileNameArray(const PRUnichar **aFileNames, PRUint32 aLength);
1348 nsresult MozIsTextField(PRBool aExcludePassword, PRBool *_retval);
1352 object,
1353 uuid(f289fdb9-fe0f-41d3-bbdb-5c4e21f0a4d2),
1354 local
1356 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1358 nsresult GetDisabled(PRBool *aDisabled);
1359 nsresult SetDisabled(PRBool aDisabled);
1360 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1361 nsresult GetLabel(nsAString *aLabel);
1362 nsresult SetLabel(const nsAString *aLabel);
1363 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1364 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1365 nsresult GetSelected(PRBool *aSelected);
1366 nsresult SetSelected(PRBool aSelected);
1367 nsresult GetValue(nsAString *aValue);
1368 nsresult SetValue(const nsAString *aValue);
1369 nsresult GetText(nsAString *aText);
1370 nsresult SetText(const nsAString *aText);
1371 nsresult GetIndex(PRInt32 *aIndex);
1375 object,
1376 uuid(bce0213c-f70f-488f-b93f-688acca55d63),
1377 local
1379 interface nsIDOMHTMLOptionsCollection : nsISupports
1381 nsresult GetLength(PRUint32 *aLength);
1382 nsresult SetLength(PRUint32 aLength);
1383 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1384 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1388 object,
1389 uuid(58cd01b8-c3f2-4e58-b39d-8a0ba941717e),
1390 local
1392 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1394 nsresult GetAutofocus(PRBool *aAutofocus);
1395 nsresult SetAutofocus(PRBool aAutofocus);
1396 nsresult GetDisabled(PRBool *aDisabled);
1397 nsresult SetDisabled(PRBool aDisabled);
1398 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1399 nsresult GetMultiple(PRBool *aMultiple);
1400 nsresult SetMultiple(PRBool aMultiple);
1401 nsresult GetName(nsAString *aName);
1402 nsresult SetName(const nsAString *aName);
1403 nsresult GetSize(PRInt32 *aSize);
1404 nsresult SetSize(PRInt32 aSize);
1405 nsresult GetType(nsAString *aType);
1406 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1407 nsresult GetLength(PRUint32 *aLength);
1408 nsresult SetLength(PRUint32 aLength);
1409 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1410 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1411 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1412 nsresult Remove(PRInt32 index);
1413 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1414 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1415 nsresult GetValue(nsAString *aValue);
1416 nsresult SetValue(const nsAString *aValue);
1417 nsresult GetTabIndex(PRInt32 *aTabIndex);
1418 nsresult SetTabIndex(PRInt32 aTabIndex);
1419 nsresult GetWillValidate(PRBool *aWillValidate);
1420 nsresult GetValidity(nsIDOMValidityState **aValidity);
1421 nsresult GetValidationMessage(nsAString *aValidationMessage);
1422 nsresult CheckValidity(PRBool *_retval);
1423 nsresult SetCustomValidity(const nsAString *error);
1424 nsresult GetRequired(PRBool *aRequired);
1425 nsresult SetRequired(PRBool aRequired);
1429 object,
1430 uuid(905edd3e-c0b3-4d54-8a2c-0eaab6ccb3cf),
1431 local
1433 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1435 nsresult GetDefaultValue(nsAString *aDefaultValue);
1436 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1437 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1438 nsresult GetCols(PRUint32 *aCols);
1439 nsresult SetCols(PRUint32 aCols);
1440 nsresult GetDisabled(PRBool *aDisabled);
1441 nsresult SetDisabled(PRBool aDisabled);
1442 nsresult GetName(nsAString *aName);
1443 nsresult SetName(const nsAString *aName);
1444 nsresult GetReadOnly(PRBool *aReadOnly);
1445 nsresult SetReadOnly(PRBool aReadOnly);
1446 nsresult GetRows(PRUint32 *aRows);
1447 nsresult SetRows(PRUint32 aRows);
1448 nsresult GetTabIndex(PRInt32 *aTabIndex);
1449 nsresult SetTabIndex(PRInt32 aTabIndex);
1450 nsresult GetType(nsAString *aType);
1451 nsresult GetValue(nsAString *aValue);
1452 nsresult SetValue(const nsAString *aValue);
1453 nsresult Select();
1457 object,
1458 uuid(c623ecc4-381b-4fa7-9016-a29f0a06230b),
1459 local
1461 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1463 nsresult GetSrc(nsAString *aSrc);
1464 nsresult SetSrc(const nsAString *aSrc);
1465 nsresult GetAsync(PRBool *aAsync);
1466 nsresult SetAsync(PRBool aAsync);
1467 nsresult GetDefer(PRBool *aDefer);
1468 nsresult SetDefer(PRBool aDefer);
1469 nsresult GetType(nsAString *aType);
1470 nsresult SetType(const nsAString *aType);
1471 nsresult GetCharset(nsAString *aCharset);
1472 nsresult SetCharset(const nsAString *aCharset);
1473 nsresult GetText(nsAString *aText);
1474 nsresult SetText(const nsAString *aText);
1475 nsresult GetHtmlFor(nsAString *aHtmlFor);
1476 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1477 nsresult GetEvent(nsAString *aEvent);
1478 nsresult SetEvent(const nsAString *aEvent);
1482 object,
1483 uuid(c4ef8a40-dd56-4b95-a007-630a0ac04341),
1484 local
1486 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1488 nsresult GetAlt(nsAString *aAlt);
1489 nsresult SetAlt(const nsAString *aAlt);
1490 nsresult GetSrc(nsAString *aSrc);
1491 nsresult SetSrc(const nsAString *aSrc);
1492 nsresult GetUseMap(nsAString *aUseMap);
1493 nsresult SetUseMap(const nsAString *aUseMap);
1494 nsresult GetIsMap(PRBool *aIsMap);
1495 nsresult SetIsMap(PRBool aIsMap);
1496 nsresult GetWidth(PRInt32 *aWidth);
1497 nsresult SetWidth(PRInt32 aWidth);
1498 nsresult GetHeight(PRInt32 *aHeight);
1499 nsresult SetHeight(PRInt32 aHeight);
1500 nsresult GetNaturalWidth(PRInt32 *aNaturalWidth);
1501 nsresult GetNaturalHeight(PRInt32 *aNaturalHeight);
1502 nsresult GetComplete(PRBool *aComplete);
1503 nsresult GetName(nsAString *aName);
1504 nsresult SetName(const nsAString *aName);
1505 nsresult GetAlign(nsAString *aAlign);
1506 nsresult SetAlign(const nsAString *aAlign);
1507 nsresult GetBorder(nsAString *aBorder);
1508 nsresult SetBorder(const nsAString *aBorder);
1509 nsresult GetHspace(PRInt32 *aHspace);
1510 nsresult SetHspace(PRInt32 aHspace);
1511 nsresult GetLongDesc(nsAString *aLongDesc);
1512 nsresult SetLongDesc(const nsAString *aLongDesc);
1513 nsresult GetVspace(PRInt32 *aVspace);
1514 nsresult SetVspace(PRInt32 aVspace);
1515 nsresult GetLowsrc(nsAString *aLowsrc);
1516 nsresult SetLowsrc(const nsAString *aLowsrc);
1517 nsresult GetX(PRInt32 *aX);
1518 nsresult GetY(PRInt32 *aY);
1522 object,
1523 uuid(768bfb39-f0ce-4f17-bad7-f0f722dc293a),
1524 local
1526 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1528 nsresult GetHref(nsAString *aHref);
1529 nsresult SetHref(const nsAString *aHref);
1530 nsresult GetTarget(nsAString *aTarget);
1531 nsresult SetTarget(const nsAString *aTarget);
1532 nsresult GetPing(nsAString *aPing);
1533 nsresult SetPing(const nsAString *aPing);
1534 nsresult GetRel(nsAString *aRel);
1535 nsresult SetRel(const nsAString *aRel);
1536 nsresult GetHreflang(nsAString *aHreflang);
1537 nsresult SetHreflang(const nsAString *aHreflang);
1538 nsresult GetType(nsAString *aType);
1539 nsresult SetType(const nsAString *aType);
1540 nsresult GetText(nsAString *aText);
1541 nsresult SetText(const nsAString *aText);
1542 nsresult GetProtocol(nsAString *aProtocol);
1543 nsresult SetProtocol(const nsAString *aProtocol);
1544 nsresult GetHost(nsAString *aHost);
1545 nsresult SetHost(const nsAString *aHost);
1546 nsresult GetHostname(nsAString *aHostname);
1547 nsresult SetHostname(const nsAString *aHostname);
1548 nsresult GetPort(nsAString *aPort);
1549 nsresult SetPort(const nsAString *aPort);
1550 nsresult GetPathname(nsAString *aPathname);
1551 nsresult SetPathname(const nsAString *aPathname);
1552 nsresult GetSearch(nsAString *aSearch);
1553 nsresult SetSearch(const nsAString *aSearch);
1554 nsresult GetHash(nsAString *aHash);
1555 nsresult SetHash(const nsAString *aHash);
1556 nsresult GetCharset(nsAString *aCharset);
1557 nsresult SetCharset(const nsAString *aCharset);
1558 nsresult GetCoords(nsAString *aCoords);
1559 nsresult SetCoords(const nsAString *aCoords);
1560 nsresult GetName(nsAString *aName);
1561 nsresult SetName(const nsAString *aName);
1562 nsresult GetRev(nsAString *aRev);
1563 nsresult SetRev(const nsAString *aRev);
1564 nsresult GetShape(nsAString *aShape);
1565 nsresult SetShape(const nsAString *aShape);
1566 nsresult GetTabIndex(PRInt32 *aTabIndex);
1567 nsresult SetTabIndex(PRInt32 aTabIndex);
1568 nsresult ToString(nsAString *_retval);
1572 object,
1573 uuid(1927df94-db16-4e28-a491-4279eccc539d),
1574 local
1576 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1578 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1579 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1580 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1581 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1582 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1583 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1584 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1585 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1586 nsresult GetAlign(nsAString *aAlign);
1587 nsresult SetAlign(const nsAString *aAlign);
1588 nsresult GetBgColor(nsAString *aBgColor);
1589 nsresult SetBgColor(const nsAString *aBgColor);
1590 nsresult GetBorder(nsAString *aBorder);
1591 nsresult SetBorder(const nsAString *aBorder);
1592 nsresult GetCellPadding(nsAString *aCellPadding);
1593 nsresult SetCellPadding(const nsAString *aCellPadding);
1594 nsresult GetCellSpacing(nsAString *aCellSpacing);
1595 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1596 nsresult GetFrame(nsAString *aFrame);
1597 nsresult SetFrame(const nsAString *aFrame);
1598 nsresult GetRules(nsAString *aRules);
1599 nsresult SetRules(const nsAString *aRules);
1600 nsresult GetSummary(nsAString *aSummary);
1601 nsresult SetSummary(const nsAString *aSummary);
1602 nsresult GetWidth(nsAString *aWidth);
1603 nsresult SetWidth(const nsAString *aWidth);
1604 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1605 nsresult DeleteTHead();
1606 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1607 nsresult DeleteTFoot();
1608 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1609 nsresult DeleteCaption();
1610 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1611 nsresult DeleteRow(PRInt32 index);
1615 object,
1616 uuid(0f614ba0-5ee1-494b-ade8-14c29f416798),
1617 local
1619 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1621 nsresult GetRowIndex(PRInt32 *aRowIndex);
1622 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1623 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1624 nsresult GetAlign(nsAString *aAlign);
1625 nsresult SetAlign(const nsAString *aAlign);
1626 nsresult GetBgColor(nsAString *aBgColor);
1627 nsresult SetBgColor(const nsAString *aBgColor);
1628 nsresult GetCh(nsAString *aCh);
1629 nsresult SetCh(const nsAString *aCh);
1630 nsresult GetChOff(nsAString *aChOff);
1631 nsresult SetChOff(const nsAString *aChOff);
1632 nsresult GetVAlign(nsAString *aVAlign);
1633 nsresult SetVAlign(const nsAString *aVAlign);
1634 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1635 nsresult DeleteCell(PRInt32 index);
1639 object,
1640 uuid(33dfbcdc-4edf-4e6a-acf4-c6b5bbb61caf),
1641 local
1643 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1645 nsresult GetAlign(nsAString *aAlign);
1646 nsresult SetAlign(const nsAString *aAlign);
1647 nsresult GetFrameBorder(nsAString *aFrameBorder);
1648 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1649 nsresult GetHeight(nsAString *aHeight);
1650 nsresult SetHeight(const nsAString *aHeight);
1651 nsresult GetLongDesc(nsAString *aLongDesc);
1652 nsresult SetLongDesc(const nsAString *aLongDesc);
1653 nsresult GetMarginHeight(nsAString *aMarginHeight);
1654 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1655 nsresult GetMarginWidth(nsAString *aMarginWidth);
1656 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1657 nsresult GetName(nsAString *aName);
1658 nsresult SetName(const nsAString *aName);
1659 nsresult GetScrolling(nsAString *aScrolling);
1660 nsresult SetScrolling(const nsAString *aScrolling);
1661 nsresult GetSrc(nsAString *aSrc);
1662 nsresult SetSrc(const nsAString *aSrc);
1663 nsresult GetWidth(nsAString *aWidth);
1664 nsresult SetWidth(const nsAString *aWidth);
1665 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1669 object,
1670 uuid(e3f42587-847f-4743-8891-490b2066493d),
1671 local
1673 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
1675 nsresult GetFrameBorder(nsAString *aFrameBorder);
1676 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1677 nsresult GetLongDesc(nsAString *aLongDesc);
1678 nsresult SetLongDesc(const nsAString *aLongDesc);
1679 nsresult GetMarginHeight(nsAString *aMarginHeight);
1680 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1681 nsresult GetMarginWidth(nsAString *aMarginWidth);
1682 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1683 nsresult GetName(nsAString *aName);
1684 nsresult SetName(const nsAString *aName);
1685 nsresult GetNoResize(PRBool *aNoResize);
1686 nsresult SetNoResize(PRBool aNoResize);
1687 nsresult GetScrolling(nsAString *aScrolling);
1688 nsresult SetScrolling(const nsAString *aScrolling);
1689 nsresult GetSrc(nsAString *aSrc);
1690 nsresult SetSrc(const nsAString *aSrc);
1691 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1695 object,
1696 uuid(700d3c7b-cbc2-4ab4-9aa3-fedd0b09fe89),
1697 local
1699 interface nsIDOMHTMLObjectElement : nsIDOMHTMLElement
1701 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1702 nsresult GetCode(nsAString *aCode);
1703 nsresult SetCode(const nsAString *aCode);
1704 nsresult GetAlign(nsAString *aAlign);
1705 nsresult SetAlign(const nsAString *aAlign);
1706 nsresult GetArchive(nsAString *aArchive);
1707 nsresult SetArchive(const nsAString *aArchive);
1708 nsresult GetBorder(nsAString *aBorder);
1709 nsresult SetBorder(const nsAString *aBorder);
1710 nsresult GetCodeBase(nsAString *aCodeBase);
1711 nsresult SetCodeBase(const nsAString *aCodeBase);
1712 nsresult GetCodeType(nsAString *aCodeType);
1713 nsresult SetCodeType(const nsAString *aCodeType);
1714 nsresult GetData(nsAString *aData);
1715 nsresult SetData(const nsAString *aData);
1716 nsresult GetDeclare(PRBool *aDeclare);
1717 nsresult SetDeclare(PRBool aDeclare);
1718 nsresult GetHeight(nsAString *aHeight);
1719 nsresult SetHeight(const nsAString *aHeight);
1720 nsresult GetHspace(PRInt32 *aHspace);
1721 nsresult SetHspace(PRInt32 aHspace);
1722 nsresult GetName(nsAString *aName);
1723 nsresult SetName(const nsAString *aName);
1724 nsresult GetStandby(nsAString *aStandby);
1725 nsresult SetStandby(const nsAString *aStandby);
1726 nsresult GetTabIndex(PRInt32 *aTabIndex);
1727 nsresult SetTabIndex(PRInt32 aTabIndex);
1728 nsresult GetType(nsAString *aType);
1729 nsresult SetType(const nsAString *aType);
1730 nsresult GetUseMap(nsAString *aUseMap);
1731 nsresult SetUseMap(const nsAString *aUseMap);
1732 nsresult GetVspace(PRInt32 *aVspace);
1733 nsresult SetVspace(PRInt32 aVspace);
1734 nsresult GetWidth(nsAString *aWidth);
1735 nsresult SetWidth(const nsAString *aWidth);
1736 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1737 nsresult GetWillValidate(PRBool *aWillValidate);
1738 nsresult GetValidity(nsIDOMValidityState **aValidity);
1739 nsresult GetValidationMessage(nsAString *aValidationMessage);
1740 nsresult CheckValidity(PRBool *_retval);
1741 nsresult SetCustomValidity(const nsAString *error);
1745 object,
1746 uuid(20ac93e9-4ac8-40b0-a1f3-38948f6ca6ab),
1747 local
1749 interface nsIDOMHTMLParamElement : nsIDOMHTMLElement
1751 nsresult GetName(nsAString *aName);
1752 nsresult SetName(const nsAString *aName);
1753 nsresult GetType(nsAString *aType);
1754 nsresult SetType(const nsAString *aType);
1755 nsresult GetValue(nsAString *aValue);
1756 nsresult SetValue(const nsAString *aValue);
1757 nsresult GetValueType(nsAString *aValueType);
1758 nsresult SetValueType(const nsAString *aValueType);
1762 object,
1763 uuid(675aff34-07c5-491f-b92f-ccaf616ef8b3),
1764 local
1766 interface nsIDOMHTMLStyleElement : nsIDOMHTMLElement
1768 nsresult GetDisabled(PRBool *aDisabled);
1769 nsresult SetDisabled(PRBool aDisabled);
1770 nsresult GetMedia(nsAString *aMedia);
1771 nsresult SetMedia(const nsAString *aMedia);
1772 nsresult GetType(nsAString *aType);
1773 nsresult SetType(const nsAString *aType);
1777 object,
1778 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1779 local
1781 interface nsIURIContentListener : nsISupports
1783 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1784 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1785 nsIStreamListener **aContentHandler, PRBool *_retval);
1786 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1787 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1788 char **aDesiredContentType, PRBool *_retval);
1789 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1790 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1791 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1792 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1796 object,
1797 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1798 local
1800 interface nsITooltipListener : nsISupports
1802 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1803 nsresult OnHideTooltip();
1807 object,
1808 uuid(33e9d001-caab-4ba9-8961-54902f197202),
1809 local
1811 interface nsIWebBrowser : nsISupports
1813 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1814 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1815 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1816 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1817 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1818 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1819 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1820 nsresult GetIsActive(PRBool *aIsActive);
1821 nsresult SetIsActive(PRBool aIsActive);
1824 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1825 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1828 object,
1829 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1830 local
1832 interface nsIWebBrowserSetup : nsISupports
1834 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1837 typedef void* nativeWindow;
1840 object,
1841 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1842 local
1844 interface nsIBaseWindow : nsISupports
1846 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1847 PRInt32 y, PRInt32 cx, PRInt32 cy);
1848 nsresult Create();
1849 nsresult Destroy();
1850 nsresult SetPosition(PRInt32 x, PRInt32 y);
1851 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1852 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1853 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1854 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1855 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1856 nsresult Repaint(PRBool force);
1857 nsresult GetParentWidget(nsIWidget **aParentWidget);
1858 nsresult SetParentWidget(nsIWidget *aParentWidget);
1859 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1860 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1861 nsresult GetVisibility(PRBool *aVisibility);
1862 nsresult SetVisibility(PRBool aVisibility);
1863 nsresult GetEnabled(PRBool *aEnabled);
1864 nsresult SetEnabled(PRBool aEnabled);
1865 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1866 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1867 nsresult GetMainWidget(nsIWidget **aMainWidget);
1868 nsresult SetFocus();
1869 nsresult GetTitle(PRUnichar **aTitle);
1870 nsresult SetTitle(const PRUnichar *aTitle);
1873 cpp_quote("#define LOAD_FLAGS_NONE 0x00000000")
1874 cpp_quote("#define LOAD_REPLACE 0x00040000")
1875 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x00080000")
1878 object,
1879 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1880 local
1882 interface nsIWebNavigation : nsISupports
1884 nsresult GetCanGoBack(PRBool *aCanGoBack);
1885 nsresult GetCanGoForward(PRBool *aCanGoForward);
1886 nsresult GoBack();
1887 nsresult GoForward();
1888 nsresult GotoIndex(PRInt32 index);
1889 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1890 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1891 nsresult Reload(PRUint32 aReloadFlags);
1892 nsresult Stop(PRUint32 aStopFlags);
1893 nsresult GetDocument(nsIDOMDocument **aDocument);
1894 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1895 nsresult GetReferringURI(nsIURI **aReferringURI);
1896 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1897 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1901 object,
1902 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1903 local
1905 interface nsIWebProgress : nsISupports
1907 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1908 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1909 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1910 nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1914 object,
1915 uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1916 local
1918 interface nsIPrintSettings : nsISupports
1920 typedef struct { char dummy; } nsIntMargin;
1922 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1923 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1924 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1925 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1926 nsresult Clone(nsIPrintSettings **_retval);
1927 nsresult Assign(nsIPrintSettings *aPS);
1928 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1929 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1930 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1931 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1932 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1933 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1934 nsresult GetEdgeTop(double *aEdgeTop);
1935 nsresult SetEdgeTop(double aEdgeTop);
1936 nsresult GetEdgeLeft(double *aEdgeLeft);
1937 nsresult SetEdgeLeft(double aEdgeLeft);
1938 nsresult GetEdgeBottom(double *aEdgeBottom);
1939 nsresult SetEdgeBottom(double aEdgeBottom);
1940 nsresult GetEdgeRight(double *aEdgeRight);
1941 nsresult SetEdgeRight(double aEdgeRight);
1942 nsresult GetMarginTop(double *aMarginTop);
1943 nsresult SetMarginTop(double aMarginTop);
1944 nsresult GetMarginLeft(double *aMarginLeft);
1945 nsresult SetMarginLeft(double aMarginLeft);
1946 nsresult GetMarginBottom(double *aMarginBottom);
1947 nsresult SetMarginBottom(double aMarginBottom);
1948 nsresult GetMarginRight(double *aMarginRight);
1949 nsresult SetMarginRight(double aMarginRight);
1950 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1951 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1952 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1953 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1954 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1955 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1956 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1957 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1958 nsresult GetScaling(double *aScaling);
1959 nsresult SetScaling(double aScaling);
1960 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1961 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1962 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1963 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1964 nsresult GetPrintRange(PRInt16 *aPrintRange);
1965 nsresult SetPrintRange(PRInt16 aPrintRange);
1966 nsresult GetTitle(PRUnichar **aTitle);
1967 nsresult SetTitle(const PRUnichar *aTitle);
1968 nsresult GetDocURL(PRUnichar **aDocURL);
1969 nsresult SetDocURL(const PRUnichar *aDocURL);
1970 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1971 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1972 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1973 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1974 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1975 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1976 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1977 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1978 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1979 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1980 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1981 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1982 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1983 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1984 nsresult GetIsCancelled(PRBool *aIsCancelled);
1985 nsresult SetIsCancelled(PRBool aIsCancelled);
1986 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1987 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1988 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1989 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1990 nsresult GetPrintSilent(PRBool *aPrintSilent);
1991 nsresult SetPrintSilent(PRBool aPrintSilent);
1992 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1993 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1994 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1995 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1996 nsresult GetPaperName(PRUnichar **aPaperName);
1997 nsresult SetPaperName(const PRUnichar *aPaperName);
1998 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1999 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
2000 nsresult GetPaperData(PRInt16 *aPaperData);
2001 nsresult SetPaperData(PRInt16 aPaperData);
2002 nsresult GetPaperWidth(double *aPaperWidth);
2003 nsresult SetPaperWidth(double aPaperWidth);
2004 nsresult GetPaperHeight(double *aPaperHeight);
2005 nsresult SetPaperHeight(double aPaperHeight);
2006 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
2007 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
2008 nsresult GetPlexName(PRUnichar **aPlexName);
2009 nsresult SetPlexName(const PRUnichar *aPlexName);
2010 nsresult GetColorspace(PRUnichar **aColorspace);
2011 nsresult SetColorspace(const PRUnichar *aColorspace);
2012 nsresult GetResolutionName(PRUnichar **aResolutionName);
2013 nsresult SetResolutionName(const PRUnichar aResolutionName);
2014 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
2015 nsresult SetDownloadFonts(PRBool aDownloadFonts);
2016 nsresult GetPrintReversed(PRBool *aPrintReversed);
2017 nsresult SetPrintReversed(PRBool aPrintReversed);
2018 nsresult GetPrintInColor(PRBool *aPrintInColor);
2019 nsresult SetPrintInColor(PRBool aPrintInColor);
2020 nsresult GetOrientation(PRInt32 *aOrientation);
2021 nsresult SetOrientation(PRInt32 aOrientation);
2022 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
2023 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
2024 nsresult GetNumCopies(PRInt32 *aNumCopies);
2025 nsresult SetNumCopies(PRInt32 aNumCopies);
2026 nsresult GetPrinterName(PRUnichar **aPrinterName);
2027 nsresult SetPrinterName(const PRUnichar *aPrinterName);
2028 nsresult GetPrintToFile(PRBool *aPrintToFile);
2029 nsresult SetPrintToFile(PRBool aPrintToFile);
2030 nsresult GetToFileName(PRUnichar **aToFileName);
2031 nsresult SetToFileName(const PRUnichar *aToFileName);
2032 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
2033 nsresult SetOutputFormat(PRInt16 aOutputFormat);
2034 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
2035 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
2036 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
2037 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
2038 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
2039 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
2040 nsresult SetMarginInTwips(nsIntMargin *aMargin);
2041 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
2042 nsresult GetMarginInTwips(nsIntMargin *aMargin);
2043 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
2044 nsresult SetupSilentPrinting();
2045 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2046 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2050 object,
2051 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
2052 local
2054 interface nsIWebBrowserPrint : nsISupports
2056 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
2057 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
2058 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
2059 nsresult GetDoingPrint(PRBool *aDoingPrint);
2060 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
2061 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
2062 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
2063 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
2064 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
2065 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
2066 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
2067 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
2068 nsIWebProgressListener *aWPListener);
2069 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
2070 nsresult Cancel();
2071 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
2072 nsresult ExitPrintPreview();
2076 object,
2077 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
2078 local
2080 interface nsIScrollable : nsISupports
2082 enum {
2083 ScrollOrientation_X = 1,
2084 ScrollOrientation_Y = 2
2087 enum {
2088 Scrollbar_Auto = 1,
2089 Scrollbar_Never = 2,
2090 Scrollbar_Always = 3
2093 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
2094 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
2095 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
2096 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
2097 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
2098 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
2099 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
2100 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
2101 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
2102 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
2106 object,
2107 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
2108 local
2110 interface nsIFile : nsISupports
2112 nsresult Append(const nsAString *node);
2113 nsresult AppendNative(const nsAString *node);
2114 nsresult Normalize();
2115 nsresult Create(PRUint32 type, PRUint32 permission);
2116 nsresult GetLeafName(nsAString *aLeafName);
2117 nsresult SetLeafName(const nsAString *aLeafName);
2118 nsresult GetNativeLeafName(nsAString *aLeafName);
2119 nsresult SetNativeLeafName(const nsAString *aLeafName);
2120 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2121 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2122 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2123 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2124 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2125 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2126 nsresult Remove(PRBool recursive);
2127 nsresult GetPermissions(PRUint32 *aPermissions);
2128 nsresult SetPermissions(PRUint32 pPermissions);
2129 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
2130 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
2131 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
2132 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
2133 nsresult GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink);
2134 nsresult SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink);
2135 nsresult GetFileSize(PRInt64 *aFileSize);
2136 nsresult SetFileSize(PRInt64 aFileSize);
2137 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
2138 nsresult GetTarget(nsAString *aTarget);
2139 nsresult GetNativeTarget(nsACString *aNativeTarget);
2140 nsresult GetPath(nsAString *aPath);
2141 nsresult GetNativePath(nsACString *aNativePath);
2142 nsresult Exists(PRBool *_retval);
2143 nsresult IsWritable(PRBool *_retval);
2144 nsresult IsReadable(PRBool *_retval);
2145 nsresult IsExecutable(PRBool *_retval);
2146 nsresult IsHidden(PRBool *_retval);
2147 nsresult IsDirectory(PRBool *_retval);
2148 nsresult IsFile(PRBool *_retval);
2149 nsresult IsSymlink(PRBool *_retval);
2150 nsresult IsSpecial(PRBool *_retval);
2151 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2152 nsresult Clone(nsIFile **_retval);
2153 nsresult Equals(nsIFile *inFile, PRBool *_retval);
2154 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
2155 nsresult GetParent(nsIFile **aParent);
2156 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2160 object,
2161 uuid(e0b6e170-691b-11e0-ae3e-0800200c9a66),
2162 local
2164 interface nsIPrefBranch : nsISupports
2166 nsresult GetRoot(char **aRoot);
2167 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2168 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
2169 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
2170 nsresult GetCharPref(const char *aPrefName, char **_retval);
2171 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2172 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2173 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2174 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2175 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2176 nsresult ClearUserPref(const char *aPrefName);
2177 nsresult LockPref(const char *aPrefName);
2178 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
2179 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
2180 nsresult UnlockPref(const char *aPrefName);
2181 nsresult DeleteBranch(const char *aStartingAt);
2182 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2183 nsresult ResetBranch(const char *aStartingAt);
2187 object,
2188 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2189 local
2191 interface nsIDirectoryServiceProvider : nsISupports
2193 nsresult GetFile(const char *prop, PRBool *persistent, nsIFile **_retval);
2197 object,
2198 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2199 local
2201 interface nsIProtocolHandler : nsISupports
2203 nsresult GetScheme(nsACString *aScheme);
2204 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2205 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2206 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2207 nsIURI *aBaseURI, nsIURI **_retval);
2208 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2209 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2213 object,
2214 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2215 local
2217 interface nsIExternalProtocolHandler : nsIProtocolHandler
2219 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2223 object,
2224 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2225 local
2227 interface nsIIOService : nsISupports
2229 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2230 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2231 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2232 nsIURI **_retval);
2233 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2234 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2235 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2236 nsIChannel **_retval);
2237 nsresult GetOffline(PRBool *aOffline);
2238 nsresult SetOffline(PRBool aOffline);
2239 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2240 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2244 object,
2245 uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2246 local,
2248 interface nsINetUtil : nsISupports
2250 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2251 PRBool *aHadCharset, nsACString *_retval);
2252 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2253 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2254 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2255 nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2256 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2257 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2258 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2259 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2260 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2264 object,
2265 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2266 local
2268 interface nsIWebBrowserFocus : nsISupports
2270 nsresult Activate();
2271 nsresult Deactivate();
2272 nsresult SetFocusAtFirstElement();
2273 nsresult SetFocusAtLastElement();
2274 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2275 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2276 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2277 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2281 object,
2282 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2283 local
2285 interface nsIWebBrowserChrome : nsISupports
2287 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2288 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2289 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2290 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2291 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2292 nsresult DestroyBrowserWindow();
2293 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2294 nsresult ShowAsModal();
2295 nsresult IsWindowModal(PRBool *_retval);
2296 nsresult ExitModalEventLoop(nsresult aStatus);
2300 object,
2301 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2302 local
2304 interface nsIDOMEventListener : nsISupports
2306 nsresult HandleEvent(nsIDOMEvent *event);
2310 object,
2311 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2312 local
2314 interface nsIDOMEventTarget : nsISupports
2316 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2317 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2318 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2322 object,
2323 uuid(548137e8-fd2c-48c4-8635-3033f7db79e0),
2324 local
2326 interface nsIDOMEvent : nsISupports
2328 nsresult GetType(nsAString *aType);
2329 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2330 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2331 nsresult GetEventPhase(PRUint16 *aEventPhase);
2332 nsresult GetBubbles(PRBool *aBubbles);
2333 nsresult GetCancelable(PRBool *aCancelable);
2334 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2335 nsresult StopPropagation();
2336 nsresult PreventDefault();
2337 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2338 nsresult GetDefaultPrevented(PRBool *aDefaultPrevented);
2341 cpp_quote("#define CONTEXT_NONE 0x00")
2342 cpp_quote("#define CONTEXT_LINK 0x01")
2343 cpp_quote("#define CONTEXT_IMAGE 0x02")
2344 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2345 cpp_quote("#define CONTEXT_TEXT 0x08")
2346 cpp_quote("#define CONTEXT_INPUT 0x10")
2347 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2350 object,
2351 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2352 local
2354 interface nsIContextMenuListener : nsISupports
2356 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2360 object,
2361 uuid(25f28689-3f78-47e8-8d76-15b936faf8c1),
2362 local
2364 interface nsIDOMUIEvent : nsIDOMEvent
2366 nsresult GetView(nsIDOMWindow **aView);
2367 nsresult GetDetail(PRInt32 *aDetail);
2368 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2369 nsIDOMWindow *viewArg, PRInt32 detailArg);
2373 object,
2374 uuid(73558605-f479-493e-86d1-9794cd117fef),
2375 local
2377 interface nsIDOMMouseEvent : nsIDOMUIEvent
2379 nsresult GetScreenX(PRInt32 *aScreenX);
2380 nsresult GetScreenY(PRInt32 *aScreenY);
2381 nsresult GetClientX(PRInt32 *aClientX);
2382 nsresult GetClientY(PRInt32 *aClientY);
2383 nsresult GetCtrlKey(PRBool *aCtrlKey);
2384 nsresult GetShiftKey(PRBool *aShiftKey);
2385 nsresult GetAltKey(PRBool *aAltKey);
2386 nsresult GetMetaKey(PRBool *aMetaKey);
2387 nsresult GetButton(PRUint16 *aButton);
2388 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2389 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2390 nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2391 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2392 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2393 nsIDOMEventTarget *relatedTargetArg);
2397 object,
2398 uuid(e44d7977-20f2-442e-bc13-0f2f52992a4c),
2399 local
2401 interface nsIDOMKeyEvent : nsIDOMUIEvent
2403 nsresult GetCharCode(PRUint32 *aCharCode);
2404 nsresult GetKeyCode(PRUint32 *aKeyCode);
2405 nsresult GetAltKey(PRBool *aAltKey);
2406 nsresult GetCtrlKey(PRBool *aCtrlKey);
2407 nsresult GetShiftKey(PRBool *aShiftKey);
2408 nsresult GetMetaKey(PRBool *aMetaKey);
2409 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2410 PRBool cancelableArg, nsIDOMWindow *viewArg, PRBool ctrlKeyArg,
2411 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2412 PRUint32 charCodeArg);
2416 object,
2417 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2418 local
2420 interface nsIEmbeddingSiteWindow : nsISupports
2422 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2423 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2424 nsresult SetFocus();
2425 nsresult GetVisibility(PRBool *aVisibility);
2426 nsresult SetVisibility(PRBool aVisibility);
2427 nsresult GetTitle(PRUnichar **aTitle);
2428 nsresult SetTitle(const PRUnichar *aTitle);
2429 nsresult GetSiteWindow(void **aSiteWindow);
2433 object,
2434 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2435 local
2437 interface nsIComponentRegistrar : nsISupports
2439 nsresult AutoRegister(nsIFile *aSpec);
2440 nsresult AutoUnregister(nsIFile *aSpec);
2441 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2442 const char *aContractID, nsIFactory *aFactory);
2443 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2444 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2445 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2446 const char *aType);
2447 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2448 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2449 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2450 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2451 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2452 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2453 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2457 object,
2458 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2459 local
2461 interface nsIPromptService : nsISupports
2463 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2464 const PRUnichar *aText);
2465 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2466 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2467 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2468 const PRUnichar *aText, PRBool *_retval);
2469 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2470 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2471 PRBool *_retval);
2472 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2473 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2474 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2475 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2476 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2477 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2478 PRBool *aCheckState, PRBool *_retval);
2479 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2480 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2481 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2482 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2483 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2484 PRBool *aCheckState, PRBool *_retval);
2485 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2486 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2487 PRInt32 *aOutSelection, PRBool *_retval);
2491 object,
2492 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2493 local
2495 interface nsITooltipTextProvider : nsISupports
2497 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2501 object,
2502 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2503 local
2505 interface nsIProfile : nsISupports
2507 nsresult GetProfileCount(PRInt32 *aProfileCount);
2508 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2509 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2510 nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2511 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2512 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2513 nsresult CreateNewProfile(const PRUnichar *profileName,
2514 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2515 PRBool useExistingDir);
2516 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2517 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2518 nsresult CloneProfile(const PRUnichar *profileName);
2522 object,
2523 uuid(30465632-a777-44cc-90f9-8145475ef999),
2524 local
2526 interface nsIWindowCreator : nsISupports
2528 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2529 nsIWebBrowserChrome **_retval);
2533 object,
2534 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2535 local
2537 interface nsIWindowCreator2 : nsIWindowCreator
2539 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2540 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2541 nsIWebBrowserChrome **_retval);
2545 object,
2546 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2547 local
2549 interface nsIWindowWatcher : nsISupports
2551 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2552 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2553 nsresult RegisterNotification(nsIObserver *aObserver);
2554 nsresult UnregisterNotification(nsIObserver *aObserver);
2555 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2556 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2557 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2558 nsresult SetWindowCreator(nsIWindowCreator *creator);
2559 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2560 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2561 nsIDOMWindow **_retval);
2562 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2563 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2567 object,
2568 uuid(24f3f4da-18a4-448d-876d-7360fefac029),
2569 local
2571 interface nsIEditingSession : nsISupports
2573 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2574 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2575 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2576 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2577 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2578 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2579 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2580 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2581 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2582 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2583 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2584 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2585 nsresult GetJsAndPluginsDisabled(PRBool *aJsAndPluginsDisabled);
2589 object,
2590 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2591 local
2593 interface nsICommandParams : nsISupports
2595 nsresult GetValueType(const char *name, PRInt16 *_retval);
2596 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2597 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2598 nsresult GetDoubleValue(const char *name, double *_retval);
2599 nsresult GetStringValue(const char *name, nsAString *_retval);
2600 nsresult GetCStringValue(const char *name, char **_retval);
2601 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2602 nsresult SetBooleanValue(const char *name, PRBool value);
2603 nsresult SetLongValue(const char *name, PRInt32 value);
2604 nsresult SetDoubleValue(const char *name, double value);
2605 nsresult SetStringValue(const char *name, const nsAString *value);
2606 nsresult SetCStringValue(const char *name, const char *value);
2607 nsresult SetISupportsValue(const char *name, nsISupports *value);
2608 nsresult RemoveValue(const char *name);
2609 nsresult HasMoreElements(PRBool *_retval);
2610 nsresult First();
2611 nsresult GetNext(char **_retval);
2615 object,
2616 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2617 local
2619 interface nsICommandManager : nsISupports
2621 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2622 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2623 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2624 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2625 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2626 nsICommandParams *aCommandParams);
2627 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2628 nsIDOMWindow *aTargetWindow);
2632 object,
2633 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2634 local
2636 interface nsIControllerContext : nsISupports
2638 nsresult Init(nsIControllerCommandTable *aCommandTable);
2639 nsresult SetCommandContext(nsISupports *aCommandContext);
2643 object,
2644 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2645 local
2647 interface nsIController : nsISupports
2649 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2650 nsresult SupportsCommand(const char *command, PRBool *_retval);
2651 nsresult DoCommand(const char *command);
2652 nsresult OnEvent(const char *eventName);
2656 object,
2657 uuid(32b94ba0-1ebc-4dfc-ba8c-5f242bcbafce),
2658 local
2660 interface nsIContent : nsISupports
2662 /* This is not a real interface declaration. It's too internal for us. */
2666 object,
2667 uuid(26ef6218-cd5e-4953-bb57-b85029a1ae40),
2668 local
2670 interface nsIDocument : nsISupports
2672 /* This is not a real interface declaration. It's too internal for us. */
2676 object,
2677 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
2678 local
2680 interface nsIContentSerializer : nsISupports
2682 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2683 PRBool aIsWholeDocument);
2684 nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2685 nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
2686 PRInt32 aEndOffset, nsAString *aStr);
2687 nsresult AppendProcessingInstruction(nsIContent* aPI, PRInt32 aStartOffset,
2688 PRInt32 aEndOffset, nsAString *aStr);
2689 nsresult AppendComment(nsIContent *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2690 nsAString *aStr);
2691 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
2692 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
2693 nsAString *aStr);
2694 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
2695 nsresult Flush(nsAString *aStr);
2696 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
2700 object,
2701 uuid(bd5d93f0-6451-11e0-ae3e-0800200c9a66),
2702 local
2704 interface nsIEditor : nsISupports
2706 typedef void *nsIContentPtr;
2708 nsresult GetSelection([out] nsISelection *_retval);
2709 nsresult Init([in] nsIDOMDocument *doc, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2710 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2711 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2712 nsresult PostCreate();
2713 nsresult PreDestroy();
2714 nsresult GetFlags([out] PRUint32 *_retval);
2715 nsresult SetFlags([in] PRUint32 val);
2716 nsresult GetContentsMIMEType([out] char **_retval);
2717 nsresult SetContentsMIMEType([in] const char *val);
2718 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2719 nsresult GetDocument([out] nsIDOMDocument **_retval);
2720 nsresult GetRootElement([out] nsIDOMElement **_retval);
2721 nsresult GetSelectionController([out] nsISelectionController **_retval);
2722 nsresult DeleteSelection([in] PRInt16 action);
2723 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2724 nsresult GetDocumentModified([out] PRBool *_retval);
2725 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2726 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2727 nsresult ResetModificationCount();
2728 nsresult GetModificationCount([out] PRInt32 *_retval);
2729 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2730 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2731 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2732 nsresult DoTransaction([in] nsITransaction *txn);
2733 nsresult EnableUndo([in] PRBool enable);
2734 nsresult Undo([in] PRUint32 count);
2735 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2736 nsresult Redo([in] PRUint32 count);
2737 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2738 nsresult BeginTransaction();
2739 nsresult EndTransaction();
2740 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2741 nsresult EndPlaceHolderTransaction();
2742 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2743 nsresult SetShouldTxnSetSelection([in] PRBool should);
2744 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2745 nsresult SyncRealTimeSpell();
2746 nsresult SetSpellcheckUserOverride(PRBool enable);
2747 nsresult Cut();
2748 nsresult CanCut([out] PRBool *_retval);
2749 nsresult Copy();
2750 nsresult CanCopy([out] PRBool *_retval);
2751 nsresult Paste([in] PRInt32 aSelectionType);
2752 nsresult PasteTransferable(nsITransferable *aTransferable);
2753 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2754 nsresult CanPasteTransferable(nsITransferable *aTransferable, PRBool *_retval);
2755 nsresult SelectAll();
2756 nsresult BeginningOfDocument();
2757 nsresult EndOfDocument();
2758 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2759 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2760 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2761 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2762 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2763 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2764 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2765 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2766 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2767 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2768 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2769 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2770 nsresult DeleteNode([in] nsIDOMNode *child);
2771 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2772 nsresult SwitchTextDirection();
2773 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2774 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2775 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2776 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2777 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2778 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2779 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2780 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2781 nsresult DumpContentTree();
2782 nsresult DebugDumpContent();
2783 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2784 PRBool IsModifiableNode(nsIDOMNode *aNode);
2785 nsresult GetLastKeypressEventTrusted(PRBool *aLastKeypressEventTrusted);
2789 object,
2790 uuid(c964b8b0-e9e8-11df-9492-0800200c9a66),
2791 local
2793 interface nsIHTMLEditor : nsISupports
2795 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2796 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2797 nsresult RemoveAllDefaultProperties();
2798 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2799 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2800 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2801 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2802 nsresult RemoveAllInlineProperties();
2803 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2804 nsresult IncreaseFontSize();
2805 nsresult DecreaseFontSize();
2806 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2807 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2808 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2809 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2810 nsresult InsertHTML([in] nsAString *aInputString);
2811 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2812 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2813 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);
2814 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2815 nsresult SetDocumentTitle([in] nsAString *aTitle);
2816 nsresult UpdateBaseURL();
2817 nsresult SelectElement([in] nsIDOMElement *aElement);
2818 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2819 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2820 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2821 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2822 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2823 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2824 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2825 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2826 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2827 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2828 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2829 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2830 nsresult RemoveList([in] nsAString *aListType);
2831 nsresult Indent([in] nsAString *aIndent);
2832 nsresult Align([in] nsAString *aAlign);
2833 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2834 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2835 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2836 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2837 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2838 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2839 nsresult SetBackgroundColor([in] nsAString *aColor);
2840 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2841 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2842 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2843 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2844 nsresult SetIsCSSEnabled([in] PRBool prb);
2845 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2846 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2847 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2848 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2849 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2850 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2851 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2852 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2853 nsresult BreakIsVisible(nsIDOMNode *aNode, PRBool *_retval);
2857 object,
2858 uuid(f77271a1-0b22-4581-af6d-529125f1901d),
2859 local
2861 interface nsIDocShell : nsISupports
2863 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
2864 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
2865 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
2866 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
2867 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
2868 nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
2869 nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, PRBool aReplace, JSContext *cx);
2870 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
2871 nsresult PrepareForNewContentModel();
2872 nsresult SetCurrentURI(nsIURI *aURI);
2873 nsresult FirePageHideNotification(PRBool isUnload);
2874 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
2875 nsresult GetPresShell(nsIPresShell **aPresShell);
2876 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
2877 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
2878 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
2879 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
2880 nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
2881 nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
2882 nsresult GetAllowPlugins(PRBool *aAllowPlugins);
2883 nsresult SetAllowPlugins(PRBool aAllowPlugins);
2884 nsresult GetAllowJavascript(PRBool *aAllowJavascript);
2885 nsresult SetAllowJavascript(PRBool aAllowJavascript);
2886 nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
2887 nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
2888 nsresult GetAllowSubframes(PRBool *aAllowSubframes);
2889 nsresult SetAllowSubframes(PRBool aAllowSubframes);
2890 nsresult GetAllowImages(PRBool *aAllowImages);
2891 nsresult SetAllowImages(PRBool aAllowImages);
2892 nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
2893 nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
2894 nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
2895 nsresult GetAppType(PRUint32 *aAppType);
2896 nsresult SetAppType(PRUint32 aAppType);
2897 nsresult GetAllowAuth(PRBool *aAllowAuth);
2898 nsresult SetAllowAuth(PRBool aAllowAuth);
2899 nsresult GetZoom(float *aZoom);
2900 nsresult SetZoom(float aZoom);
2901 nsresult GetMarginWidth(PRInt32 *aMarginWidth);
2902 nsresult SetMarginWidth(PRInt32 aMarginWidth);
2903 nsresult GetMarginHeight(PRInt32 *aMarginHeight);
2904 nsresult SetMarginHeight(PRInt32 aMarginHeight);
2905 nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
2906 nsresult GetBusyFlags(PRUint32 *aBusyFlags);
2907 nsresult GetLoadType(PRUint32 *aLoadType);
2908 nsresult SetLoadType(PRUint32 aLoadType);
2909 nsresult IsBeingDestroyed(PRBool *_retval);
2910 nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
2911 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
2912 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
2913 nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
2914 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
2915 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
2916 nsresult SuspendRefreshURIs();
2917 nsresult ResumeRefreshURIs();
2918 nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
2919 nsresult FinishRestore();
2920 nsresult GetRestoringDocument(PRBool *aRestoringDocument);
2921 nsresult GetUseErrorPages(PRBool *aUseErrorPages);
2922 nsresult SetUseErrorPages(PRBool aUseErrorPages);
2923 nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
2924 nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
2925 nsresult HistoryPurged(PRInt32 numEntries);
2926 nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
2927 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
2928 PRBool create, nsIDOMStorage **_retval);
2929 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
2930 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
2931 nsresult SetChildOffset(PRUint32 offset);
2932 nsresult GetIsInUnload(PRBool *aIsInUnload);
2933 nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
2934 void DetachEditorFromWindow();
2935 nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
2936 nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
2937 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
2938 nsresult GetCanExecuteScripts(PRBool *aCanExecuteScripts);
2939 nsresult GetIsActive(PRBool *aIsActive);
2940 nsresult SetIsActive(PRBool aIsActive);
2941 nsresult GetHistoryID(PRUint64 *aHistoryID);
2942 nsresult GetIsAppTab(PRBool *aIsAppTab);
2943 nsresult SetIsAppTab(PRBool aIsAppTab);
2944 nsresult CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal);
2948 object,
2949 uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa),
2950 local
2952 interface nsIMutationObserver : nsISupports
2954 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2955 void /*CharacterDataChangeInfo*/ *aInfo);
2956 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2957 void /*CharacterDataChangeInfo*/ *aInfo);
2958 void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2959 nsIAtom *aAttribute, PRInt32 aModType);
2960 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2961 nsIAtom *aAttribute, PRInt32 aModType);
2962 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent* aFirstNewContent,
2963 PRInt32 aNewIndexInContainer);
2964 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2965 PRInt32 aIndexInContainer);
2966 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2967 PRInt32 aIndexInContainer, nsIContent *aPreviousSibling);
2968 void NodeWillBeDestroyed(const nsINode *aNode);
2969 void ParentChainChanged(nsIContent *aContent);
2973 object,
2974 uuid(cbc0cbd8-bbb7-46d6-a551-378a6953a714),
2975 local
2977 interface nsIParser : nsISupports
2979 typedef int nsDTDMode;
2980 typedef int eParserCommands;
2982 void SetContentSink(nsIContentSink *aSink);
2983 nsIContentSink *GetContentSink();
2984 void GetCommand(nsACString *aCommand);
2985 void SetCommand2(const char *aCommand);
2986 void SetCommand(eParserCommands aParserCommand);
2987 void SetDocumentCharset(const nsACString *aCharset, PRInt32 aSource);
2988 void GetDocumentCharset(nsACString *oCharset, PRInt32 *oSource);
2989 void SetParserFilter(nsIParserFilter *aFilter);
2990 nsresult GetChannel(nsIChannel **aChannel);
2991 nsresult GetDTD(nsIDTD **aDTD);
2992 nsresult GetStreamListener(nsIStreamListener **aListener);
2993 nsresult ContinueInterruptedParsing();
2994 void BlockParser();
2995 void UnblockParser();
2996 PRBool IsParserEnabled();
2997 PRBool IsComplete();
2998 nsresult Parse(nsIURI *aURL, nsIRequestObserver *aListener, void *aKey, nsDTDMode aMode);
2999 nsresult Parse2(const nsAString *aSourceBuffer, void *aKey, const nsACString *aMimeType, PRBool aLastCall, nsDTDMode aMode);
3000 void *GetRootContextKey();
3001 nsresult Terminate();
3002 nsresult ParseFragment(const nsAString *aSourceBuffer, void *aKey, void /*nsTArray<nsString>*/ *aTagStack,
3003 PRBool aXMLMode, const nsACString *aContentType, nsDTDMode aMode);
3004 nsresult ParseFragment2(const nsAString *aSourceBuffer, nsIContent *aTargetNode, nsIAtom *aContextLocalName,
3005 PRInt32 aContextNamespace, PRBool aQuirks);
3006 nsresult BuildModel();
3007 nsresult CancelParsingEvents();
3008 void Reset();
3009 PRBool CanInterrupt();
3010 PRBool IsInsertionPointDefined();
3011 void BeginEvaluatingParserInsertedScript();
3012 void EndEvaluatingParserInsertedScript();
3013 void MarkAsNotScriptCreated();
3014 PRBool IsScriptCreated();
3018 object,
3019 uuid(900bc4bc-8b6c-4cba-82fa-568a80fffd3e),
3020 local
3022 interface nsIDocumentObserver : nsIMutationObserver
3024 typedef int nsUpdateType;
3026 typedef struct {
3027 PRUint64 mStates;
3028 } nsEventStates;
3030 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
3031 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
3032 void BeginLoad(nsIDocument *aDocument);
3033 void EndLoad(nsIDocument *aDocument);
3034 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent, nsEventStates aStateMask);
3035 void DocumentStatesChanged(nsIDocument* aDocument, nsEventStates aStateMask);
3036 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
3037 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
3038 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
3039 PRBool aApplicable);
3040 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
3041 nsIStyleRule *aNewStyleRule);
3042 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
3043 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
3044 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
3045 nsresult DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified, nsIParser *aParser);
3049 object,
3050 uuid(3682dd99-8560-44f4-9b8f-ccce9d7b96fb),
3051 local
3053 interface nsIContentUtils : nsISupports
3055 PRBool IsSafeToRunScript();
3056 nsresult AddDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
3057 nsresult RemoveDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
3058 nsresult AddMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
3059 nsresult RemoveMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
3060 nsresult AddScriptRunner(nsIRunnable *aRunnable);
3063 /* Parts of npapi.h */
3065 cpp_quote("#define NP_VERSION_MAJOR 0")
3066 cpp_quote("#define NP_VERSION_MINOR 25")
3068 typedef unsigned char NPBool;
3069 typedef INT16 NPError;
3070 typedef INT16 NPReason;
3071 typedef char *NPMIMEType;
3073 typedef struct _NPP {
3074 void *pdata;
3075 void *ndata;
3076 } NPP_t, *NPP;
3078 typedef struct _NPStream {
3079 void *pdata;
3080 void *ndata;
3081 const char *url;
3082 UINT32 end;
3083 UINT32 lastmodified;
3084 void *notifyData;
3085 const char *headers;
3086 } NPStream;
3088 typedef struct _NPSavedData {
3089 INT32 len;
3090 void *buf;
3091 } NPSavedData;
3093 typedef struct _NPRect {
3094 UINT16 top;
3095 UINT16 left;
3096 UINT16 bottom;
3097 UINT16 right;
3098 } NPRect;
3100 typedef enum {
3101 NPFocusNext = 0,
3102 NPFocusPrevious = 1
3103 } NPFocusDirection;
3105 #define NP_ABI_MASK 0
3107 typedef enum {
3108 NPPVpluginNameString = 1,
3109 NPPVpluginDescriptionString,
3110 NPPVpluginWindowBool,
3111 NPPVpluginTransparentBool,
3112 NPPVjavaClass,
3113 NPPVpluginWindowSize,
3114 NPPVpluginTimerInterval,
3115 NPPVpluginScriptableInstance = (10 | NP_ABI_MASK),
3116 NPPVpluginScriptableIID = 11,
3117 NPPVjavascriptPushCallerBool = 12,
3118 NPPVpluginKeepLibraryInMemory = 13,
3119 NPPVpluginNeedsXEmbed = 14,
3120 NPPVpluginScriptableNPObject = 15,
3121 NPPVformValue = 16,
3122 NPPVpluginUrlRequestsDisplayedBool = 17,
3123 NPPVpluginWantsAllNetworkStreams = 18,
3124 NPPVpluginNativeAccessibleAtkPlugId = 19,
3125 NPPVpluginCancelSrcStream = 20,
3126 NPPVSupportsAdvancedKeyHandling = 21
3127 } NPPVariable;
3129 typedef enum {
3130 NPNVxDisplay = 1,
3131 NPNVxtAppContext,
3132 NPNVnetscapeWindow,
3133 NPNVjavascriptEnabledBool,
3134 NPNVasdEnabledBool,
3135 NPNVisOfflineBool,
3136 NPNVserviceManager = (10 | NP_ABI_MASK),
3137 NPNVDOMElement = (11 | NP_ABI_MASK),
3138 NPNVDOMWindow = (12 | NP_ABI_MASK),
3139 NPNVToolkit = (13 | NP_ABI_MASK),
3140 NPNVSupportsXEmbedBool = 14,
3141 NPNVWindowNPObject = 15,
3142 NPNVPluginElementNPObject = 16,
3143 NPNVSupportsWindowless = 17,
3144 NPNVprivateModeBool = 18,
3145 NPNVsupportsAdvancedKeyHandling = 21
3146 } NPNVariable;
3148 typedef enum {
3149 NPWindowTypeWindow = 1,
3150 NPWindowTypeDrawable
3151 } NPWindowType;
3153 typedef struct _NPWindow {
3154 void *window;
3155 INT32 x;
3156 INT32 y;
3157 UINT32 width;
3158 UINT32 height;
3159 NPRect clipRect;
3160 NPWindowType type;
3161 } NPWindow;
3163 typedef struct _NPFullPrint {
3164 NPBool pluginPrinted;
3165 NPBool printOne;
3166 void *platformPrint;
3167 } NPFullPrint;
3169 typedef struct _NPEmbedPrint {
3170 NPWindow window;
3171 void *platformPrint;
3172 } NPEmbedPrint;
3174 typedef struct _NPPrint {
3175 UINT16 mode;
3176 union {
3177 NPFullPrint fullPrint;
3178 NPEmbedPrint embedPrint;
3179 } print;
3180 } NPPrint;
3182 typedef HRGN NPRegion;
3185 object,
3186 uuid(8f672000-bab9-4c60-aaaf-2673c4e2a4c6),
3187 local
3189 interface nsIPluginInstance : nsISupports
3191 nsresult GetDOMElement(nsIDOMElement **aDOMElement);