2 * Copyright 2005-2012 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
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.8\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
31 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
32 cpp_quote("#undef GetForm")
33 cpp_quote("#undef SetPort")
36 typedef HRESULT nsresult;
37 typedef ULONG nsrefcnt;
42 typedef REFIID nsIIDRef;
43 typedef nsIIDRef nsCIDRef;
45 typedef WCHAR PRUnichar;
46 typedef ULONG PRUint32;
48 typedef WORD PRUint16;
49 typedef INT16 PRInt16;
51 typedef LONGLONG PRInt64;
52 typedef ULONGLONG PRUint64;
53 typedef PRUint64 DOMTimeStamp;
54 typedef PRUint32 nsLoadFlags;
56 typedef unsigned char cpp_bool;
73 typedef nsCStringContainer nsACString;
74 typedef nsStringContainer nsAString;
76 interface nsIWebBrowserChrome;
77 interface nsILoadGroup;
79 interface nsIDOMDocument;
80 interface nsIDOMEvent;
82 interface nsISelectionController;
83 interface nsITransactionManager;
84 interface nsITransaction;
85 interface nsIInlineSpellChecker;
86 interface nsIOutputStream;
87 interface nsIEditorObserver;
88 interface nsIEditActionListener;
89 interface nsIDocumentStateListener;
90 interface nsIDOMCSSStyleSheet;
91 interface nsIDOMDocumentView;
92 interface nsIDOMWindow;
93 interface nsIDOMElement;
94 interface nsIDOMRange;
95 interface nsIDOMEventTarget;
96 interface nsISelection;
97 interface nsIDOMHTMLSelectElement;
104 uuid(00000000-0000-0000-c000-000000000046),
107 interface nsISupports
109 nsresult QueryInterface(nsIIDRef riid, void **result);
114 /* Currently we don't need a full declaration of these interfaces */
115 typedef nsISupports nsISHistory;
116 typedef nsISupports nsIWidget;
117 typedef nsISupports nsIDOMBarProp;
118 typedef nsISupports nsIPrompt;
119 typedef nsISupports nsIAuthPrompt;
120 typedef nsISupports nsIDOMDocumentType;
121 typedef nsISupports nsIDOMDOMImplementation;
122 typedef nsISupports nsIDOMCDATASection;
123 typedef nsISupports nsIDOMProcessingInstruction;
124 typedef nsISupports nsIDOMEntityReference;
125 typedef nsISupports nsIWebProgressListener;
126 typedef nsISupports nsIDOMCSSValue;
127 typedef nsISupports nsIPrintSession;
128 typedef nsISupports nsIControllerCommandTable;
129 typedef nsISupports nsIPrincipal;
130 typedef nsISupports nsIAtom;
131 typedef nsISupports nsISupportsArray;
132 typedef nsISupports nsIContentFilter;
133 typedef nsISupports nsIDOMMediaList;
134 typedef nsISupports nsIDOMHTMLTableCaptionElement;
135 typedef nsISupports nsIDOMHTMLTableSectionElement;
136 typedef nsISupports nsIDOMClientRectList;
137 typedef nsISupports nsINode;
138 typedef nsISupports nsIStyleSheet;
139 typedef nsISupports nsIStyleRule;
140 typedef nsISupports nsIDOMUserDataHandler;
141 typedef nsISupports nsIDocShellLoadInfo;
142 typedef nsISupports nsISHEntry;
143 typedef nsISupports nsIPresShell;
144 typedef nsISupports nsIContentViewer;
145 typedef nsISupports nsIDocumentCharsetInfo;
146 typedef nsISupports nsILayoutHistoryState;
147 typedef nsISupports nsISecureBrowserUI;
148 typedef nsISupports nsIDOMStorage;
149 typedef nsISupports nsIDOMDOMTokenList;
150 typedef nsISupports nsITransferable;
151 typedef nsISupports nsIDOMFileList;
152 typedef nsISupports nsIDOMFile;
153 typedef nsISupports nsIControllers;
154 typedef nsISupports nsIDOMValidityState;
155 typedef nsISupports nsIPluginInstanceOwner;
156 typedef nsISupports nsIPluginStreamListener;
157 typedef nsISupports nsIContentSink;
158 typedef nsISupports nsIParserFilter;
159 typedef nsISupports nsIDTD;
160 typedef nsISupports nsIObserver;
161 typedef nsISupports nsIDOMNodeFilter;
162 typedef nsISupports nsIDOMNodeIterator;
163 typedef nsISupports nsIDOMTreeWalker;
164 typedef nsISupports nsIHttpUpgradeListener;
165 typedef nsISupports nsIDOMDOMStringMap;
166 typedef nsISupports nsIDOMDOMStringList;
167 typedef nsISupports nsIDOMOfflineResourceList;
168 typedef nsISupports nsIDOMHistory;
169 typedef nsISupports nsIDOMNavigator;
170 typedef nsISupports nsIDOMMediaQueryList;
171 typedef nsISupports nsIDOMScreen;
172 typedef nsISupports nsIDOMCrypto;
173 typedef nsISupports nsIDOMPkcs11;
174 typedef nsISupports nsIAnimationFrameListener;
175 typedef nsISupports nsIDOMMozURLProperty;
176 typedef nsISupports nsIDOMStorageList;
177 typedef nsISupports nsILocalFile;
178 typedef nsISupports nsIDOMHTMLMenuElement;
179 typedef nsISupports nsIDOMCaretPosition;
180 typedef nsISupports nsIFrameRequestCallback;
181 typedef nsISupports nsICycleCollectorListener;
182 typedef nsISupports nsIDOMHTMLCanvasElement;
183 typedef nsISupports nsIQueryContentEventResult;
184 typedef nsISupports nsIDOMBlob;
185 typedef nsISupports nsIPrivacyTransitionObserver;
186 typedef nsISupports nsIDOMHTMLPropertiesCollection;
187 typedef nsISupports mozIDOMApplication;
189 typedef void *JSContext;
190 typedef void *JSObject;
191 typedef PRUint64 jsval;
195 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
198 interface nsIServiceManager : nsISupports
200 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
201 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
202 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
203 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
208 uuid(00000001-0000-0000-c000-000000000046),
211 interface nsIFactory : nsISupports
213 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
214 nsresult LockFactory(bool lock);
219 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
222 interface nsIMemory : nsISupports
224 void *Alloc(/*size_t*/ int size);
225 void *Realloc(void *_ptr, /*size_t*/ int newSize);
226 void Free(void *_ptr);
227 nsresult HeapMinimize(bool immediate);
228 nsresult IsLowMemory(bool *_retval);
233 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
236 interface nsIWeakReference : nsISupports
238 nsresult QueryReferent(const nsIID *riid, void **result);
243 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
246 interface nsISupportsWeakReference : nsISupports
248 nsresult GetWeakReference(nsIWeakReference **_retval);
253 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
256 interface nsIInterfaceRequestor : nsISupports
258 nsresult GetInterface(const nsIID *riid, void **result);
263 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
266 interface nsIRunnable : nsISupports
273 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
276 interface nsISimpleEnumerator : nsISupports
278 nsresult HasMoreElements(bool *_retval);
279 nsresult GetNext(nsISupports **_retval);
284 uuid(81e4c2de-acac-4ad6-901a-b5fb1b851a0d),
287 interface nsIVariant : nsISupports
289 nsresult GetDataType(PRUint16 *aDataType);
290 nsresult GetAsInt8(PRUint8 *_retval);
291 nsresult GetAsInt16(PRInt16 *_retval);
292 nsresult GetAsInt32(PRInt32 *_retval);
293 nsresult GetAsInt64(PRInt64 *_retval);
294 nsresult GetAsUint8(PRUint8 *_retval);
295 nsresult GetAsUint16(PRUint16 *_retval);
296 nsresult GetAsUint32(PRUint32 *_retval);
297 nsresult GetAsUint64(PRUint64 *_retval);
298 nsresult GetAsFloat(float *_retval);
299 nsresult GetAsDouble(double *_retval);
300 nsresult GetAsBool(bool *_retval);
301 nsresult GetAsChar(char *_retval);
302 nsresult GetAsWChar(PRUnichar *_retval);
303 nsresult GetAsID(nsID *retval);
304 nsresult GetAsAString(nsAString *_retval);
305 nsresult GetAsDOMString(nsAString *_retval);
306 nsresult GetAsACString(nsACString *_retval);
307 nsresult GetAsAUTF8String(nsACString *_retval);
308 nsresult GetAsString(char * *_retval);
309 nsresult GetAsWString(PRUnichar * *_retval);
310 nsresult GetAsISupports(nsISupports * *_retval);
311 nsresult GetAsJSVal(long /*jsval*/ *_retval);
312 nsresult GetAsInterface(nsIID **iid, void **iface);
313 nsresult GetAsArray(PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr);
314 nsresult GetAsStringWithSize(PRUint32 *size, char **str);
315 nsresult GetAsWStringWithSize(PRUint32 *size, PRUnichar **str);
320 uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a),
323 interface nsIWritableVariant : nsIVariant
325 nsresult GetWritable(bool *aWritable);
326 nsresult SetWritable(bool aWritable);
327 nsresult SetAsInt8(PRUint8 aValue);
328 nsresult SetAsInt16(PRInt16 aValue);
329 nsresult SetAsInt32(PRInt32 aValue);
330 nsresult SetAsInt64(PRInt64 aValue);
331 nsresult SetAsUint8(PRUint8 aValue);
332 nsresult SetAsUint16(PRUint16 aValue);
333 nsresult SetAsUint32(PRUint32 aValue);
334 nsresult SetAsUint64(PRUint64 aValue);
335 nsresult SetAsFloat(float aValue);
336 nsresult SetAsDouble(double aValue);
337 nsresult SetAsBool(bool aValue);
338 nsresult SetAsChar(char aValue);
339 nsresult SetAsWChar(PRUnichar aValue);
340 nsresult SetAsID(const nsID *aValue);
341 nsresult SetAsAString(const nsAString *aValue);
342 nsresult SetAsDOMString(const nsAString *aValue);
343 nsresult SetAsACString(const nsACString *aValue);
344 nsresult SetAsAUTF8String(const nsACString *aValue);
345 nsresult SetAsString(const char * aValue);
346 nsresult SetAsWString(const PRUnichar * aValue);
347 nsresult SetAsISupports(nsISupports *aValue);
348 nsresult SetAsInterface(const nsIID *iid, void *iface);
349 nsresult SetAsArray(PRUint16 type, const nsIID *iid, PRUint32 count, void *ptr);
350 nsresult SetAsStringWithSize(PRUint32 size, const char *str);
351 nsresult SetAsWStringWithSize(PRUint32 size, const PRUnichar *str);
352 nsresult SetAsVoid();
353 nsresult SetAsEmpty();
354 nsresult SetAsEmptyArray();
355 nsresult SetFromVariant(nsIVariant *aValue);
360 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
363 interface nsIInputStream : nsISupports
366 nsresult Available(PRUint32 *_retval);
367 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
368 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
369 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
370 PRUint32 aCount, PRUint32 *aWriteCount),
371 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
372 nsresult IsNonBlocking(bool *_retval);
377 uuid(395fe045-7d18-4adb-a3fd-af98c8a1af11),
380 interface nsIURI : nsISupports
382 nsresult GetSpec(nsACString *aSpec);
383 nsresult SetSpec(const nsACString *aSpec);
384 nsresult GetPrePath(nsACString *aPrePath);
385 nsresult GetScheme(nsACString *aScheme);
386 nsresult SetScheme(const nsACString *aScheme);
387 nsresult GetUserPass(nsACString *aUserPass);
388 nsresult SetUserPass(const nsACString *aUserPass);
389 nsresult GetUsername(nsACString *aUsername);
390 nsresult SetUsername(const nsACString *aUsername);
391 nsresult GetPassword(nsACString *aPassword);
392 nsresult SetPassword(const nsACString *aPassword);
393 nsresult GetHostPort(nsACString *aHostPort);
394 nsresult SetHostPort(const nsACString *aHostPort);
395 nsresult GetHost(nsACString *aHost);
396 nsresult SetHost(const nsACString *aHost);
397 nsresult GetPort(PRInt32 *aPort);
398 nsresult SetPort(PRInt32 aPort);
399 nsresult GetPath(nsACString *aPath);
400 nsresult SetPath(const nsACString *aPath);
401 nsresult Equals(nsIURI *other, bool *_retval);
402 nsresult SchemeIs(const char *scheme, bool *_retval);
403 nsresult Clone(nsIURI **_retval);
404 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
405 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
406 nsresult GetAsciiHost(nsACString *aAsciiHost);
407 nsresult GetOriginCharset(nsACString *aOriginCharset);
408 nsresult GetRef(nsACString *aRef);
409 nsresult SetRef(const nsACString *aRef);
410 nsresult EqualsExceptRef(nsIURI *other, bool *_retval);
411 nsresult CloneIgnoringRef(nsIURI **_retval);
412 nsresult GetSpecIgnoringRef(nsACString *aSpecIgnoringRef);
413 nsresult GetHasRef(bool *aHasRef);
418 uuid(1419aa16-f134-4154-9886-00c7c5147a13),
421 interface nsIURL : nsIURI
423 nsresult GetFilePath(nsACString *aFilePath);
424 nsresult SetFilePath(const nsACString *aFilePath);
425 nsresult GetQuery(nsACString *aQuery);
426 nsresult SetQuery(const nsACString *aQuery);
427 nsresult GetDirectory(nsACString *aDirectory);
428 nsresult SetDirectory(const nsACString *aDirectory);
429 nsresult GetFileName(nsACString *aFileName);
430 nsresult SetFileName(const nsACString *aFileName);
431 nsresult GetFileBaseName(nsACString *aFileBaseName);
432 nsresult SetFileBaseName(const nsACString *aFileBaseName);
433 nsresult GetFileExtension(nsACString *aFileExtension);
434 nsresult SetFileExtension(const nsACString *aFileExtension);
435 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
436 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
441 uuid(7750029c-1b0a-414e-8359-a77f24a2a0a6),
444 interface nsIFileURL : nsIURL
446 nsresult GetFile(nsIFile **aFile);
447 nsresult SetFile(nsIFile *aFile);
452 uuid(321578d0-03c1-4d95-8821-021ac612d18d),
455 interface nsIMutable : nsISupports
457 nsresult GetMutable(bool *aMutable);
458 nsresult SetMutable(bool aMutable);
463 uuid(babd6cca-ebe7-4329-967c-d6b9e33caa81),
466 interface nsIStandardURL : nsIMutable
468 nsresult Init(PRUint32 aUrlType, PRInt32 aDefaultPort, const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI);
473 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
476 interface nsIRequest : nsISupports
478 nsresult GetName(nsACString *aName);
479 nsresult IsPending(bool *_retval);
480 nsresult GetStatus(nsresult *aStatus);
481 nsresult Cancel(nsresult aStatus);
484 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
485 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
486 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
487 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
492 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
495 interface nsIRequestObserver : nsISupports
497 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
498 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
503 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
506 interface nsIStreamListener : nsIRequestObserver
508 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
509 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
514 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
517 interface nsILoadGroup : nsIRequest
519 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
520 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
521 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
522 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
523 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
524 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
525 nsresult GetRequests(nsISimpleEnumerator **aRequests);
526 nsresult GetActiveCount(PRUint32 *aActiveCount);
527 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
528 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
533 uuid(06f6ada3-7729-4e72-8d3f-bf8ba630ff9b),
536 interface nsIChannel : nsIRequest
538 nsresult GetOriginalURI(nsIURI **aOriginalURI);
539 nsresult SetOriginalURI(nsIURI *aOriginalURI);
540 nsresult GetURI(nsIURI **aURI);
541 nsresult GetOwner(nsISupports **aOwner);
542 nsresult SetOwner(nsISupports *aOwner);
543 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
544 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
545 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
546 nsresult GetContentType(nsACString *aContentType);
547 nsresult SetContentType(const nsACString *aContentType);
548 nsresult GetContentCharset(nsACString *aContentCharset);
549 nsresult SetContentCharset(const nsACString *aContentCharset);
550 nsresult GetContentLength(PRInt32 *aContentLength);
551 nsresult SetContentLength(PRInt32 aContentLength);
552 nsresult Open(nsIInputStream **_retval);
553 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
554 nsresult GetContentDisposition(PRUint32 *aContentDisposition);
555 nsresult GetContentDispositionFilename(nsAString *aContentDispositionFilename);
556 nsresult GetContentDispositionHeader(nsACString *aContentDispositionHeader);
561 uuid(35412859-b9d9-423c-8866-2d4559fdd2be),
564 interface nsIHttpHeaderVisitor : nsISupports
566 nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
571 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
574 interface nsIHttpChannel : nsIChannel
576 nsresult GetRequestMethod(nsACString *aRequestMethod);
577 nsresult SetRequestMethod(const nsACString *aRequestMethod);
578 nsresult GetReferrer(nsIURI **aReferrer);
579 nsresult SetReferrer(nsIURI *aReferrer);
580 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
581 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, bool aMerge);
582 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
583 nsresult GetAllowPipelining(bool *aAllowPipelining);
584 nsresult SetAllowPipelining(bool aAllowPipelining);
585 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
586 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
587 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
588 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
589 nsresult GetRequestSucceeded(bool *aRequestSucceeded);
590 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
591 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, bool merge);
592 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
593 nsresult IsNoStoreResponse(bool *_retval);
594 nsresult IsNoCacheResponse(bool *_retval);
599 uuid(9363fd96-af59-47e8-bddf-1d5e91acd336),
602 interface nsIHttpChannelInternal : nsISupports
604 nsresult GetDocumentURI(nsIURI **aDocumentURI);
605 nsresult SetDocumentURI(nsIURI *aDocumentURI);
606 nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
607 nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
608 nsresult SetCookie(const char *aCookieHeader);
609 nsresult SetupFallbackChannel(const char *aFallbackKey);
610 nsresult GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie);
611 nsresult SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie);
612 nsresult GetCanceled(bool *aCanceled);
613 nsresult GetChannelIsForDownload(bool *aChannelIsForDownload);
614 nsresult SetChannelIsForDownload(bool aChannelIsForDownload);
615 nsresult GetLocalAddress(nsACString *aLocalAddress);
616 nsresult GetLocalPort(PRInt32 *aLocalPort);
617 nsresult GetRemoteAddress(nsACString *aRemoteAddress);
618 nsresult GetRemotePort(PRInt32 *aRemotePort);
619 nsresult SetCacheKeysRedirectChain(void /*nsTArray<nsCString>*/ *cacheKeys);
620 nsresult HTTPUpgrade(const nsACString *aProtocolName, nsIHttpUpgradeListener *aListener);
621 nsresult GetAllowSpdy(bool *aAllowSpdy);
622 nsresult SetAllowSpdy(bool aAllowSpdy);
627 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
630 interface nsIUploadChannel : nsISupports
632 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
633 PRInt32 aContentLength);
634 nsresult GetUploadStream(nsIInputStream **aUploadStream);
639 uuid(8d171460-a716-41f1-92be-8c659db39b45),
642 interface nsIAsyncVerifyRedirectCallback : nsISupports
644 nsresult OnRedirectVerifyCallback(nsresult result);
649 uuid(a430d870-df77-4502-9570-d46a8de33154),
652 interface nsIChannelEventSink : nsISupports
654 cpp_quote("#define REDIRECT_TEMPORARY 1")
655 cpp_quote("#define REDIRECT_PERMANENT 2")
656 cpp_quote("#define REDIRECT_INTERNAL 4")
658 nsresult AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, PRUint32 flags,
659 nsIAsyncVerifyRedirectCallback *callback);
664 uuid(a6cf906d-15b3-11d2-932e-00805f8add32),
667 interface nsIDOMLocation : nsISupports
669 nsresult GetHash(nsAString *aHash);
670 nsresult SetHash(const nsAString *aHash);
671 nsresult GetHost(nsAString *aHost);
672 nsresult SetHost(const nsAString *aHost);
673 nsresult GetHostname(nsAString *aHostname);
674 nsresult SetHostname(const nsAString *aHostname);
675 nsresult GetHref(nsAString *aHref);
676 nsresult SetHref(const nsAString *aHref);
677 nsresult GetPathname(nsAString *aPathname);
678 nsresult SetPathname(const nsAString *aPathname);
679 nsresult GetPort(nsAString *aPort);
680 nsresult SetPort(const nsAString *aPort);
681 nsresult GetProtocol(nsAString *aProtocol);
682 nsresult SetProtocol(const nsAString *aProtocol);
683 nsresult GetSearch(nsAString *aSearch);
684 nsresult SetSearch(const nsAString *aSearch);
685 nsresult Reload(bool forceget);
686 nsresult Replace(const nsAString *url);
687 nsresult Assign(const nsAString *url);
688 nsresult ToString(nsAString *_retval);
693 uuid(2938307a-9d70-4b63-8afc-0197e82318ad),
696 interface nsIDOMCSSRule : nsISupports
698 nsresult GetType(PRUint16 *aType);
699 nsresult GetCssText(nsAString *aCssText);
700 nsresult SetCssText(const nsAString *aCssText);
701 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
702 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
707 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
710 interface nsIDOMCSSStyleDeclaration : nsISupports
712 nsresult GetCssText(nsAString *aCssText);
713 nsresult SetCssText(const nsAString *aCssText);
714 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
715 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
716 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
717 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
718 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
719 const nsAString *priority);
720 nsresult GetLength(PRUint32 *aLength);
721 nsresult Item(PRUint32 index, nsAString *_retval);
722 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
727 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
730 interface nsIDOMCSSRuleList : nsISupports
732 nsresult GetLength(PRUint32 *aLength);
733 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
738 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
741 interface nsIDOMStyleSheet : nsISupports
743 nsresult GetType(nsAString *aType);
744 nsresult GetDisabled(bool *aDisabled);
745 nsresult SetDisabled(bool aDisabled);
746 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
747 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
748 nsresult GetHref(nsAString *aHref);
749 nsresult GetTitle(nsAString *aTitle);
750 nsresult GetMedia(nsIDOMMediaList **aMedia);
755 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
758 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
760 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
761 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
762 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
763 nsresult DeleteRule(PRUint32 index);
768 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
771 interface nsIDOMStyleSheetList : nsISupports
773 nsresult GetLength(PRUint32 *aLength);
774 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
779 uuid(496852ba-e48d-4fa5-982e-e0dc1b475bf1),
782 interface nsIDOMNodeList : nsISupports
784 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
785 nsresult GetLength(PRUint32 *aLength);
786 /* Followed by semi-internal API that we don't want to use */
791 uuid(a6cf907b-15b3-11d2-932e-00805f8add32),
794 interface nsIDOMNamedNodeMap : nsISupports
796 nsresult GetNamedItem(const nsAString *name, nsIDOMNode **_retval);
797 nsresult SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval);
798 nsresult RemoveNamedItem(const nsAString *name, nsIDOMNode **_retval);
799 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
800 nsresult GetLength(PRUint32 *aLength);
801 nsresult GetNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNode **_retval);
802 nsresult SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval);
803 nsresult RemoveNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNode **_retval);
808 uuid(5e9bcec9-5928-4f77-8a9c-424ef01c20e1),
811 interface nsIDOMNode : nsISupports
817 CDATA_SELECTION_NODE = 4,
818 ENTITY_REFERENCE_NODE = 5,
820 PROCESSING_INSTRUCTION_NODE = 7,
823 DOCUMENT_TYPE_NODE = 10,
824 DOCUMENT_FRAGMENT_NODE = 11,
829 DOCUMENT_POSITION_DISCONNECTED = 1,
830 DOCUMENT_POSITION_PRECEDING = 2,
831 DOCUMENT_POSITION_FOLLOWING = 4,
832 DOCUMENT_POSITION_CONTAINS = 8,
833 DOCUMENT_POSITION_CONTAINED_BY = 16,
834 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32
837 nsresult GetNodeName(nsAString *aNodeName);
838 nsresult GetNodeValue(nsAString *aNodeValue);
839 nsresult SetNodeValue(const nsAString *aNodeValue);
840 nsresult GetNodeType(PRUint16 *aNodeType);
841 nsresult GetParentNode(nsIDOMNode **aParentNode);
842 nsresult GetParentElement(nsIDOMElement **aParentElement);
843 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
844 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
845 nsresult GetLastChild(nsIDOMNode **aLastChild);
846 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
847 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
848 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
849 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
850 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
851 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
852 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
853 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
854 nsresult HasChildNodes(bool *_retval);
855 nsresult CloneNode(bool deep, PRUint8 _argc, nsIDOMNode **_retval);
856 nsresult Normalize();
857 nsresult IsSupported(const nsAString *feature, const nsAString *version, bool *_retval);
858 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
859 nsresult GetPrefix(nsAString *aPrefix);
860 nsresult GetLocalName(nsAString *aLocalName);
861 nsresult HasAttributes(bool *_retval);
862 nsresult GetDOMBaseURI(nsAString *aBaseURI);
863 nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
864 nsresult GetTextContent(nsAString *aTextContent);
865 nsresult SetTextContent(const nsAString *aTextContent);
866 nsresult LookupPrefix(const nsAString *namespaceURI, nsAString *_retval);
867 nsresult IsDefaultNamespace(const nsAString *namespaceURI, bool *_retval);
868 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString *_retval);
869 nsresult IsEqualNode(nsIDOMNode *arg, bool *_retval);
870 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
871 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
872 nsresult Contains(nsIDOMNode *aOther, bool *_retval);
874 nsresult GetMshtmlNode(nsISupports **aMshtmlNode);
875 nsresult SetMshtmlNode(nsISupports *aMshtmlNode);
880 uuid(03da4bc9-1b9a-41dc-a1a4-32414d48d704),
883 interface nsIDOMAttr : nsIDOMNode
885 nsresult GetName(nsAString *aName);
886 nsresult GetSpecified(bool *aSpecified);
887 nsresult GetValue(nsAString *aValue);
888 nsresult SetValue(const nsAString *aValue);
889 nsresult GetOwnerElement(nsIDOMElement **aOwnerElement);
890 nsresult GetIsId(bool *aIsId);
895 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
898 interface nsIDOMClientRect : nsISupports
900 nsresult GetLeft(float *aLeft);
901 nsresult GetTop(float *aTop);
902 nsresult GetRight(float *aRight);
903 nsresult GetBottom(float *aBottom);
904 nsresult GetWidth(float *aWidth);
905 nsresult GetHeight(float *aHeight);
910 uuid(69d44ce2-b544-49a8-bb5f-87804b971ee4),
913 interface nsIDOMElement : nsIDOMNode
915 nsresult GetTagName(nsAString *aTagName);
916 nsresult GetClassList(nsIDOMDOMTokenList **aClassList);
917 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
918 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName, nsAString *_retval);
919 nsresult SetAttribute(const nsAString *name, const nsAString *value);
920 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, const nsAString *value);
921 nsresult RemoveAttribute(const nsAString *name);
922 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
923 nsresult HasAttribute(const nsAString *name, bool *_retval);
924 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName, bool *_retval);
925 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
926 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
927 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
928 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMAttr **_retval);
929 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
930 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
931 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNodeList **_retval);
932 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
933 nsresult GetChildElements(nsIDOMNodeList **aChildren);
934 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
935 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
936 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
937 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
938 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
939 nsresult GetOnmouseenter(JSContext *cx, jsval *aOnmouseenter);
940 nsresult SetOnmouseenter(JSContext *cx, const jsval *aOnmouseenter);
941 nsresult GetOnmouseleave(JSContext *cx, jsval *aOnmouseleave);
942 nsresult SetOnmouseleave(JSContext *cx, const jsval *aOnmouseleave);
943 nsresult GetClientRects(nsIDOMClientRectList **_retval);
944 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
945 nsresult GetScrollTop(PRInt32 *aScrollTop);
946 nsresult SetScrollTop(PRInt32 aScrollTop);
947 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
948 nsresult SetScrollLeft(PRInt32 aScrollLeft);
949 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
950 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
951 nsresult GetClientTop(PRInt32 *aClientTop);
952 nsresult GetClientLeft(PRInt32 *aClientLeft);
953 nsresult GetClientWidth(PRInt32 *aClientWidth);
954 nsresult GetClientHeight(PRInt32 *aClientHeight);
955 nsresult GetScrollLeftMax(PRInt32 *aScrollLeftMax);
956 nsresult GetScrollTopMax(PRInt32 *aScrollTopMax);
957 nsresult MozMatchesSelector(const nsAString *selector, bool *_retval);
958 nsresult SetCapture(bool retargetToElement);
959 nsresult ReleaseCapture();
960 nsresult MozRequestFullScreen();
961 nsresult MozRequestPointerLock();
966 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
969 interface nsIDOMElementCSSInlineStyle : nsISupports
971 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
974 cpp_quote("#undef GetClassName")
978 uuid(9a677a5b-e6f7-4e2e-9ef9-22c2ac9967b3),
981 interface nsIDOMHTMLElement : nsIDOMElement
983 nsresult GetId(nsAString *aId);
984 nsresult SetId(const nsAString *aId);
985 nsresult GetTitle(nsAString *aTitle);
986 nsresult SetTitle(const nsAString *aTitle);
987 nsresult GetLang(nsAString *aLang);
988 nsresult SetLang(const nsAString *aLang);
989 nsresult GetDir(nsAString *aDir);
990 nsresult SetDir(const nsAString *aDir);
991 nsresult GetClassName(nsAString *aClassName);
992 nsresult SetClassName(const nsAString *aClassName);
993 nsresult GetDataset(nsIDOMDOMStringMap **aDataset);
994 nsresult GetItemScope(bool *aItemScope);
995 nsresult SetItemScope(bool aItemScope);
996 nsresult GetItemType(nsIVariant **aItemType);
997 nsresult SetItemType(nsIVariant *aItemType);
998 nsresult GetItemId(nsAString *aItemId);
999 nsresult SetItemId(const nsAString *aItemId);
1000 nsresult GetProperties(nsIDOMHTMLPropertiesCollection **aProperties);
1001 nsresult GetItemValue(nsIVariant **aItemValue);
1002 nsresult SetItemValue(nsIVariant *aItemValue);
1003 nsresult GetItemProp(nsIVariant **aItemProp);
1004 nsresult SetItemProp(nsIVariant *aItemProp);
1005 nsresult GetItemRef(nsIVariant **aItemRef);
1006 nsresult SetItemRef(nsIVariant *aItemRef);
1007 nsresult GetHidden(bool *aHidden);
1008 nsresult SetHidden(bool aHidden);
1010 nsresult GetTabIndex(PRInt32 *aTabIndex);
1011 nsresult SetTabIndex(PRInt32 aTabIndex);
1014 nsresult GetAccessKey(nsAString *aAccessKey);
1015 nsresult SetAccessKey(const nsAString *aAccessKey);
1016 nsresult GetAccessKeyLabel(nsAString *aAccessKeyLabel);
1017 nsresult GetDraggable(bool *aDraggable);
1018 nsresult SetDraggable(bool aDraggable);
1019 nsresult GetContentEditable(nsAString *aContentEditable);
1020 nsresult SetContentEditable(const nsAString *aContentEditable);
1021 nsresult GetIsContentEditable(bool *aIsContentEditable);
1022 nsresult GetContextMenu(nsIDOMHTMLMenuElement **aContextMenu);
1023 nsresult GetSpellcheck(bool *aSpellcheck);
1024 nsresult SetSpellcheck(bool aSpellcheck);
1025 nsresult GetInnerHTML(nsAString *aInnerHTML);
1026 nsresult SetInnerHTML(const nsAString *aInnerHTML);
1027 nsresult GetOuterHTML(nsAString *aInnerHTML);
1028 nsresult SetOuterHTML(const nsAString *aInnerHTML);
1029 nsresult InsertAdjacentHTML(const nsAString *position, const nsAString *text);
1030 nsresult ScrollIntoView(bool top, PRUint8 _argc);
1031 nsresult GetOffsetParent(nsIDOMElement * *aOffsetParent);
1032 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
1033 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
1034 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
1035 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
1040 uuid(8b38545f-7fa5-47d5-a902-c8ea8e78fb0d),
1043 interface nsIDOMHTMLHeadElement : nsIDOMHTMLElement
1050 uuid(b7ccd7b3-86aa-4322-a50c-b972643bb662),
1053 interface nsIDOMHTMLCollection : nsISupports
1055 nsresult GetLength(PRUint32 *aLength);
1056 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1057 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1058 /* Followed by semi-internal API that we don't want to use */
1063 uuid(cb75c251-afc7-444f-b2d6-b9635555f3ed),
1066 interface nsIDOMCharacterData : nsIDOMNode
1068 nsresult GetData(nsAString *aData);
1069 nsresult SetData(const nsAString *aData);
1070 nsresult GetLength(PRUint32 *aLength);
1071 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
1072 nsresult AppendData(const nsAString *arg);
1073 nsresult InsertData(PRUint32 offset, const nsAString *arg);
1074 nsresult DeleteData(PRUint32 offset, PRUint32 count);
1075 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
1080 uuid(437ed60c-febd-4bd0-892f-cf358adc3c96),
1083 interface nsIDOMText : nsIDOMCharacterData
1085 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
1086 nsresult GetWholeText(nsAString *aWholeText);
1091 uuid(cea49a35-dac9-4c4d-9830-4660abb3b6bc),
1094 interface nsIDOMComment : nsIDOMCharacterData
1100 uuid(4a15eb0c-d5bc-4902-9d50-21b12cab47e7),
1103 interface nsIDOMDocumentFragment : nsIDOMNode
1109 uuid(fdb92f4f-c6b4-4509-a29d-a309981e28ac),
1112 interface nsIDOMDocument : nsIDOMNode
1114 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
1115 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
1116 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
1117 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
1118 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
1119 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
1120 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
1121 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
1122 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data, nsIDOMProcessingInstruction **_retval);
1123 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
1124 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
1125 nsresult ImportNode(nsIDOMNode *importedNode, bool deep, PRUint8 _argc, nsIDOMNode **_retval);
1126 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMElement **_retval);
1127 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMAttr **_retval);
1128 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNodeList **_retval);
1129 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
1130 nsresult GetInputEncoding(nsAString *aInputEncoding);
1131 nsresult GetDocumentURI(nsAString *aDocumentURI);
1132 nsresult AdoptNode(nsIDOMNode *source, nsIDOMNode **_retval);
1133 nsresult CreateRange(nsIDOMRange **_retval);
1134 nsresult CreateNodeIterator(nsIDOMNode *root, PRUint32 whatToShow, nsIDOMNodeFilter *filter, PRUint8 _argc,
1135 nsIDOMNodeIterator **_retval);
1136 nsresult CreateTreeWalker(nsIDOMNode *root, PRUint32 whatToShow, nsIDOMNodeFilter *filter, PRUint8 _argc,
1137 nsIDOMTreeWalker **_retval);
1138 cpp_quote("#undef CreateEvent")
1139 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1140 nsresult GetDefaultView(nsIDOMWindow **aDefaultView);
1141 nsresult GetCharacterSet(nsAString *aCharacterSet);
1142 nsresult GetDir(nsAString *aDir);
1143 nsresult SetDir(const nsAString *aDir);
1144 nsresult GetLocation(nsIDOMLocation **aLocation);
1145 nsresult GetTitle(nsAString *aTitle);
1146 nsresult SetTitle(const nsAString *aTitle);
1147 nsresult GetReadyState(nsAString *aReadyState);
1148 nsresult GetLastModified(nsAString *aLastModified);
1149 nsresult GetReferrer(nsAString *aReferrer);
1150 nsresult HasFocus(bool *_retval);
1151 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
1152 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
1153 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1154 nsresult GetPreferredStyleSheetSet(nsAString *aPreferredStyleSheetSet);
1155 nsresult GetSelectedStyleSheetSet(nsAString *aSelectedStyleSheetSet);
1156 nsresult SetSelectedStyleSheetSet(const nsAString *aSelectedStyleSheetSet);
1157 nsresult GetLastStyleSheetSet(nsAString *aLastStyleSheetSet);
1158 nsresult GetStyleSheetSets(nsIDOMDOMStringList **aStyleSheetSets);
1159 nsresult EnableStyleSheetsForSet(const nsAString *name);
1160 nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
1161 nsresult GetContentType(nsAString *aContentType);
1162 nsresult GetMozSyntheticDocument(bool *aMozSyntheticDocument);
1163 nsresult GetCurrentScript(nsIDOMElement **aCurrentScript);
1164 nsresult ReleaseCapture();
1165 nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
1166 nsresult GetMozFullScreenElement(nsIDOMElement **aMozFullScreenElement);
1167 nsresult MozCancelFullScreen();
1168 nsresult GetMozFullScreen(bool *aMozFullScreen);
1169 nsresult GetMozFullScreenEnabled(bool *aMozFullScreenEnabled);
1170 nsresult GetMozPointerLockElement(nsIDOMElement **aMozPointerLockElement);
1171 nsresult MozExitPointerLock();
1172 nsresult GetOnreadystatechange(JSContext* cx, jsval aOnreadystatechange);
1173 nsresult SetOnreadystatechange(JSContext* cx, const jsval *aOnreadystatechange);
1174 nsresult GetOnmouseenter(JSContext* cx, jsval *aOnmouseenter);
1175 nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter);
1176 nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave) = 0;
1177 nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave);
1178 nsresult GetMozHidden(bool *aMozHidden);
1179 nsresult GetMozVisibilityState(nsAString *aMozVisibilityState);
1184 uuid(ecae54c6-2ab9-4167-b0ef-61960aadbb68),
1187 interface nsIDOMHTMLDocument : nsIDOMDocument
1189 nsresult GetURL(nsAString *aURL);
1190 nsresult GetDomain(nsAString *aDomain);
1191 nsresult SetDomain(const nsAString *aDomain);
1192 nsresult GetCookie(nsAString *aCookie);
1193 nsresult SetCookie(const nsAString *aCookie);
1194 nsresult GetCompatMode(nsAString *aCompatMode);
1195 nsresult GetHead(nsIDOMHTMLHeadElement **aHead);
1196 nsresult GetBody(nsIDOMHTMLElement **aBody);
1197 nsresult SetBody(nsIDOMHTMLElement *aBody);
1198 nsresult GetImages(nsIDOMHTMLCollection **aImages);
1199 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1200 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1201 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
1202 nsresult GetForms(nsIDOMHTMLCollection **aForms);
1203 nsresult GetScripts(nsIDOMHTMLCollection **aScripts);
1204 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
1205 nsresult GetItems(const nsAString *types, nsIDOMNodeList **_retval);
1206 nsresult Open(const nsAString *aContentTypeOrUrl, const nsAString *aReplaceOrName, const nsAString *aFeatures,
1207 JSContext *cx, PRUint8 _argc, nsISupports **_retval);
1209 nsresult Write(const nsAString *text, JSContext *cx);
1210 nsresult Writeln(const nsAString *text, JSContext *cx);
1211 nsresult GetDesignMode(nsAString *aDesignMode);
1212 nsresult SetDesignMode(const nsAString *aDesignMode);
1213 nsresult ExecCommand(const nsAString *commandID, bool doShowUI, const nsAString *value, bool *_retval);
1214 nsresult QueryCommandEnabled(const nsAString *commandID, bool *_retval);
1215 nsresult QueryCommandIndeterm(const nsAString *commandID, bool *_retval);
1216 nsresult QueryCommandState(const nsAString *commandID, bool *_retval);
1217 nsresult QueryCommandSupported(const nsAString *commandID, bool *_retval);
1218 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1219 nsresult GetFgColor(nsAString *aFgColor);
1220 nsresult SetFgColor(const nsAString *aFgColor);
1221 nsresult GetBgColor(nsAString *aBgColor);
1222 nsresult SetBgColor(const nsAString *aBgColor);
1223 nsresult GetLinkColor(nsAString *aLinkColor);
1224 nsresult SetLinkColor(const nsAString *aLinkColor);
1225 nsresult GetVlinkColor(nsAString *aVlinkColor);
1226 nsresult SetVlinkColor(const nsAString *aVlinkColor);
1227 nsresult GetAlinkColor(nsAString *aAlinkColor);
1228 nsresult SetAlinkColor(const nsAString *aAlinkColor);
1229 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
1230 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
1232 nsresult GetSelection(nsISelection **_retval);
1233 nsresult CaptureEvents(PRInt32 eventFlags);
1234 nsresult ReleaseEvents(PRInt32 eventFlags);
1235 nsresult RouteEvent(nsIDOMEvent *evt);
1240 uuid(a059eea8-fece-4c14-93d3-7f50a944ae43),
1243 interface nsIDOMRange : nsISupports
1252 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1253 nsresult GetStartOffset(PRInt32 *aStartOffset);
1254 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1255 nsresult GetEndOffset(PRInt32 *aEndOffset);
1256 nsresult GetCollapsed(bool *aCollapsed);
1257 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1258 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1259 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1260 nsresult SetStartBefore(nsIDOMNode *refNode);
1261 nsresult SetStartAfter(nsIDOMNode *refNode);
1262 nsresult SetEndBefore(nsIDOMNode *refNode);
1263 nsresult SetEndAfter(nsIDOMNode *refNode);
1264 nsresult Collapse(bool toStart);
1265 nsresult SelectNode(nsIDOMNode *refNode);
1266 nsresult SelectNodeContents(nsIDOMNode *refNode);
1267 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1268 nsresult DeleteContents();
1269 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1270 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1271 nsresult InsertNode(nsIDOMNode *newNode);
1272 nsresult SurroundContents(nsIDOMNode *newParent);
1273 nsresult CloneRange(nsIDOMRange **_retval);
1274 nsresult ToString(nsAString *_retval);
1276 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1277 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] bool *_retval);
1278 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1279 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1280 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1285 uuid(12cf5a4d-fffb-4f2f-9cec-c65195661d76),
1288 interface nsISelection : nsISupports
1290 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1291 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1292 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1293 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1294 nsresult GetIsCollapsed(bool *aIsCollapsed);
1295 bool /* don't use */ Collapsed();
1296 nsresult GetRangeCount(PRInt32 *aRangeCount);
1297 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1298 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1299 nsresult CollapseNative(nsINode *parentNode, PRInt32 offset);
1300 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1301 nsresult ExtendNative(nsINode *parentNode, PRInt32 offset);
1302 nsresult CollapseToStart();
1303 nsresult CollapseToEnd();
1304 nsresult ContainsNode(nsIDOMNode *node, bool entirelyContained, bool *_retval);
1305 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1306 nsresult AddRange(nsIDOMRange *range);
1307 nsresult RemoveRange(nsIDOMRange *range);
1308 nsresult RemoveAllRanges();
1309 nsresult DeleteFromDocument();
1310 nsresult SelectionLanguageChange(bool langRTL);
1311 nsresult ToString(nsAString *_retval);
1312 nsresult Modify(const nsAString *alter, const nsAString *direction, const nsAString *granularity);
1317 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1320 interface nsIDOMWindowCollection : nsISupports
1322 nsresult GetLength(PRUint32 *aLength);
1323 nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1324 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1329 uuid(a1af6cd9-c6e7-4037-99f8-dbca1b03e345),
1332 interface nsIDOMWindow : nsISupports
1334 nsresult GetWindow(nsIDOMWindow **aWindow);
1335 nsresult GetSelf(nsIDOMWindow **aSelf);
1336 nsresult GetDocument(nsIDOMDocument **aDocument);
1337 nsresult GetName(nsAString *aName);
1338 nsresult SetName(const nsAString *aName);
1339 nsresult GetLocation(nsIDOMLocation **aLocation);
1340 nsresult GetHistory(nsIDOMHistory **aHistory);
1341 nsresult GetLocationbar(nsIDOMBarProp **aLocationbar);
1342 nsresult GetMenubar(nsIDOMBarProp **aMenubar);
1343 nsresult GetPersonalbar(nsIDOMBarProp **aPersonalbar);
1344 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1345 nsresult GetStatusbar(nsIDOMBarProp **aStatusbar);
1346 nsresult GetToolbar(nsIDOMBarProp **aToolbar);
1347 nsresult GetStatus(nsAString *aStatus);
1348 nsresult SetStatus(const nsAString *aStatus);
1353 nsresult GetLength(PRUint32 *aLength);
1354 nsresult GetScriptableTop(nsIDOMWindow **aTop);
1355 nsresult GetRealTop(nsIDOMWindow **aTop);
1356 nsresult GetScriptableParent(nsIDOMWindow **aParent);
1357 nsresult GetRealParent(nsIDOMWindow **aParent);
1358 nsresult GetOpener(nsIDOMWindow **aOpener);
1359 nsresult SetOpener(nsIDOMWindow *aOpener);
1360 nsresult GetScriptableFrameElement(nsIDOMElement **aFrameElement);
1361 nsresult GetRealFrameElement(nsIDOMElement **aFrameElement);
1362 nsresult GetNavigator(nsIDOMNavigator **aNavigator);
1363 nsresult GetApplicationCache(nsIDOMOfflineResourceList **aApplicationCache);
1364 nsresult Alert(const nsAString *text);
1365 nsresult Confirm(const nsAString *text, bool *_retval);
1366 nsresult Prompt(const nsAString *aMessage, const nsAString *aInitial, nsAString *_retval);
1368 nsresult ShowModalDialog(const nsAString *aURI, nsIVariant *aArgs, const nsAString *aOptions, nsIVariant **_retval);
1369 nsresult PostMessageMoz(const long /*jsval*/ *message, const nsAString *targetOrigin, JSContext *cx);
1370 nsresult Atob(const nsAString *aAsciiString, nsAString *_retval);
1371 nsresult Btoa(const nsAString *aBase64Data, nsAString *_retval);
1372 nsresult GetSessionStorage(nsIDOMStorage **aSessionStorage);
1373 nsresult GetLocalStorage(nsIDOMStorage **aLocalStorage);
1374 nsresult GetSelection(nsISelection **_retval);
1375 nsresult MatchMedia(const nsAString *media_query_list, nsIDOMMediaQueryList **_retval);
1376 nsresult GetScreen(nsIDOMScreen **aScreen);
1377 nsresult GetInnerWidth(PRInt32 *aInnerWidth);
1378 nsresult SetInnerWidth(PRInt32 aInnerWidth);
1379 nsresult GetInnerHeight(PRInt32 *aInnerHeight);
1380 nsresult SetInnerHeight(PRInt32 aInnerHeight);
1381 nsresult GetScrollX(PRInt32 *aScrollX);
1382 nsresult GetPageXOffset(PRInt32 *aPageXOffset);
1383 nsresult GetScrollY(PRInt32 *aScrollY);
1384 nsresult GetPageYOffset(PRInt32 *aPageYOffset);
1385 nsresult Scroll(PRInt32 xScroll, PRInt32 yScroll);
1386 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1387 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1388 nsresult GetScreenX(PRInt32 *aScreenX);
1389 nsresult SetScreenX(PRInt32 aScreenX);
1390 nsresult GetScreenY(PRInt32 *aScreenY);
1391 nsresult SetScreenY(PRInt32 aScreenY);
1392 nsresult GetOuterWidth(PRInt32 *aOuterWidth);
1393 nsresult SetOuterWidth(PRInt32 aOuterWidth);
1394 nsresult GetOuterHeight(PRInt32 *aOuterHeight);
1395 nsresult SetOuterHeight(PRInt32 aOuterHeight);
1396 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
1397 nsresult GetWindowRoot(nsIDOMEventTarget **aWindowRoot);
1398 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1399 nsresult GetTextZoom(float *aTextZoom);
1400 nsresult SetTextZoom(float aTextZoom);
1401 nsresult ScrollByLines(PRInt32 numLines);
1402 nsresult ScrollByPages(PRInt32 numPages);
1403 nsresult SizeToContent();
1404 nsresult GetContent(nsIDOMWindow **aContent);
1405 nsresult GetPrompter(nsIPrompt **aPrompter);
1406 nsresult GetClosed(bool *aClosed);
1407 nsresult GetCrypto(nsIDOMCrypto **aCrypto);
1408 nsresult GetPkcs11(nsIDOMPkcs11 **aPkcs11);
1409 nsresult GetControllers(nsIControllers **aControllers);
1410 nsresult GetDefaultStatus(nsAString *aDefaultStatus);
1411 nsresult SetDefaultStatus(const nsAString *aDefaultStatus);
1412 nsresult GetMozInnerScreenX(float *aMozInnerScreenX);
1413 nsresult GetMozInnerScreenY(float *aMozInnerScreenY);
1414 nsresult GetScrollMaxX(PRInt32 *aScrollMaxX);
1415 nsresult GetScrollMaxY(PRInt32 *aScrollMaxY);
1416 nsresult GetFullScreen(bool *aFullScreen);
1417 nsresult SetFullScreen(bool aFullScreen);
1421 nsresult MoveTo(PRInt32 xPos, PRInt32 yPos);
1422 nsresult MoveBy(PRInt32 xDif, PRInt32 yDif);
1423 nsresult ResizeTo(PRInt32 width, PRInt32 height);
1424 nsresult ResizeBy(PRInt32 widthDif, PRInt32 heightDif);
1425 nsresult Open(const nsAString *url, const nsAString *name, const nsAString *options, nsIDOMWindow **_retval);
1426 nsresult OpenDialog(const nsAString *url, const nsAString *name, const nsAString *options, nsISupports *aExtraArgument,
1427 nsIDOMWindow **_retval);
1428 nsresult UpdateCommands(const nsAString *action);
1429 nsresult Find(const nsAString *str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord,
1430 bool searchInFrames, bool showDialog, bool *_retval);
1431 nsresult GetMozPaintCount(PRUint64 *aMozPaintCount);
1432 nsresult MozRequestAnimationFrame(nsIFrameRequestCallback *aCallback, PRInt32 *_retval);
1433 nsresult MozCancelAnimationFrame(PRInt32 aHandle);
1434 nsresult MozCancelRequestAnimationFrame(PRInt32 aHandle);
1435 nsresult GetMozAnimationStartTime(PRInt64 *aMozAnimationStartTime);
1436 nsresult GetURL(nsIDOMMozURLProperty **aURL);
1437 nsresult GetOnafterprint(JSContext *cx, jsval *aOnafterprint);
1438 nsresult SetOnafterprint(JSContext *cx, const jsval *aOnafterprint);
1439 nsresult GetOnbeforeprint(JSContext *cx, jsval *aOnbeforeprint);
1440 nsresult SetOnbeforeprint(JSContext *cx, const jsval *aOnbeforeprint);
1441 nsresult GetOnbeforeunload(JSContext *cx, jsval *aOnbeforeunload);
1442 nsresult SetOnbeforeunload(JSContext *cx, const jsval *aOnbeforeunload);
1443 nsresult GetOnhashchange(JSContext *cx, jsval *aOnhashchange);
1444 nsresult SetOnhashchange(JSContext *cx, const jsval *aOnhashchange);
1445 nsresult GetOnmessage(JSContext *cx, jsval *aOnmessage);
1446 nsresult SetOnmessage(JSContext *cx, const jsval *aOnmessage);
1447 nsresult GetOnoffline(JSContext *cx, jsval *aOnoffline);
1448 nsresult SetOnoffline(JSContext *cx, const jsval *aOnoffline);
1449 nsresult GetOnonline(JSContext *cx, jsval *aOnonline);
1450 nsresult SetOnonline(JSContext *cx, const jsval *aOnonline);
1451 nsresult GetOnpopstate(JSContext *cx, jsval *aOnpopstate);
1452 nsresult SetOnpopstate(JSContext *cx, const jsval *aOnpopstate);
1453 nsresult GetOnpagehide(JSContext *cx, jsval *aOnpagehide);
1454 nsresult SetOnpagehide(JSContext *cx, const jsval *aOnpagehide);
1455 nsresult GetOnpageshow(JSContext *cx, jsval *aOnpageshow);
1456 nsresult SetOnpageshow(JSContext *cx, const jsval *aOnpageshow);
1457 nsresult GetOnresize(JSContext *cx, jsval *aOnresize);
1458 nsresult SetOnresize(JSContext *cx, const jsval *aOnresize);
1459 nsresult GetOnunload(JSContext *cx, jsval *aOnunload);
1460 nsresult SetOnunload(JSContext *cx, const jsval *aOnunload);
1461 nsresult GetOndevicemotion(JSContext *cx, jsval *aOndevicemotion);
1462 nsresult SetOndevicemotion(JSContext *cx, const jsval *aOndevicemotion);
1463 nsresult GetOndeviceorientation(JSContext *cx, jsval *aOndeviceorientation);
1464 nsresult SetOndeviceorientation(JSContext *cx, const jsval *aOndeviceorientation);
1465 nsresult GetOndeviceproximity(JSContext* cx, jsval *aOndeviceproximity);
1466 nsresult SetOndeviceproximity(JSContext* cx, const jsval *aOndeviceproximity);
1467 nsresult GetOnuserproximity(JSContext* cx, jsval *aOndeviceproximity);
1468 nsresult SetOnuserproximity(JSContext* cx, const jsval *aOndeviceproximity);
1469 nsresult GetOndevicelight(JSContext* cx, jsval *aOndevicelight);
1470 nsresult SetOndevicelight(JSContext* cx, const jsval *aOndevicelight);
1471 nsresult GetOnmouseenter(JSContext* cx, jsval *aOnmouseenter);
1472 nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter);
1473 nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave) = 0;
1474 nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave);
1479 uuid(d8f00c8b-d317-4df2-a9bf-4a1e6f19f945),
1482 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1484 nsresult GetALink(nsAString *aALink);
1485 nsresult SetALink(const nsAString *aALink);
1486 nsresult GetBackground(nsAString *aBackground);
1487 nsresult SetBackground(const nsAString *aBackground);
1488 nsresult GetBgColor(nsAString *aBgColor);
1489 nsresult SetBgColor(const nsAString *aBgColor);
1490 nsresult GetLink(nsAString *aLink);
1491 nsresult SetLink(const nsAString *aLink);
1492 nsresult GetText(nsAString *aText);
1493 nsresult SetText(const nsAString *aText);
1494 nsresult GetVLink(nsAString *aVLink);
1495 nsresult SetVLink(const nsAString *aVLink);
1496 nsresult GetOnafterprint(JSContext *cx, jsval *aOnafterprint);
1497 nsresult SetOnafterprint(JSContext *cx, const jsval *aOnafterprint);
1498 nsresult GetOnbeforeprint(JSContext *cx, jsval *aOnbeforeprint);
1499 nsresult SetOnbeforeprint(JSContext *cx, const jsval *aOnbeforeprint);
1500 nsresult GetOnbeforeunload(JSContext *cx, jsval *aOnbeforeunload);
1501 nsresult SetOnbeforeunload(JSContext *cx, const jsval *aOnbeforeunload);
1502 nsresult GetOnhashchange(JSContext *cx, jsval *aOnhashchange);
1503 nsresult SetOnhashchange(JSContext *cx, const jsval *aOnhashchange);
1504 nsresult GetOnmessage(JSContext *cx, jsval *aOnmessage);
1505 nsresult SetOnmessage(JSContext *cx, const jsval *aOnmessage);
1506 nsresult GetOnoffline(JSContext *cx, jsval *aOnoffline);
1507 nsresult SetOnoffline(JSContext *cx, const jsval *aOnoffline);
1508 nsresult GetOnonline(JSContext *cx, jsval *aOnonline);
1509 nsresult SetOnonline(JSContext *cx, const jsval *aOnonline);
1510 nsresult GetOnpagehide(JSContext *cx, jsval *aOnpagehide);
1511 nsresult SetOnpagehide(JSContext *cx, const jsval *aOnpagehide);
1512 nsresult GetOnpageshow(JSContext *cx, jsval *aOnpageshow);
1513 nsresult SetOnpageshow(JSContext *cx, const jsval *aOnpageshow);
1514 nsresult GetOnpopstate(JSContext *cx, jsval *aOnpopstate);
1515 nsresult SetOnpopstate(JSContext *cx, const jsval *aOnpopstate);
1516 nsresult GetOnresize(JSContext *cx, jsval *aOnresize);
1517 nsresult SetOnresize(JSContext *cx, const jsval *aOnresize);
1518 nsresult GetOnunload(JSContext *cx, jsval *aOnunload);
1519 nsresult SetOnunload(JSContext *cx, const jsval *aOnunload);
1524 uuid(59c0dc07-d784-410b-8b5e-c26baf7cb8a6),
1527 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1529 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1530 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1531 nsresult GetAction(nsAString *aAction);
1532 nsresult SetAction(const nsAString *aAction);
1533 nsresult GetAutocomplete(nsAString *aAutocomplete);
1534 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1535 nsresult GetEnctype(nsAString *aEnctype);
1536 nsresult SetEnctype(const nsAString *aEnctype);
1537 nsresult GetEncoding(nsAString *aEncoding);
1538 nsresult SetEncoding(const nsAString *aEncoding);
1539 nsresult GetMethod(nsAString *aMethod);
1540 nsresult SetMethod(const nsAString *aMethod);
1541 nsresult GetName(nsAString *aName);
1542 nsresult SetName(const nsAString *aName);
1543 nsresult GetNoValidate(bool *aNoValidate);
1544 nsresult SetNoValidate(bool aNoValidate);
1545 nsresult GetTarget(nsAString *aTarget);
1546 nsresult SetTarget(const nsAString *aTarget);
1547 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1548 nsresult GetLength(PRInt32 *aLength);
1551 nsresult CheckValidity(bool *_retval);
1556 uuid(c12471c8-155f-4368-9e8b-13a231e85f3b),
1559 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1561 nsresult GetAccept(nsAString *aAccept);
1562 nsresult SetAccept(const nsAString *aAccept);
1563 nsresult GetAlt(nsAString *aAlt);
1564 nsresult SetAlt(const nsAString *aAlt);
1565 nsresult GetAutocomplete(nsAString *aAutocomplete);
1566 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1567 nsresult GetAutofocus(bool *aAutofocus);
1568 nsresult SetAutofocus(bool aAutofocus);
1569 nsresult GetDefaultChecked(bool *aDefaultChecked);
1570 nsresult SetDefaultChecked(bool aDefaultChecked);
1571 nsresult GetChecked(bool *aChecked);
1572 nsresult SetChecked(bool aChecked);
1573 nsresult GetDisabled(bool *aDisabled);
1574 nsresult SetDisabled(bool aDisabled);
1575 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1576 nsresult GetFormAction(nsAString *aFormAction);
1577 nsresult SetFormAction(const nsAString *aFormAction);
1578 nsresult GetFormEnctype(nsAString *aFormEnctype);
1579 nsresult SetFormEnctype(const nsAString *aFormEnctype);
1580 nsresult GetFormMethod(nsAString *aFormMethod);
1581 nsresult SetFormMethod(const nsAString *aFormMethod);
1582 nsresult GetFormNoValidate(bool *aFormNoValidate);
1583 nsresult SetFormNoValidate(bool aFormNoValidate);
1584 nsresult GetFormTarget(nsAString *aFormTarget);
1585 nsresult SetFormTarget(const nsAString *aFormTarget);
1586 nsresult GetFiles(nsIDOMFileList **aFiles);
1587 nsresult GetHeight(PRUint32 *aHeight);
1588 nsresult SetHeight(PRUint32 aHeight);
1589 nsresult GetIndeterminate(bool *aIndeterminate);
1590 nsresult SetIndeterminate(bool aIndeterminate);
1591 nsresult GetList(nsIDOMHTMLElement **aList);
1592 nsresult GetMax(nsAString *aMax);
1593 nsresult SetMax(const nsAString *aMax);
1594 nsresult GetMaxLength(PRInt32 *aMaxLength);
1595 nsresult SetMaxLength(PRInt32 aMaxLength);
1596 nsresult GetMin(nsAString *aMin);
1597 nsresult SetMin(const nsAString *aMin);
1598 nsresult GetMultiple(bool *aMultiple);
1599 nsresult SetMultiple(bool aMultiple);
1600 nsresult GetName(nsAString *aName);
1601 nsresult SetName(const nsAString *aName);
1602 nsresult GetPattern(nsAString *aPattern);
1603 nsresult SetPattern(const nsAString *aPattern);
1604 nsresult GetPlaceholder(nsAString *aPlaceholder);
1605 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1606 nsresult GetReadOnly(bool *aReadOnly);
1607 nsresult SetReadOnly(bool aReadOnly);
1608 nsresult GetRequired(bool *aRequired);
1609 nsresult SetRequired(bool aRequired);
1610 nsresult GetStep(nsAString *aStep);
1611 nsresult SetStep(const nsAString *aStep);
1612 nsresult GetAlign(nsAString *aAlign);
1613 nsresult SetAlign(const nsAString *aAlign);
1614 nsresult GetSize(PRUint32 *aSize);
1615 nsresult SetSize(PRUint32 aSize);
1616 nsresult GetWidth(PRUint32 *aWidth);
1617 nsresult SetWidth(PRUint32 aWidth);
1618 nsresult GetSrc(nsAString *aSrc);
1619 nsresult SetSrc(const nsAString *aSrc);
1620 nsresult GetType(nsAString *aType);
1621 nsresult SetType(const nsAString *aType);
1622 nsresult GetDefaultValue(nsAString *aDefaultValue);
1623 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1624 nsresult GetValue(nsAString *aValue);
1625 nsresult SetValue(const nsAString *aValue);
1626 nsresult GetValueAsNumber(double *aValueAsNumber);
1627 nsresult SetValueAsNumber(double aValueAsNumber);
1628 nsresult StepDown(PRInt32 n, PRUint8 _argc);
1629 nsresult StepUp(PRInt32 n, PRUint8 _argc);
1630 nsresult GetWillValidate(bool *aWillValidate);
1631 nsresult GetValidity(nsIDOMValidityState **aValidity);
1632 nsresult GetValidationMessage(nsAString *aValidationMessage);
1633 nsresult CheckValidity(bool *_retval);
1634 nsresult SetCustomValidity(const nsAString *error);
1636 nsresult GetSelectionStart(PRInt32 *aSelectionStart);
1637 nsresult SetSelectionStart(PRInt32 aSelectionStart);
1638 nsresult GetSelectionEnd(PRInt32 *aSelectionEnd);
1639 nsresult SetSelectionEnd(PRInt32 aSelectionEnd);
1640 nsresult SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd, const nsAString *direction);
1641 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1642 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1643 nsresult GetUseMap(nsAString *aUseMap);
1644 nsresult SetUseMap(const nsAString *aUseMap);
1645 nsresult GetControllers(nsIControllers **aControllers);
1646 nsresult GetTextLength(PRInt32 *aTextLength);
1647 nsresult MozGetFileNameArray(PRUint32 *aLength, PRUnichar ***aFileNames);
1648 nsresult MozSetFileNameArray(const PRUnichar **aFileNames, PRUint32 aLength);
1649 nsresult MozIsTextField(bool aExcludePassword, bool *_retval);
1654 uuid(68a5d794-39bf-4b00-aefe-754b9e8f7ec6),
1657 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1659 nsresult GetDisabled(bool *aDisabled);
1660 nsresult SetDisabled(bool aDisabled);
1661 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1662 nsresult GetLabel(nsAString *aLabel);
1663 nsresult SetLabel(const nsAString *aLabel);
1664 nsresult GetDefaultSelected(bool *aDefaultSelected);
1665 nsresult SetDefaultSelected(bool aDefaultSelected);
1666 nsresult GetSelected(bool *aSelected);
1667 nsresult SetSelected(bool aSelected);
1668 nsresult GetValue(nsAString *aValue);
1669 nsresult SetValue(const nsAString *aValue);
1670 nsresult GetText(nsAString *aText);
1671 nsresult SetText(const nsAString *aText);
1672 nsresult GetIndex(PRInt32 *aIndex);
1677 uuid(429b041b-06df-486c-9a3a-a1d901cc76a2),
1680 interface nsIDOMHTMLOptionsCollection : nsISupports
1682 typedef int nsWrapperCache;
1684 nsresult GetLength(PRUint32 *aLength);
1685 nsresult SetLength(PRUint32 aLength);
1686 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1687 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1688 nsISupports* __cdecl GetNamedItem(const nsAString *name, nsWrapperCache **cache);
1689 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1690 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1691 nsresult SetOption(PRUint32 index, nsIDOMHTMLOptionElement *option);
1692 nsresult GetSelect(nsIDOMHTMLSelectElement **aSelect);
1693 nsresult Add(nsIDOMHTMLOptionElement *option, nsIVariant *before);
1694 nsresult Remove(PRInt32 index);
1699 uuid(e85194cf-56e6-44a6-92d9-0096c9d2536e),
1702 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1704 nsresult GetAutofocus(bool *aAutofocus);
1705 nsresult SetAutofocus(bool aAutofocus);
1706 nsresult GetDisabled(bool *aDisabled);
1707 nsresult SetDisabled(bool aDisabled);
1708 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1709 nsresult GetMultiple(bool *aMultiple);
1710 nsresult SetMultiple(bool aMultiple);
1711 nsresult GetName(nsAString *aName);
1712 nsresult SetName(const nsAString *aName);
1713 nsresult GetSize(PRUint32 *aSize);
1714 nsresult SetSize(PRUint32 aSize);
1715 nsresult GetType(nsAString *aType);
1716 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1717 nsresult GetLength(PRUint32 *aLength);
1718 nsresult SetLength(PRUint32 aLength);
1719 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1720 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1721 nsresult Add(nsIDOMHTMLElement *element, nsIVariant *before);
1722 nsresult Remove(PRInt32 index);
1723 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1724 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1725 nsresult GetValue(nsAString *aValue);
1726 nsresult SetValue(const nsAString *aValue);
1727 nsresult GetWillValidate(bool *aWillValidate);
1728 nsresult GetValidity(nsIDOMValidityState **aValidity);
1729 nsresult GetValidationMessage(nsAString *aValidationMessage);
1730 nsresult CheckValidity(bool *_retval);
1731 nsresult SetCustomValidity(const nsAString *error);
1732 nsresult GetRequired(bool *aRequired);
1733 nsresult SetRequired(bool aRequired);
1738 uuid(2a395065-2d92-48c1-ac00-643de9ca681b),
1741 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1743 nsresult GetAutofocus(bool *aAutofocus);
1744 nsresult SetAutofocus(bool aAutofocus);
1745 nsresult GetCols(PRUint32 *aCols);
1746 nsresult SetCols(PRUint32 aCols);
1747 nsresult GetDisabled(bool *aDisabled);
1748 nsresult SetDisabled(bool aDisabled);
1749 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1750 nsresult GetMaxLength(PRInt32 *aMaxLength);
1751 nsresult SetMaxLength(PRInt32 aMaxLength);
1752 nsresult GetName(nsAString *aName);
1753 nsresult SetName(const nsAString *aName);
1754 nsresult GetPlaceholder(nsAString *aPlaceholder);
1755 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1756 nsresult GetReadOnly(bool *aReadOnly);
1757 nsresult SetReadOnly(bool aReadOnly);
1758 nsresult GetRequired(bool *aRequired);
1759 nsresult SetRequired(bool aRequired);
1760 nsresult GetRows(PRUint32 *aRows);
1761 nsresult SetRows(PRUint32 aRows);
1762 nsresult GetWrap(nsAString *aWrap);
1763 nsresult SetWrap(const nsAString *aWrap);
1764 nsresult GetType(nsAString *aType);
1765 nsresult GetDefaultValue(nsAString *aDefaultValue);
1766 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1767 nsresult GetValue(nsAString *aValue);
1768 nsresult SetValue(const nsAString *aValue);
1769 nsresult GetTextLength(PRInt32 *aTextLength);
1770 nsresult GetWillValidate(bool *aWillValidate);
1771 nsresult GetValidity(nsIDOMValidityState **aValidity);
1772 nsresult GetValidationMessage(nsAString *aValidationMessage);
1773 nsresult CheckValidity(bool *_retval);
1774 nsresult SetCustomValidity(const nsAString *error);
1776 nsresult GetSelectionStart(PRInt32 *aSelectionStart);
1777 nsresult SetSelectionStart(PRInt32 aSelectionStart);
1778 nsresult GetSelectionEnd(PRInt32 *aSelectionEnd);
1779 nsresult SetSelectionEnd(PRInt32 aSelectionEnd);
1780 nsresult SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd, const nsAString *direction);
1781 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1782 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1783 nsresult GetControllers(nsIControllers **aControllers);
1788 uuid(e2f548f6-9955-4820-a9e6-3a9fd43c7111),
1791 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1793 nsresult GetSrc(nsAString *aSrc);
1794 nsresult SetSrc(const nsAString *aSrc);
1795 nsresult GetAsync(bool *aAsync);
1796 nsresult SetAsync(bool aAsync);
1797 nsresult GetDefer(bool *aDefer);
1798 nsresult SetDefer(bool aDefer);
1799 nsresult GetType(nsAString *aType);
1800 nsresult SetType(const nsAString *aType);
1801 nsresult GetCharset(nsAString *aCharset);
1802 nsresult SetCharset(const nsAString *aCharset);
1803 nsresult GetText(nsAString *aText);
1804 nsresult SetText(const nsAString *aText);
1805 nsresult GetHtmlFor(nsAString *aHtmlFor);
1806 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1807 nsresult GetEvent(nsAString *aEvent);
1808 nsresult SetEvent(const nsAString *aEvent);
1809 nsresult GetCrossOrigin(nsAString *aCrossOrigin);
1810 nsresult SetCrossOrigin(const nsAString *aCrossOrigin);
1815 uuid(76cf0381-19fd-442d-bb18-c794fd8b5c25),
1818 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1820 nsresult GetAlt(nsAString *aAlt);
1821 nsresult SetAlt(const nsAString *aAlt);
1822 nsresult GetSrc(nsAString *aSrc);
1823 nsresult SetSrc(const nsAString *aSrc);
1824 nsresult GetCrossOrigin(nsAString *aCrossOrigin);
1825 nsresult SetCrossOrigin(const nsAString *aCrossOrigin);
1826 nsresult GetUseMap(nsAString *aUseMap);
1827 nsresult SetUseMap(const nsAString *aUseMap);
1828 nsresult GetIsMap(bool *aIsMap);
1829 nsresult SetIsMap(bool aIsMap);
1830 nsresult GetWidth(PRUint32 *aWidth);
1831 nsresult SetWidth(PRUint32 aWidth);
1832 nsresult GetHeight(PRUint32 *aHeight);
1833 nsresult SetHeight(PRUint32 aHeight);
1834 nsresult GetNaturalWidth(PRUint32 *aNaturalWidth);
1835 nsresult GetNaturalHeight(PRUint32 *aNaturalHeight);
1836 nsresult GetComplete(bool *aComplete);
1837 nsresult GetName(nsAString *aName);
1838 nsresult SetName(const nsAString *aName);
1839 nsresult GetAlign(nsAString *aAlign);
1840 nsresult SetAlign(const nsAString *aAlign);
1841 nsresult GetBorder(nsAString *aBorder);
1842 nsresult SetBorder(const nsAString *aBorder);
1843 nsresult GetHspace(PRInt32 *aHspace);
1844 nsresult SetHspace(PRInt32 aHspace);
1845 nsresult GetLongDesc(nsAString *aLongDesc);
1846 nsresult SetLongDesc(const nsAString *aLongDesc);
1847 nsresult GetVspace(PRInt32 *aVspace);
1848 nsresult SetVspace(PRInt32 aVspace);
1849 nsresult GetLowsrc(nsAString *aLowsrc);
1850 nsresult SetLowsrc(const nsAString *aLowsrc);
1851 nsresult GetX(PRInt32 *aX);
1852 nsresult GetY(PRInt32 *aY);
1857 uuid(68f49f8f-5ffd-44eb-a59f-d2b3f4817299),
1860 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1862 nsresult GetHref(nsAString *aHref);
1863 nsresult SetHref(const nsAString *aHref);
1864 nsresult GetTarget(nsAString *aTarget);
1865 nsresult SetTarget(const nsAString *aTarget);
1866 nsresult GetPing(nsAString *aPing);
1867 nsresult SetPing(const nsAString *aPing);
1868 nsresult GetRel(nsAString *aRel);
1869 nsresult SetRel(const nsAString *aRel);
1870 nsresult GetHreflang(nsAString *aHreflang);
1871 nsresult SetHreflang(const nsAString *aHreflang);
1872 nsresult GetType(nsAString *aType);
1873 nsresult SetType(const nsAString *aType);
1874 nsresult GetText(nsAString *aText);
1875 nsresult SetText(const nsAString *aText);
1876 nsresult GetProtocol(nsAString *aProtocol);
1877 nsresult SetProtocol(const nsAString *aProtocol);
1878 nsresult GetHost(nsAString *aHost);
1879 nsresult SetHost(const nsAString *aHost);
1880 nsresult GetHostname(nsAString *aHostname);
1881 nsresult SetHostname(const nsAString *aHostname);
1882 nsresult GetPort(nsAString *aPort);
1883 nsresult SetPort(const nsAString *aPort);
1884 nsresult GetPathname(nsAString *aPathname);
1885 nsresult SetPathname(const nsAString *aPathname);
1886 nsresult GetSearch(nsAString *aSearch);
1887 nsresult SetSearch(const nsAString *aSearch);
1888 nsresult GetHash(nsAString *aHash);
1889 nsresult SetHash(const nsAString *aHash);
1890 nsresult GetCharset(nsAString *aCharset);
1891 nsresult SetCharset(const nsAString *aCharset);
1892 nsresult GetCoords(nsAString *aCoords);
1893 nsresult SetCoords(const nsAString *aCoords);
1894 nsresult GetName(nsAString *aName);
1895 nsresult SetName(const nsAString *aName);
1896 nsresult GetRev(nsAString *aRev);
1897 nsresult SetRev(const nsAString *aRev);
1898 nsresult GetShape(nsAString *aShape);
1899 nsresult SetShape(const nsAString *aShape);
1900 nsresult ToString(nsAString *_retval);
1905 uuid(59ae3529-170a-41e4-8d7a-241dca6b5760),
1908 interface nsIDOMHTMLLinkElement : nsIDOMHTMLElement
1910 nsresult GetDisabled(bool *aDisabled);
1911 nsresult SetDisabled(bool aDisabled);
1912 nsresult GetCharset(nsAString *aCharset);
1913 nsresult SetCharset(const nsAString *aCharset);
1914 nsresult GetHref(nsAString *aHref);
1915 nsresult SetHref(const nsAString *aHref);
1916 nsresult GetHreflang(nsAString *aHreflang);
1917 nsresult SetHreflang(const nsAString *aHreflang);
1918 nsresult GetMedia(nsAString *aMedia);
1919 nsresult SetMedia(const nsAString *aMedia);
1920 nsresult GetRel(nsAString *aRel);
1921 nsresult SetRel(const nsAString *aRel);
1922 nsresult GetRev(nsAString *aRev);
1923 nsresult SetRev(const nsAString *aRev);
1924 nsresult GetTarget(nsAString *aTarget);
1925 nsresult SetTarget(const nsAString *aTarget);
1926 nsresult GetType(nsAString *aType);
1927 nsresult SetType(const nsAString *aType);
1932 uuid(ae50de74-bc26-402e-85dc-a980f506b655),
1935 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1937 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1938 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1939 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1940 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1941 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1942 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1943 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1944 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1945 nsresult GetAlign(nsAString *aAlign);
1946 nsresult SetAlign(const nsAString *aAlign);
1947 nsresult GetBgColor(nsAString *aBgColor);
1948 nsresult SetBgColor(const nsAString *aBgColor);
1949 nsresult GetBorder(nsAString *aBorder);
1950 nsresult SetBorder(const nsAString *aBorder);
1951 nsresult GetCellPadding(nsAString *aCellPadding);
1952 nsresult SetCellPadding(const nsAString *aCellPadding);
1953 nsresult GetCellSpacing(nsAString *aCellSpacing);
1954 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1955 nsresult GetFrame(nsAString *aFrame);
1956 nsresult SetFrame(const nsAString *aFrame);
1957 nsresult GetRules(nsAString *aRules);
1958 nsresult SetRules(const nsAString *aRules);
1959 nsresult GetSummary(nsAString *aSummary);
1960 nsresult SetSummary(const nsAString *aSummary);
1961 nsresult GetWidth(nsAString *aWidth);
1962 nsresult SetWidth(const nsAString *aWidth);
1963 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1964 nsresult DeleteTHead();
1965 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1966 nsresult DeleteTFoot();
1967 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1968 nsresult DeleteCaption();
1969 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1970 nsresult DeleteRow(PRInt32 index);
1975 uuid(0ac4a382-4f97-4143-a3b3-de0a54978c67),
1978 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1980 nsresult GetRowIndex(PRInt32 *aRowIndex);
1981 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1982 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1983 nsresult GetAlign(nsAString *aAlign);
1984 nsresult SetAlign(const nsAString *aAlign);
1985 nsresult GetBgColor(nsAString *aBgColor);
1986 nsresult SetBgColor(const nsAString *aBgColor);
1987 nsresult GetCh(nsAString *aCh);
1988 nsresult SetCh(const nsAString *aCh);
1989 nsresult GetChOff(nsAString *aChOff);
1990 nsresult SetChOff(const nsAString *aChOff);
1991 nsresult GetVAlign(nsAString *aVAlign);
1992 nsresult SetVAlign(const nsAString *aVAlign);
1993 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1994 nsresult DeleteCell(PRInt32 index);
1999 uuid(97e4f0e1-bd27-40ec-9287-5634daf15b73),
2002 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
2004 nsresult GetAlign(nsAString *aAlign);
2005 nsresult SetAlign(const nsAString *aAlign);
2006 nsresult GetFrameBorder(nsAString *aFrameBorder);
2007 nsresult SetFrameBorder(const nsAString *aFrameBorder);
2008 nsresult GetHeight(nsAString *aHeight);
2009 nsresult SetHeight(const nsAString *aHeight);
2010 nsresult GetLongDesc(nsAString *aLongDesc);
2011 nsresult SetLongDesc(const nsAString *aLongDesc);
2012 nsresult GetMarginHeight(nsAString *aMarginHeight);
2013 nsresult SetMarginHeight(const nsAString *aMarginHeight);
2014 nsresult GetMarginWidth(nsAString *aMarginWidth);
2015 nsresult SetMarginWidth(const nsAString *aMarginWidth);
2016 nsresult GetName(nsAString *aName);
2017 nsresult SetName(const nsAString *aName);
2018 nsresult GetScrolling(nsAString *aScrolling);
2019 nsresult SetScrolling(const nsAString *aScrolling);
2020 nsresult GetSrc(nsAString *aSrc);
2021 nsresult SetSrc(const nsAString *aSrc);
2022 nsresult GetWidth(nsAString *aWidth);
2023 nsresult SetWidth(const nsAString *aWidth);
2024 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2025 nsresult GetContentWindow(nsIDOMWindow **aContentWindow);
2026 nsresult GetMozAllowFullScreen(bool *aMozAllowFullScreen);
2027 nsresult SetMozAllowFullScreen(bool aMozAllowFullScreen);
2032 uuid(2aa7855a-0667-47c3-af1e-9101002816c1),
2035 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
2037 nsresult GetFrameBorder(nsAString *aFrameBorder);
2038 nsresult SetFrameBorder(const nsAString *aFrameBorder);
2039 nsresult GetLongDesc(nsAString *aLongDesc);
2040 nsresult SetLongDesc(const nsAString *aLongDesc);
2041 nsresult GetMarginHeight(nsAString *aMarginHeight);
2042 nsresult SetMarginHeight(const nsAString *aMarginHeight);
2043 nsresult GetMarginWidth(nsAString *aMarginWidth);
2044 nsresult SetMarginWidth(const nsAString *aMarginWidth);
2045 nsresult GetName(nsAString *aName);
2046 nsresult SetName(const nsAString *aName);
2047 nsresult GetNoResize(bool *aNoResize);
2048 nsresult SetNoResize(bool aNoResize);
2049 nsresult GetScrolling(nsAString *aScrolling);
2050 nsresult SetScrolling(const nsAString *aScrolling);
2051 nsresult GetSrc(nsAString *aSrc);
2052 nsresult SetSrc(const nsAString *aSrc);
2053 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2054 nsresult GetContentWindow(nsIDOMWindow **aContentWindow);
2059 uuid(a70595dd-68a5-41f5-ab52-73a47d98bd78),
2062 interface nsIDOMHTMLObjectElement : nsIDOMHTMLElement
2064 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
2065 nsresult GetCode(nsAString *aCode);
2066 nsresult SetCode(const nsAString *aCode);
2067 nsresult GetAlign(nsAString *aAlign);
2068 nsresult SetAlign(const nsAString *aAlign);
2069 nsresult GetArchive(nsAString *aArchive);
2070 nsresult SetArchive(const nsAString *aArchive);
2071 nsresult GetBorder(nsAString *aBorder);
2072 nsresult SetBorder(const nsAString *aBorder);
2073 nsresult GetCodeBase(nsAString *aCodeBase);
2074 nsresult SetCodeBase(const nsAString *aCodeBase);
2075 nsresult GetCodeType(nsAString *aCodeType);
2076 nsresult SetCodeType(const nsAString *aCodeType);
2077 nsresult GetData(nsAString *aData);
2078 nsresult SetData(const nsAString *aData);
2079 nsresult GetDeclare(bool *aDeclare);
2080 nsresult SetDeclare(bool aDeclare);
2081 nsresult GetHeight(nsAString *aHeight);
2082 nsresult SetHeight(const nsAString *aHeight);
2083 nsresult GetHspace(PRInt32 *aHspace);
2084 nsresult SetHspace(PRInt32 aHspace);
2085 nsresult GetName(nsAString *aName);
2086 nsresult SetName(const nsAString *aName);
2087 nsresult GetStandby(nsAString *aStandby);
2088 nsresult SetStandby(const nsAString *aStandby);
2089 nsresult GetType(nsAString *aType);
2090 nsresult SetType(const nsAString *aType);
2091 nsresult GetUseMap(nsAString *aUseMap);
2092 nsresult SetUseMap(const nsAString *aUseMap);
2093 nsresult GetVspace(PRInt32 *aVspace);
2094 nsresult SetVspace(PRInt32 aVspace);
2095 nsresult GetWidth(nsAString *aWidth);
2096 nsresult SetWidth(const nsAString *aWidth);
2097 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2098 nsresult GetWillValidate(bool *aWillValidate);
2099 nsresult GetValidity(nsIDOMValidityState **aValidity);
2100 nsresult GetValidationMessage(nsAString *aValidationMessage);
2101 nsresult CheckValidity(bool *_retval);
2102 nsresult SetCustomValidity(const nsAString *error);
2107 uuid(1fbec0f8-c7cF-4dc8-84be-247985a65e07),
2110 interface nsIDOMHTMLParamElement : nsIDOMHTMLElement
2112 nsresult GetName(nsAString *aName);
2113 nsresult SetName(const nsAString *aName);
2114 nsresult GetType(nsAString *aType);
2115 nsresult SetType(const nsAString *aType);
2116 nsresult GetValue(nsAString *aValue);
2117 nsresult SetValue(const nsAString *aValue);
2118 nsresult GetValueType(nsAString *aValueType);
2119 nsresult SetValueType(const nsAString *aValueType);
2124 uuid(830d9170-f8eb-4749-b721-16d60d6b0f1b),
2127 interface nsIDOMHTMLStyleElement : nsIDOMHTMLElement
2129 nsresult GetDisabled(bool *aDisabled);
2130 nsresult SetDisabled(bool aDisabled);
2131 nsresult GetMedia(nsAString *aMedia);
2132 nsresult SetMedia(const nsAString *aMedia);
2133 nsresult GetType(nsAString *aType);
2134 nsresult SetType(const nsAString *aType);
2135 nsresult GetDOMStyleSheet(nsIDOMStyleSheet **aDOMStyleSheet);
2140 uuid(7cebc153-168a-416c-ba5a-56a8c2ddb2ec),
2143 interface nsIDOMNodeSelector : nsISupports
2145 nsresult QuerySelector(const nsAString *selectors, nsIDOMElement **_retval);
2146 nsresult QuerySelectorAll(const nsAString *selectors, nsIDOMNodeList **_retval);
2151 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
2154 interface nsIURIContentListener : nsISupports
2156 nsresult OnStartURIOpen(nsIURI *aURI, bool *_retval);
2157 nsresult DoContent(const char *aContentType, bool aIsContentPreferred, nsIRequest *aRequest,
2158 nsIStreamListener **aContentHandler, bool *_retval);
2159 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, bool *_retval);
2160 nsresult CanHandleContent(const char *aContentType, bool aIsContentPreferred,
2161 char **aDesiredContentType, bool *_retval);
2162 nsresult GetLoadCookie(nsISupports **aLoadCookie);
2163 nsresult SetLoadCookie(nsISupports *aLoadCookie);
2164 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
2165 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
2170 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
2173 interface nsITooltipListener : nsISupports
2175 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
2176 nsresult OnHideTooltip();
2181 uuid(33e9d001-caab-4ba9-8961-54902f197202),
2184 interface nsIWebBrowser : nsISupports
2186 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2187 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2188 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
2189 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
2190 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
2191 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
2192 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
2193 nsresult GetIsActive(bool *aIsActive);
2194 nsresult SetIsActive(bool aIsActive);
2197 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
2198 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
2199 cpp_quote("#define SETUP_DISABLE_NOSCRIPT 16")
2203 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
2206 interface nsIWebBrowserSetup : nsISupports
2208 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
2211 typedef void* nativeWindow;
2215 uuid(7144ac8b-6702-4a4b-a73d-d1d4e9717e46),
2218 interface nsIBaseWindow : nsISupports
2220 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
2221 PRInt32 y, PRInt32 cx, PRInt32 cy);
2224 nsresult SetPosition(PRInt32 x, PRInt32 y);
2225 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
2226 nsresult SetSize(PRInt32 cx, PRInt32 cy, bool fRepaint);
2227 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
2228 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, bool fRepaint);
2229 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2230 nsresult Repaint(bool force);
2231 nsresult GetParentWidget(nsIWidget **aParentWidget);
2232 nsresult SetParentWidget(nsIWidget *aParentWidget);
2233 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
2234 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
2235 nsresult GetVisibility(bool *aVisibility);
2236 nsresult SetVisibility(bool aVisibility);
2237 nsresult GetEnabled(bool *aEnabled);
2238 nsresult SetEnabled(bool aEnabled);
2239 nsresult GetMainWidget(nsIWidget **aMainWidget);
2240 nsresult SetFocus();
2241 nsresult GetTitle(PRUnichar **aTitle);
2242 nsresult SetTitle(const PRUnichar *aTitle);
2245 cpp_quote("#define LOAD_FLAGS_NONE 0x00000000")
2246 cpp_quote("#define LOAD_REPLACE 0x00040000")
2247 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x00080000")
2251 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
2254 interface nsIWebNavigation : nsISupports
2256 nsresult GetCanGoBack(bool *aCanGoBack);
2257 nsresult GetCanGoForward(bool *aCanGoForward);
2259 nsresult GoForward();
2260 nsresult GotoIndex(PRInt32 index);
2261 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
2262 nsIInputStream *aPostData, nsIInputStream *aHeaders);
2263 nsresult Reload(PRUint32 aReloadFlags);
2264 nsresult Stop(PRUint32 aStopFlags);
2265 nsresult GetDocument(nsIDOMDocument **aDocument);
2266 nsresult GetCurrentURI(nsIURI **aCurrentURI);
2267 nsresult GetReferringURI(nsIURI **aReferringURI);
2268 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
2269 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
2274 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
2277 interface nsIWebProgress : nsISupports
2279 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
2280 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
2281 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
2282 nsresult GetIsLoadingDocument(bool *aIsLoadingDocument);
2287 uuid(4404c94b-0506-4255-9e3c-4582dba6cfbb),
2290 interface nsIPrintSettings : nsISupports
2292 typedef struct { char dummy; } nsIntMargin;
2294 nsresult SetPrintOptions(PRInt32 aType, bool aTurnOnOff);
2295 nsresult GetPrintOptions(PRInt32 aType, bool *_retval);
2296 nsresult GetPrintOptionsBits(PRInt32 *_retval);
2297 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
2298 nsresult Clone(nsIPrintSettings **_retval);
2299 nsresult Assign(nsIPrintSettings *aPS);
2300 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
2301 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
2302 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
2303 nsresult SetStartPageRange(PRInt32 aStartPageRange);
2304 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
2305 nsresult SetEndPageRange(PRInt32 aEndPageRange);
2306 nsresult GetEdgeTop(double *aEdgeTop);
2307 nsresult SetEdgeTop(double aEdgeTop);
2308 nsresult GetEdgeLeft(double *aEdgeLeft);
2309 nsresult SetEdgeLeft(double aEdgeLeft);
2310 nsresult GetEdgeBottom(double *aEdgeBottom);
2311 nsresult SetEdgeBottom(double aEdgeBottom);
2312 nsresult GetEdgeRight(double *aEdgeRight);
2313 nsresult SetEdgeRight(double aEdgeRight);
2314 nsresult GetMarginTop(double *aMarginTop);
2315 nsresult SetMarginTop(double aMarginTop);
2316 nsresult GetMarginLeft(double *aMarginLeft);
2317 nsresult SetMarginLeft(double aMarginLeft);
2318 nsresult GetMarginBottom(double *aMarginBottom);
2319 nsresult SetMarginBottom(double aMarginBottom);
2320 nsresult GetMarginRight(double *aMarginRight);
2321 nsresult SetMarginRight(double aMarginRight);
2322 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
2323 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
2324 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
2325 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
2326 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
2327 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
2328 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
2329 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
2330 nsresult GetScaling(double *aScaling);
2331 nsresult SetScaling(double aScaling);
2332 nsresult GetPrintBGColors(bool *aPrintBGColors);
2333 nsresult SetPrintBGColors(bool aPrintBGColors);
2334 nsresult GetPrintBGImages(bool *aPrintBGImages);
2335 nsresult SetPrintBGImages(bool aPrintBGImages);
2336 nsresult GetPrintRange(PRInt16 *aPrintRange);
2337 nsresult SetPrintRange(PRInt16 aPrintRange);
2338 nsresult GetTitle(PRUnichar **aTitle);
2339 nsresult SetTitle(const PRUnichar *aTitle);
2340 nsresult GetDocURL(PRUnichar **aDocURL);
2341 nsresult SetDocURL(const PRUnichar *aDocURL);
2342 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
2343 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
2344 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
2345 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
2346 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
2347 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
2348 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
2349 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
2350 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
2351 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
2352 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
2353 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
2354 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
2355 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
2356 nsresult GetIsCancelled(bool *aIsCancelled);
2357 nsresult SetIsCancelled(bool aIsCancelled);
2358 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
2359 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
2360 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
2361 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
2362 nsresult GetPrintSilent(bool *aPrintSilent);
2363 nsresult SetPrintSilent(bool aPrintSilent);
2364 nsresult GetShrinkToFit(bool *aShrinkToFit);
2365 nsresult SetShrinkToFit(bool aShrinkToFit);
2366 nsresult GetShowPrintProgress(bool *aShowPrintProgress);
2367 nsresult SetShowPrintProgress(bool aShowPrintProgress);
2368 nsresult GetPaperName(PRUnichar **aPaperName);
2369 nsresult SetPaperName(const PRUnichar *aPaperName);
2370 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
2371 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
2372 nsresult GetPaperData(PRInt16 *aPaperData);
2373 nsresult SetPaperData(PRInt16 aPaperData);
2374 nsresult GetPaperWidth(double *aPaperWidth);
2375 nsresult SetPaperWidth(double aPaperWidth);
2376 nsresult GetPaperHeight(double *aPaperHeight);
2377 nsresult SetPaperHeight(double aPaperHeight);
2378 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
2379 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
2380 nsresult GetPlexName(PRUnichar **aPlexName);
2381 nsresult SetPlexName(const PRUnichar *aPlexName);
2382 nsresult GetColorspace(PRUnichar **aColorspace);
2383 nsresult SetColorspace(const PRUnichar *aColorspace);
2384 nsresult GetResolutionName(PRUnichar **aResolutionName);
2385 nsresult SetResolutionName(const PRUnichar aResolutionName);
2386 nsresult GetDownloadFonts(bool *aDownloadFonts);
2387 nsresult SetDownloadFonts(bool aDownloadFonts);
2388 nsresult GetPrintReversed(bool *aPrintReversed);
2389 nsresult SetPrintReversed(bool aPrintReversed);
2390 nsresult GetPrintInColor(bool *aPrintInColor);
2391 nsresult SetPrintInColor(bool aPrintInColor);
2392 nsresult GetOrientation(PRInt32 *aOrientation);
2393 nsresult SetOrientation(PRInt32 aOrientation);
2394 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
2395 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
2396 nsresult GetNumCopies(PRInt32 *aNumCopies);
2397 nsresult SetNumCopies(PRInt32 aNumCopies);
2398 nsresult GetPrinterName(PRUnichar **aPrinterName);
2399 nsresult SetPrinterName(const PRUnichar *aPrinterName);
2400 nsresult GetPrintToFile(bool *aPrintToFile);
2401 nsresult SetPrintToFile(bool aPrintToFile);
2402 nsresult GetToFileName(PRUnichar **aToFileName);
2403 nsresult SetToFileName(const PRUnichar *aToFileName);
2404 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
2405 nsresult SetOutputFormat(PRInt16 aOutputFormat);
2406 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
2407 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
2408 nsresult GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter);
2409 nsresult SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter);
2410 nsresult GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs);
2411 nsresult SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs);
2412 nsresult SetMarginInTwips(nsIntMargin *aMargin);
2413 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
2414 nsresult GetMarginInTwips(nsIntMargin *aMargin);
2415 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
2416 nsresult SetupSilentPrinting();
2417 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2418 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2419 nsresult GetPageRanges(void * /*nsTArray<PRInt32>&*/ aPages);
2424 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
2427 interface nsIWebBrowserPrint : nsISupports
2429 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
2430 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
2431 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
2432 nsresult GetDoingPrint(bool *aDoingPrint);
2433 nsresult GetDoingPrintPreview(bool *aDoingPrintPreview);
2434 nsresult GetIsFramesetDocument(bool *aIsFramesetDocument);
2435 nsresult GetIsFramesetFrameSelected(bool *aIsFramesetFrameSelected);
2436 nsresult GetIsIFrameSelected(bool *aIsIFrameSelected);
2437 nsresult GetIsRangeSelection(bool *aIsRangeSelection);
2438 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
2439 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
2440 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
2441 nsIWebProgressListener *aWPListener);
2442 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
2444 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
2445 nsresult ExitPrintPreview();
2450 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
2453 interface nsIScrollable : nsISupports
2456 ScrollOrientation_X = 1,
2457 ScrollOrientation_Y = 2
2462 Scrollbar_Never = 2,
2463 Scrollbar_Always = 3
2466 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
2467 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
2468 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
2469 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
2470 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
2471 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
2472 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
2473 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
2474 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
2475 nsresult GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible);
2480 uuid(272a5020-64f5-485c-a8c4-44b2882ae0a2),
2483 interface nsIFile : nsISupports
2486 /* Currently not needed */
2488 } PRFileDesc, PRLibrary, widl_FILE;
2489 #define FILE widl_FILE
2491 nsresult Append(const nsAString *node);
2492 nsresult AppendNative(const nsAString *node);
2493 nsresult Normalize();
2494 nsresult Create(PRUint32 type, PRUint32 permission);
2495 nsresult GetLeafName(nsAString *aLeafName);
2496 nsresult SetLeafName(const nsAString *aLeafName);
2497 nsresult GetNativeLeafName(nsAString *aLeafName);
2498 nsresult SetNativeLeafName(const nsAString *aLeafName);
2499 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2500 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2501 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2502 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2503 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2504 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2505 nsresult Remove(bool recursive);
2506 nsresult GetPermissions(PRUint32 *aPermissions);
2507 nsresult SetPermissions(PRUint32 pPermissions);
2508 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
2509 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
2510 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
2511 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
2512 nsresult GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink);
2513 nsresult SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink);
2514 nsresult GetFileSize(PRInt64 *aFileSize);
2515 nsresult SetFileSize(PRInt64 aFileSize);
2516 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
2517 nsresult GetTarget(nsAString *aTarget);
2518 nsresult GetNativeTarget(nsACString *aNativeTarget);
2519 nsresult GetPath(nsAString *aPath);
2520 nsresult GetNativePath(nsACString *aNativePath);
2521 nsresult Exists(bool *_retval);
2522 nsresult IsWritable(bool *_retval);
2523 nsresult IsReadable(bool *_retval);
2524 nsresult IsExecutable(bool *_retval);
2525 nsresult IsHidden(bool *_retval);
2526 nsresult IsDirectory(bool *_retval);
2527 nsresult IsFile(bool *_retval);
2528 nsresult IsSymlink(bool *_retval);
2529 nsresult IsSpecial(bool *_retval);
2530 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2531 nsresult Clone(nsIFile **_retval);
2532 nsresult Equals(nsIFile *inFile, bool *_retval);
2533 nsresult Contains(nsIFile *inFile, bool recir, bool *_retval);
2534 nsresult GetParent(nsIFile **aParent);
2535 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2536 nsresult InitWithPath(const nsAString *filePath);
2537 nsresult InitWithNativePath(const nsACString *filePath);
2538 nsresult InitWithFile(nsIFile *aFile);
2539 nsresult GetFollowLinks(bool *aFollowLinks);
2540 nsresult SetFollowLinks(bool aFollowLinks);
2541 nsresult OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval);
2542 nsresult OpenANSIFileDesc(const char *mode, FILE **_retval);
2543 nsresult Load(PRLibrary **_retval);
2544 nsresult GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable);
2545 nsresult AppendRelativePath(const nsAString *relativeFilePath);
2546 nsresult AppendRelativeNativePath(const nsACString *relativeFilePath);
2547 nsresult GetPersistentDescriptor(nsACString *aPersistentDescriptor);
2548 nsresult SetPersistentDescriptor(const nsACString *aPersistentDescriptor);
2551 nsresult GetRelativeDescriptor(nsIFile *fromFile, nsACString *_retval);
2552 nsresult SetRelativeDescriptor(nsIFile *fromFile, const nsACString *relativeDesc);
2557 uuid(1d940426-5fe5-42c3-84ae-a300f2d9ebd5),
2560 interface nsIComponentManager : nsISupports
2562 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
2563 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
2564 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
2566 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
2567 nsIIDRef aIID, void **result);
2568 nsresult AddBootstrappedManifestLocation(nsIFile *aLocation);
2569 nsresult RemoveBootstrappedManifestLocation(nsIFile *aLocation);
2574 uuid(7df46a54-d8b0-448e-903c-4341a1b2499c),
2577 interface nsIPrefBranch : nsISupports
2579 nsresult GetRoot(char **aRoot);
2580 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2581 nsresult GetBoolPref(const char *aPrefName, bool *_retval);
2582 nsresult SetBoolPref(const char *aPrefName, bool aValue);
2583 nsresult GetCharPref(const char *aPrefName, char **_retval);
2584 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2585 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2586 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2587 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2588 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2589 nsresult ClearUserPref(const char *aPrefName);
2590 nsresult LockPref(const char *aPrefName);
2591 nsresult PrefHasUserValue(const char *aPrefName, bool *_retval);
2592 nsresult PrefIsLocked(const char *aPrefName, bool *_retval);
2593 nsresult UnlockPref(const char *aPrefName);
2594 nsresult DeleteBranch(const char *aStartingAt);
2595 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2596 nsresult ResetBranch(const char *aStartingAt);
2597 nsresult AddObserver(const char *aDomain, nsIObserver *aObserver, bool aHoldWeak);
2598 nsresult RemoveObserver(const char *aDomain, nsIObserver *aObserver);
2603 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2606 interface nsIDirectoryServiceProvider : nsISupports
2608 nsresult GetFile(const char *prop, bool *persistent, nsIFile **_retval);
2613 uuid(2f977d4b-5485-11d4-87e2-0010a4e75ef2),
2616 interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
2618 nsresult GetFiles(const char *prop, nsISimpleEnumerator **_retval);
2623 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2626 interface nsIProtocolHandler : nsISupports
2628 nsresult GetScheme(nsACString *aScheme);
2629 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2630 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2631 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2632 nsIURI *aBaseURI, nsIURI **_retval);
2633 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2634 nsresult AllowPort(PRInt32 port, const char *scheme, bool *_retval);
2639 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2642 interface nsIExternalProtocolHandler : nsIProtocolHandler
2644 nsresult ExternalAppExistsForScheme(const nsACString *scheme, bool *_retval);
2649 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2652 interface nsIIOService : nsISupports
2654 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2655 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2656 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2658 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2659 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2660 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2661 nsIChannel **_retval);
2662 nsresult GetOffline(bool *aOffline);
2663 nsresult SetOffline(bool aOffline);
2664 nsresult AllowPort(PRInt32 aPort, const char *aScheme, bool *_retval);
2665 nsresult ExtractScheme(const nsACString *urlString, nsACString *_retval);
2670 uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2673 interface nsINetUtil : nsISupports
2675 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2676 bool *aHadCharset, nsACString *_retval);
2677 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, bool *_retval);
2678 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, bool *_retval);
2679 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2680 nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2681 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2682 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2683 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2684 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2685 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, bool *_retval);
2690 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2693 interface nsIWebBrowserFocus : nsISupports
2695 nsresult Activate();
2696 nsresult Deactivate();
2697 nsresult SetFocusAtFirstElement();
2698 nsresult SetFocusAtLastElement();
2699 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2700 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2701 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2702 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2707 uuid(e8c414c4-dc38-4ba3-ab4e-ec4cbbe22907),
2710 interface nsIWebBrowserChrome : nsISupports
2712 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2713 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2714 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2715 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2716 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2717 nsresult DestroyBrowserWindow();
2718 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2719 nsresult ShowAsModal();
2720 nsresult IsWindowModal(bool *_retval);
2721 nsresult ExitModalEventLoop(nsresult aStatus);
2726 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2729 interface nsIDOMEventListener : nsISupports
2731 nsresult HandleEvent(nsIDOMEvent *event);
2736 uuid(8e375931-298d-4d0a-9cb4-5668f0cdc5a8),
2739 interface nsIDOMEventTarget : nsISupports
2741 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture, bool wantsUntrusted, PRUint8 _argc);
2742 nsresult AddSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture, bool aWantsUntrusted, PRUint8 _argc);
2743 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture);
2744 nsresult RemoveSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture);
2745 nsresult DispatchEvent(nsIDOMEvent *evt, bool *_retval);
2747 /* Followed by methods we should try to avoid using */
2752 uuid(a7dc0284-5832-4034-a8a5-d860ce0f21d3),
2755 interface nsIDOMEvent : nsISupports
2757 nsresult GetType(nsAString *aType);
2758 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2759 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2760 nsresult GetEventPhase(PRUint16 *aEventPhase);
2761 nsresult GetBubbles(bool *aBubbles);
2762 nsresult GetCancelable(bool *aCancelable);
2763 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2764 nsresult StopPropagation();
2765 nsresult PreventDefault();
2766 nsresult InitEvent(const nsAString *eventTypeArg, bool canBubbleArg, bool cancelableArg);
2767 nsresult GetDefaultPrevented(bool *aDefaultPrevented);
2768 nsresult StopImmediatePropagation();
2769 nsresult DuplicatePrivateData();
2770 nsresult SetTarget(nsIDOMEventTarget *aTarget);
2771 bool IsDispatchStopped();
2772 /*nsEvent*/ void *GetInternalNSEvent();
2773 nsresult SetTrusted(bool aTrusted);
2774 void Serialize(/*IPC::Message*/ void *aMsg, bool aSerializeInterfaceType);
2775 bool Deserialize(const /*IPC::Message*/ void *aMsg, void **aIter);
2780 uuid(858578f1-9653-4d5c-821a-07479bf2d9b2),
2783 interface nsIDOMWindowUtils : nsISupports
2785 nsresult GetImageAnimationMode(PRUint16 *aImageAnimationMode);
2786 nsresult SetImageAnimationMode(PRUint16 aImageAnimationMode);
2787 nsresult GetDocCharsetIsForced(bool *aDocCharsetIsForced);
2788 nsresult GetCursorType(PRInt16 *_retval);
2789 nsresult GetDocumentMetadata(const nsAString *aName, nsAString *_retval);
2790 nsresult Redraw(PRUint32 aCount, PRUint32 *_retval);
2791 nsresult SetCSSViewport(float aWidthPx, float aHeightPx);
2792 nsresult SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, nsIDOMElement *aElement);
2793 nsresult SetResolution(float aXResolution, float aYResolution);
2794 nsresult GetIsFirstPaint(bool *aIsFirstPaint);
2795 nsresult SetIsFirstPaint(bool aIsFirstPaint);
2796 nsresult SendMouseEvent(const nsAString *aType, float aX, float aY, PRInt32 aButton,
2797 PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame);
2798 nsresult SendTouchEvent(const nsAString *aType, PRUint32 *aIdentifiers, PRInt32 *aXs, PRInt32 *aYs,
2799 PRUint32 *aRxs, PRUint32 *aRys, float *aRotationAngles, float *aForces, PRUint32 count, PRInt32 aModifiers,
2800 bool aIgnoreRootScrollFrame, bool *_retval);
2801 nsresult SendMouseEventToWindow(const nsAString *aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount,
2802 PRInt32 aModifiers, bool aIgnoreRootScrollFrame);
2803 nsresult SendMouseScrollEvent(const nsAString *aType, float aX, float aY, PRInt32 aButton, PRInt32 aScrollFlags,
2804 PRInt32 aDelta, PRInt32 aModifiers);
2805 nsresult SendKeyEvent(const nsAString *aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers,
2806 PRUint32 aAdditionalFlags, bool *_retval);
2807 nsresult SendNativeKeyEvent(PRInt32 aNativeKeyboardLayout, PRInt32 aNativeKeyCode, PRInt32 aModifierFlags,
2808 const nsAString *aCharacters, const nsAString *aUnmodifiedCharacters);
2809 nsresult SendNativeMouseEvent(PRInt32 aScreenX, PRInt32 aScreenY, PRInt32 aNativeMessage, PRInt32 aModifierFlags,
2810 nsIDOMElement *aElement);
2811 nsresult SendNativeMouseScrollEvent(PRInt32 aScreenX, PRInt32 aScreenY, PRUint32 aNativeMessage, double aDeltaX,
2812 double aDeltaY, double aDeltaZ, PRUint32 aModifierFlags, PRUint32 aAdditionalFlags, nsIDOMElement *aElement);
2813 nsresult ActivateNativeMenuItemAt(const nsAString *indexString);
2814 nsresult ForceUpdateNativeMenuAt(const nsAString *indexString);
2815 nsresult Focus(nsIDOMElement *aElement);
2816 nsresult GarbageCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls);
2817 nsresult CycleCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls);
2818 nsresult SendSimpleGestureEvent(const nsAString *aType, float aX, float aY, PRUint32 aDirection, double aDelta,
2819 PRInt32 aModifiers, PRUint32 aClickCount);
2820 nsresult ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMElement **_retval);
2821 nsresult NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize,
2822 bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMNodeList **_retval);
2823 nsresult CompareCanvases(nsIDOMHTMLCanvasElement *aCanvas1, nsIDOMHTMLCanvasElement *aCanvas2,
2824 PRUint32 *aMaxDifference, PRUint32 *_retval);
2825 nsresult GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending);
2826 nsresult SuppressEventHandling(bool aSuppress);
2827 nsresult ClearMozAfterPaintEvents();
2828 nsresult DisableNonTestMouseEvents(bool aDisable);
2829 nsresult GetScrollXY(bool aFlushLayout, PRInt32 *aScrollX, PRInt32 *aScrollY);
2830 nsresult GetRootBounds(nsIDOMClientRect **_retval);
2831 nsresult GetIMEIsOpen(bool *aIMEIsOpen);
2832 nsresult GetIMEStatus(PRUint32 *aIMEStatus);
2833 nsresult GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel);
2834 nsresult DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval);
2835 nsresult GetClassName(const /*JS::Value*/ void *aObject, JSContext *cx, char **_retval);
2836 nsresult SendContentCommandEvent(const nsAString *aType, nsITransferable *aTransferable);
2837 nsresult SendCompositionEvent(const nsAString *aType, const nsAString *aData, const nsAString *aLocale);
2838 nsresult SendTextEvent(const nsAString *aCompositionString, PRInt32 aFirstClauseLength, PRUint32 aFirstClauseAttr,
2839 PRInt32 aSecondClauseLength, PRUint32 aSecondClauseAttr, PRInt32 aThirdClauseLength, PRUint32 aThirdClauseAttr,
2840 PRInt32 aCaretStart, PRInt32 aCaretLength);
2841 nsresult SendQueryContentEvent(PRUint32 aType, PRUint32 aOffset, PRUint32 aLength, PRInt32 aX, PRInt32 aY,
2842 nsIQueryContentEventResult **_retval);
2843 nsresult SendSelectionSetEvent(PRUint32 aOffset, PRUint32 aLength, bool aReverse, bool *_retval);
2844 nsresult GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString *aPseudoElement,
2845 const nsAString *aPropertyName, nsAString *_retval);
2846 nsresult GetParent(const /*JS::Value*/ void *obj, JSContext *cx, /*JS::Value*/ void *_retval);
2847 nsresult GetOuterWindowID(PRUint64 *aOuterWindowID);
2848 nsresult GetCurrentInnerWindowID(PRUint64 *aCurrentInnerWindowID);
2849 nsresult EnterModalState();
2850 nsresult LeaveModalState();
2851 nsresult EnterModalStateWithWindow(nsIDOMWindow **_retval);
2852 nsresult LeaveModalStateWithWindow(nsIDOMWindow *aWindow);
2853 nsresult IsInModalState(bool *_retval);
2854 nsresult SuspendTimeouts();
2855 nsresult ResumeTimeouts();
2856 nsresult GoOnline();
2857 nsresult GetLayerManagerType(nsAString *aLayerManagerType);
2858 nsresult StartFrameTimeRecording();
2859 nsresult StopFrameTimeRecording(PRUint32 *frameCount, float **frameTime);
2860 nsresult GetDisplayDPI(float *aDisplayDPI);
2861 nsresult GetOuterWindowWithId(PRUint64 aOuterWindowID, nsIDOMWindow **_retval);
2862 nsresult RenderDocument(const void /*nsRect*/ *aRect, PRUint32 aFlags, int /*nscolor*/ aBackgroundColor,
2863 void /*gfxContext*/ *aThebesContext);
2864 nsresult AdvanceTimeAndRefresh(PRInt64 aMilliseconds);
2865 nsresult RestoreNormalRefresh();
2866 nsresult ComputeAnimationDistance(nsIDOMElement *element, const nsAString *property, const nsAString *value1,
2867 const nsAString *value2, double *_retval);
2868 nsresult WrapDOMFile(nsIFile *aFile, nsIDOMFile **_retval);
2869 nsresult GetFocusedInputType(char **aFocusedInputType);
2870 nsresult FindElementWithViewId(long /*nsViewID*/ aId, nsIDOMElement **_retval);
2871 nsresult LeafLayersPartitionWindow(bool *_retval);
2872 nsresult GetMayHaveTouchEventListeners(bool *aMayHaveTouchEventListeners);
2873 nsresult CheckAndClearPaintedState(nsIDOMElement *aElement, bool *_retval);
2874 nsresult GetFile(const nsAString *aName, const /*JS::Value*/ void *aBlobParts, const /*JS::Value*/ void *aParameters,
2875 JSContext* cx, PRUint8 _argc, nsIDOMFile **_retval);
2876 nsresult GetBlob(const /*JS::Value*/ void *aBlobParts, const /*JS::Value*/ void *aParameters, JSContext *cx,
2877 PRUint8 _argc, nsIDOMBlob * _retval);
2878 nsresult GetFileId(const /*JS::Value*/ void *aFile, JSContext *cx, PRInt64 *_retval);
2879 nsresult GetFileReferences(const nsAString *aDatabaseName, PRInt64 aId, PRInt32 *aRefCnt, PRInt32 *aDBRefCnt,
2880 PRInt32 *aSliceRefCnt, bool *_retval);
2881 nsresult IsIncrementalGCEnabled(JSContext *cx, bool *_retval);
2882 nsresult StartPCCountProfiling(JSContext *cx);
2883 nsresult StopPCCountProfiling(JSContext *cx);
2884 nsresult PurgePCCounts(JSContext *cx);
2885 nsresult GetPCCountScriptCount(JSContext *cx, PRInt32 *_retval);
2886 nsresult GetPCCountScriptSummary(PRInt32 script, JSContext *cx, nsAString *_retval);
2887 nsresult GetPCCountScriptContents(PRInt32 script, JSContext *cx, nsAString *_retval);
2888 nsresult GetPaintingSuppressed(bool *aPaintingSuppressed);
2889 nsresult GetPlugins(JSContext *cx, /*JS::Value*/ void *aPlugins);
2890 nsresult SetScrollPositionClampingScrollPortSize(float aWidth, float aHeight);
2891 nsresult SetIsApp(bool value);
2892 nsresult SetApp(const nsAString *manifestURL);
2893 nsresult GetApp(mozIDOMApplication **_retval);
2896 cpp_quote("#define CONTEXT_NONE 0x00")
2897 cpp_quote("#define CONTEXT_LINK 0x01")
2898 cpp_quote("#define CONTEXT_IMAGE 0x02")
2899 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2900 cpp_quote("#define CONTEXT_TEXT 0x08")
2901 cpp_quote("#define CONTEXT_INPUT 0x10")
2902 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2906 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2909 interface nsIContextMenuListener : nsISupports
2911 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2916 uuid(6e6f00c2-29d9-452c-b804-5abb2dc429f3),
2919 interface nsIDOMUIEvent : nsIDOMEvent
2921 nsresult GetView(nsIDOMWindow **aView);
2922 nsresult GetDetail(PRInt32 *aDetail);
2923 nsresult InitUIEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
2924 nsIDOMWindow *viewArg, PRInt32 detailArg);
2925 nsresult GetLayerX(PRInt32 *aLayerX);
2926 nsresult GetLayerY(PRInt32 *aLayerY);
2927 nsresult GetPageX(PRInt32 *aPageX);
2928 nsresult GetPageY(PRInt32 *aPageY);
2929 nsresult GetWhich(PRUint32 *aWhich);
2930 nsresult GetRangeParent(nsIDOMNode **aRangeParent);
2931 nsresult GetRangeOffset(PRInt32 *aRangeOffset);
2932 nsresult GetCancelBubble(bool *aCancelBubble);
2933 nsresult SetCancelBubble(bool aCancelBubble);
2934 nsresult GetIsChar(bool *aIsChar);
2939 uuid(6f4bc64b-1aac-4251-82d3-fd2dc76654a0),
2942 interface nsIDOMMouseEvent : nsIDOMUIEvent
2944 nsresult GetScreenX(PRInt32 *aScreenX);
2945 nsresult GetScreenY(PRInt32 *aScreenY);
2946 nsresult GetMozMovementX(PRInt32 *aMozMovementX);
2947 nsresult GetMozMovementY(PRInt32 *aMozMovementY);
2948 nsresult GetClientX(PRInt32 *aClientX);
2949 nsresult GetClientY(PRInt32 *aClientY);
2950 nsresult GetCtrlKey(bool *aCtrlKey);
2951 nsresult GetShiftKey(bool *aShiftKey);
2952 nsresult GetAltKey(bool *aAltKey);
2953 nsresult GetMetaKey(bool *aMetaKey);
2954 nsresult GetButton(PRUint16 *aButton);
2955 nsresult GetButtons(PRUint16 *aButtons);
2956 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2957 nsresult InitMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
2958 nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2959 PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg,
2960 bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg,
2961 nsIDOMEventTarget *relatedTargetArg);
2962 nsresult GetMozPressure(float *aMozPressure);
2963 nsresult GetMozInputSource(PRUint16 *aMozInputSource);
2964 nsresult InitNSMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
2965 nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2966 PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg,
2967 bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure,
2968 PRUint16 inputSourceArg);
2969 nsresult GetModifierState(const nsAString *keyArg, bool *_retval);
2974 uuid(c43c4852-5bb6-409f-82cd-4f5e842b7208),
2977 interface nsIDOMKeyEvent : nsIDOMUIEvent
2979 nsresult GetCharCode(PRUint32 *aCharCode);
2980 nsresult GetKeyCode(PRUint32 *aKeyCode);
2981 nsresult GetAltKey(bool *aAltKey);
2982 nsresult GetCtrlKey(bool *aCtrlKey);
2983 nsresult GetShiftKey(bool *aShiftKey);
2984 nsresult GetMetaKey(bool *aMetaKey);
2985 nsresult InitKeyEvent(const nsAString *typeArg, bool canBubbleArg,
2986 bool cancelableArg, nsIDOMWindow *viewArg, bool ctrlKeyArg,
2987 bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint32 keyCodeArg,
2988 PRUint32 charCodeArg);
2989 nsresult GetModifierState(const nsAString *keyArg, bool *_retval);
2990 nsresult GetLocation(PRUint32 *aLocation);
2995 uuid(0b976267-4aaa-4f36-a2d4-27b5ca8d73bb),
2998 interface nsIEmbeddingSiteWindow : nsISupports
3000 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
3001 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
3002 nsresult SetFocus();
3003 nsresult GetVisibility(bool *aVisibility);
3004 nsresult SetVisibility(bool aVisibility);
3005 nsresult GetTitle(PRUnichar **aTitle);
3006 nsresult SetTitle(const PRUnichar *aTitle);
3007 nsresult GetSiteWindow(void **aSiteWindow);
3013 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
3016 interface nsIComponentRegistrar : nsISupports
3018 nsresult AutoRegister(nsIFile *aSpec);
3019 nsresult AutoUnregister(nsIFile *aSpec);
3020 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
3021 const char *aContractID, nsIFactory *aFactory);
3022 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
3023 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
3024 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
3026 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
3027 nsresult IsCIDRegistered(const nsCID *aClass, bool *_retval);
3028 nsresult IsContractIDRegistered(const char *aContractID, bool *_retval);
3029 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
3030 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
3031 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
3032 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
3037 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
3040 interface nsIPromptService : nsISupports
3042 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3043 const PRUnichar *aText);
3044 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3045 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState);
3046 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3047 const PRUnichar *aText, bool *_retval);
3048 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3049 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState,
3051 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3052 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
3053 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
3054 const PRUnichar *aCheckMsg, bool *aCheckState, PRInt32 *_retval);
3055 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3056 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
3057 bool *aCheckState, bool *_retval);
3058 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3059 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
3060 const PRUnichar *aCheckMsg, bool *aCheckState, bool *_retval);
3061 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3062 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
3063 bool *aCheckState, bool *_retval);
3064 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3065 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
3066 PRInt32 *aOutSelection, bool *_retval);
3071 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
3074 interface nsITooltipTextProvider : nsISupports
3076 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, bool *_retval);
3081 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
3084 interface nsIProfile : nsISupports
3086 nsresult GetProfileCount(PRInt32 *aProfileCount);
3087 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
3088 nsresult ProfileExists(const PRUnichar *profileName, bool *_retval);
3089 nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
3090 nsresult SetCurrentProfile(const PRUnichar *aCurrentProfile);
3091 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
3092 nsresult CreateNewProfile(const PRUnichar *profileName,
3093 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
3094 bool useExistingDir);
3095 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
3096 nsresult DeleteProfile(const PRUnichar *name, bool canDeleteFiles);
3097 nsresult CloneProfile(const PRUnichar *profileName);
3102 uuid(24f3f4da-18a4-448d-876d-7360fefac029),
3105 interface nsIEditingSession : nsISupports
3107 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
3108 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
3109 bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive);
3110 nsresult WindowIsEditable(nsIDOMWindow *window, bool *_retval);
3111 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
3112 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
3113 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
3114 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
3115 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
3116 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
3117 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
3118 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
3119 nsresult GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled);
3124 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
3127 interface nsICommandParams : nsISupports
3129 nsresult GetValueType(const char *name, PRInt16 *_retval);
3130 nsresult GetBooleanValue(const char *name, bool *_retval);
3131 nsresult GetLongValue(const char *name, PRInt32 *_retval);
3132 nsresult GetDoubleValue(const char *name, double *_retval);
3133 nsresult GetStringValue(const char *name, nsAString *_retval);
3134 nsresult GetCStringValue(const char *name, char **_retval);
3135 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
3136 nsresult SetBooleanValue(const char *name, bool value);
3137 nsresult SetLongValue(const char *name, PRInt32 value);
3138 nsresult SetDoubleValue(const char *name, double value);
3139 nsresult SetStringValue(const char *name, const nsAString *value);
3140 nsresult SetCStringValue(const char *name, const char *value);
3141 nsresult SetISupportsValue(const char *name, nsISupports *value);
3142 nsresult RemoveValue(const char *name);
3143 nsresult HasMoreElements(bool *_retval);
3145 nsresult GetNext(char **_retval);
3150 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
3153 interface nsICommandManager : nsISupports
3155 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
3156 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
3157 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, bool *_retval);
3158 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, bool *_retval);
3159 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
3160 nsICommandParams *aCommandParams);
3161 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
3162 nsIDOMWindow *aTargetWindow);
3167 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
3170 interface nsIControllerContext : nsISupports
3172 nsresult Init(nsIControllerCommandTable *aCommandTable);
3173 nsresult SetCommandContext(nsISupports *aCommandContext);
3178 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
3181 interface nsIController : nsISupports
3183 nsresult IsCommandEnabled(const char *command, bool *_retval);
3184 nsresult SupportsCommand(const char *command, bool *_retval);
3185 nsresult DoCommand(const char *command);
3186 nsresult OnEvent(const char *eventName);
3191 uuid(98fb308d-c6dd-4c6d-b77c-91180cf06f23),
3194 interface nsIContent : nsISupports
3196 /* This is not a real interface declaration. It's too internal for us. */
3201 uuid(8c6a1e62-d5ad-4297-b941-6449222ec4f0),
3204 interface nsIDocument : nsISupports
3206 /* This is not a real interface declaration. It's too internal for us. */
3211 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
3214 interface nsIContentSerializer : nsISupports
3216 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char *aCharSet, bool aIsCopying,
3217 bool aIsWholeDocument);
3218 nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
3219 nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
3220 PRInt32 aEndOffset, nsAString *aStr);
3221 nsresult AppendProcessingInstruction(nsIContent *aPI, PRInt32 aStartOffset,
3222 PRInt32 aEndOffset, nsAString *aStr);
3223 nsresult AppendComment(nsIContent *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
3225 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
3226 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
3228 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
3229 nsresult Flush(nsAString *aStr);
3230 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
3235 uuid(7ad59e28-f3d5-4e14-8ea3-794ad4a86de3),
3238 interface nsIEditor : nsISupports
3240 typedef void *nsIContentPtr;
3242 nsresult GetSelection([out] nsISelection *_retval);
3243 nsresult Init([in] nsIDOMDocument *doc, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
3244 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] bool aSuppressTransaction);
3245 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] bool aSuppressTransaction);
3246 nsresult PostCreate();
3247 nsresult PreDestroy();
3248 nsresult GetFlags([out] PRUint32 *_retval);
3249 nsresult SetFlags([in] PRUint32 val);
3250 nsresult GetContentsMIMEType([out] char **_retval);
3251 nsresult SetContentsMIMEType([in] const char *val);
3252 nsresult GetIsDocumentEditable([out] bool *_retval);
3253 nsresult GetIsSelectionEditable(bool *aIsSelectionEditable);
3254 nsresult GetDocument([out] nsIDOMDocument **_retval);
3255 nsresult GetRootElement([out] nsIDOMElement **_retval);
3256 nsresult GetSelectionController([out] nsISelectionController **_retval);
3257 nsresult DeleteSelection(PRInt16 action, PRInt16 aStripWrappers);
3258 nsresult GetDocumentIsEmpty([out] bool *_retval);
3259 nsresult GetDocumentModified([out] bool *_retval);
3260 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
3261 nsresult SetDocumentCharacterSet([in] const nsACString *val);
3262 nsresult ResetModificationCount();
3263 nsresult GetModificationCount([out] PRInt32 *_retval);
3264 nsresult IncrementModificationCount([in] PRInt32 aModCount);
3265 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
3266 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
3267 nsresult DoTransaction([in] nsITransaction *txn);
3268 nsresult EnableUndo([in] bool enable);
3269 nsresult GetNumberOfUndoItems(PRInt32 *aNumberOfUndoItems);
3270 nsresult GetNumberOfRedoItems(PRInt32 *aNumberOfRedoItems);
3271 nsresult Undo([in] PRUint32 count);
3272 nsresult CanUndo([out] bool *isEnabled, [out] bool *canUndo);
3273 nsresult Redo([in] PRUint32 count);
3274 nsresult CanRedo([out] bool *isEnabled, [out] bool *canRedo);
3275 nsresult BeginTransaction();
3276 nsresult EndTransaction();
3277 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
3278 nsresult EndPlaceHolderTransaction();
3279 nsresult ShouldTxnSetSelection([out] bool *_retval);
3280 nsresult SetShouldTxnSetSelection([in] bool should);
3281 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
3282 nsresult SyncRealTimeSpell();
3283 nsresult SetSpellcheckUserOverride(bool enable);
3285 nsresult CanCut([out] bool *_retval);
3287 nsresult CanCopy([out] bool *_retval);
3288 nsresult Paste([in] PRInt32 aSelectionType);
3289 nsresult PasteTransferable(nsITransferable *aTransferable);
3290 nsresult CanPaste([in] PRInt32 aSelectionType, [out] bool *_retval);
3291 nsresult CanPasteTransferable(nsITransferable *aTransferable, bool *_retval);
3292 nsresult SelectAll();
3293 nsresult BeginningOfDocument();
3294 nsresult EndOfDocument();
3295 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
3296 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, bool *_retval);
3297 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
3298 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
3299 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
3300 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
3301 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
3302 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
3303 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
3304 nsresult DeleteNode([in] nsIDOMNode *child);
3305 bool OutputsMozDirty();
3306 nsresult MarkNodeDirty([in] nsIDOMNode *node);
3307 nsresult SwitchTextDirection();
3308 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
3309 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
3310 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
3311 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
3312 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
3313 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
3314 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
3315 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
3316 nsresult DumpContentTree();
3317 nsresult DebugDumpContent();
3318 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
3319 bool IsModifiableNode(nsIDOMNode *aNode);
3320 nsresult GetLastKeypressEventTrusted(bool *aLastKeypressEventTrusted);
3321 nsresult SetSuppressDispatchingInputEvent(bool aSuppressDispatchingInputEvent);
3326 uuid(833f30de-94c7-4630-a852-2300ef329d7b),
3329 interface nsIHTMLEditor : nsISupports
3331 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3332 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3333 nsresult RemoveAllDefaultProperties();
3334 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3335 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll);
3336 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll, [out] nsAString *_retval);
3337 nsresult RemoveAllInlineProperties();
3338 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
3339 nsresult IncreaseFontSize();
3340 nsresult DecreaseFontSize();
3341 nsresult NodeIsBlock([in] nsIDOMNode *node, bool *_retval);
3342 nsresult InsertHTML([in] nsAString *aInputString);
3343 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
3344 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
3345 nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] PRInt32 aDestinationOffset, [in] bool aDeleteSelection);
3346 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] bool aDeleteSelection);
3347 nsresult SetDocumentTitle([in] nsAString *aTitle);
3348 nsresult UpdateBaseURL();
3349 nsresult SelectElement([in] nsIDOMElement *aElement);
3350 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
3351 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
3352 nsresult GetParagraphState([out] bool *aMixed, [out] nsAString *_retval);
3353 nsresult GetFontFaceState([out] bool *aMixed, [out] nsAString *_retval);
3354 nsresult GetFontColorState([out] bool *aMixed, [out] nsAString *_retval);
3355 nsresult GetBackgroundColorState([out] bool *aMixed, [out] nsAString *_retval);
3356 nsresult GetHighlightColorState([out] bool *aMixed, [out] nsAString *_retval);
3357 nsresult GetListState([out] bool *aMixed, [out] bool *aOL, [out] bool *aUL, [out] bool *aDL);
3358 nsresult GetListItemState([out] bool *aMixed, [out] bool *aLI, [out] bool *aDT, [out] bool *aDD);
3359 nsresult GetAlignment([out] bool *aMixed, [out] PRInt16 *aAlign);
3360 nsresult GetIndentState([out] bool *aCanIndent, [out] bool *aCanOutdent);
3361 nsresult MakeOrChangeList([in] nsAString *aListType, [in] bool entireList, [in] nsAString *aBulletType);
3362 nsresult RemoveList([in] nsAString *aListType);
3363 nsresult Indent([in] nsAString *aIndent);
3364 nsresult Align([in] nsAString *aAlign);
3365 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
3366 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3367 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
3368 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
3369 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3370 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
3371 nsresult SetBackgroundColor([in] nsAString *aColor);
3372 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
3373 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
3374 nsresult GetIsCSSEnabled([out] bool *_retval);
3375 nsresult SetIsCSSEnabled([in] bool prb);
3376 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
3377 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
3378 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] bool aIsCreatedHidden, [out] nsIDOMElement **_retval);
3379 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
3380 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
3381 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] bool *_retval);
3382 nsresult GetReturnInParagraphCreatesNewParagraph([out] bool *_retval);
3383 nsresult SetReturnInParagraphCreatesNewParagraph([in] bool prb);
3384 nsresult BreakIsVisible(nsIDOMNode *aNode, bool *_retval);
3385 void /*Element*/ *GetActiveEditingHost();
3390 uuid(89ea9f32-18ec-413b-9e2c-ce9a4c851b1c),
3393 interface nsIDocShell : nsISupports
3395 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, bool firstParty);
3396 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
3397 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
3398 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
3399 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
3400 nsISHEntry *aSHEntry, bool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
3401 nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, bool aReplace, JSContext *cx);
3402 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
3403 nsresult PrepareForNewContentModel();
3404 nsresult SetCurrentURI(nsIURI *aURI);
3405 nsresult FirePageHideNotification(bool isUnload);
3406 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
3407 nsresult GetPresShell(nsIPresShell **aPresShell);
3408 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
3409 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
3410 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
3411 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
3412 nsresult GetAllowPlugins(bool *aAllowPlugins);
3413 nsresult SetAllowPlugins(bool aAllowPlugins);
3414 nsresult GetAllowJavascript(bool *aAllowJavascript);
3415 nsresult SetAllowJavascript(bool aAllowJavascript);
3416 nsresult GetDisableNoScript(bool *aDisableNoScript);
3417 nsresult SetDisableNoScript(bool aDisableNoScript);
3418 nsresult GetAllowMetaRedirects(bool *aAllowMetaRedirects);
3419 nsresult SetAllowMetaRedirects(bool aAllowMetaRedirects);
3420 nsresult GetAllowSubframes(bool *aAllowSubframes);
3421 nsresult SetAllowSubframes(bool aAllowSubframes);
3422 nsresult GetAllowImages(bool *aAllowImages);
3423 nsresult SetAllowImages(bool aAllowImages);
3424 nsresult GetAllowDNSPrefetch(bool *aAllowDNSPrefetch);
3425 nsresult SetAllowDNSPrefetch(bool aAllowDNSPrefetch);
3426 nsresult GetAllowWindowControl(bool *aAllowWindowControl);
3427 nsresult SetAllowWindowControl(bool aAllowWindowControl);
3428 nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
3429 nsresult GetAppType(PRUint32 *aAppType);
3430 nsresult SetAppType(PRUint32 aAppType);
3431 nsresult GetAllowAuth(bool *aAllowAuth);
3432 nsresult SetAllowAuth(bool aAllowAuth);
3433 nsresult GetZoom(float *aZoom);
3434 nsresult SetZoom(float aZoom);
3435 nsresult GetMarginWidth(PRInt32 *aMarginWidth);
3436 nsresult SetMarginWidth(PRInt32 aMarginWidth);
3437 nsresult GetMarginHeight(PRInt32 *aMarginHeight);
3438 nsresult SetMarginHeight(PRInt32 aMarginHeight);
3439 nsresult TabToTreeOwner(bool forward, bool *tookFocus);
3440 nsresult GetBusyFlags(PRUint32 *aBusyFlags);
3441 nsresult GetLoadType(PRUint32 *aLoadType);
3442 nsresult SetLoadType(PRUint32 aLoadType);
3443 nsresult IsBeingDestroyed(bool *_retval);
3444 nsresult GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler);
3445 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
3446 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
3447 nsresult GetShouldSaveLayoutState(bool *aShouldSaveLayoutState);
3448 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
3449 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
3450 nsresult SuspendRefreshURIs();
3451 nsresult ResumeRefreshURIs();
3452 nsresult BeginRestore(nsIContentViewer *viewer, bool top);
3453 nsresult FinishRestore();
3454 nsresult GetRestoringDocument(bool *aRestoringDocument);
3455 nsresult GetUseErrorPages(bool *aUseErrorPages);
3456 nsresult SetUseErrorPages(bool aUseErrorPages);
3457 nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
3458 nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
3459 nsresult HistoryPurged(PRInt32 numEntries);
3460 nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
3461 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
3462 bool create, nsIDOMStorage **_retval);
3463 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
3464 nsresult CloneSessionStoragesTo(nsIDocShell *docShell);
3465 nsresult ClearSessionStorages();
3466 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
3467 nsresult SetChildOffset(PRUint32 offset);
3468 nsresult GetIsInUnload(bool *aIsInUnload);
3469 nsresult GetChannelIsUnsafe(bool *aChannelIsUnsafe);
3470 void DetachEditorFromWindow();
3471 nsresult GetIsOffScreenBrowser(bool *aIsOffScreenBrowser);
3472 nsresult SetIsOffScreenBrowser(bool aIsOffScreenBrowser);
3473 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
3474 nsresult GetCanExecuteScripts(bool *aCanExecuteScripts);
3475 nsresult GetIsActive(bool *aIsActive);
3476 nsresult SetIsActive(bool aIsActive);
3477 nsresult GetHistoryID(PRUint64 *aHistoryID);
3478 nsresult GetIsAppTab(bool *aIsAppTab);
3479 nsresult SetIsAppTab(bool aIsAppTab);
3480 nsresult CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal);
3481 nsresult GetCharset(char **aCharset);
3482 nsresult SetCharset(const char * aCharset);
3483 nsresult GetForcedCharset(nsIAtom **aForcedCharset);
3484 nsresult SetForcedCharset(nsIAtom *aForcedCharset);
3485 nsresult GetParentCharset(nsIAtom **aParentCharset);
3486 nsresult SetParentCharset(nsIAtom *aParentCharset);
3487 nsresult GetParentCharsetSource(PRInt32 *aParentCharsetSource);
3488 nsresult SetParentCharsetSource(PRInt32 aParentCharsetSource);
3489 nsresult AddWeakPrivacyTransitionObserver(nsIPrivacyTransitionObserver *obs);
3490 nsresult GetIsBrowserFrame(bool *aIsBrowserFrame);
3491 nsresult SetIsBrowserFrame(bool aIsBrowserFrame);
3496 uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa),
3499 interface nsIMutationObserver : nsISupports
3501 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
3502 void /*CharacterDataChangeInfo*/ *aInfo);
3503 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
3504 void /*CharacterDataChangeInfo*/ *aInfo);
3505 void AttributeWillChange(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
3506 nsIAtom *aAttribute, PRInt32 aModType);
3507 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
3508 nsIAtom *aAttribute, PRInt32 aModType);
3509 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aFirstNewContent,
3510 PRInt32 aNewIndexInContainer);
3511 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
3512 PRInt32 aIndexInContainer);
3513 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
3514 PRInt32 aIndexInContainer, nsIContent *aPreviousSibling);
3515 void NodeWillBeDestroyed(const nsINode *aNode);
3516 void ParentChainChanged(nsIContent *aContent);
3521 uuid(2c4ad90a-740e-4212-ba3f-feacda4b929e),
3524 interface nsIParser : nsISupports
3526 typedef int nsDTDMode;
3527 typedef int eParserCommands;
3529 /* From nsParserBase: */
3530 bool IsParserEnabled();
3531 nsresult GetChannel(nsIChannel **aChannel);
3533 void SetContentSink(nsIContentSink *aSink);
3534 nsIContentSink *GetContentSink();
3535 void GetCommand(nsACString *aCommand);
3536 void SetCommand2(const char *aCommand);
3537 void SetCommand(eParserCommands aParserCommand);
3538 void SetDocumentCharset(const nsACString *aCharset, PRInt32 aSource);
3539 void GetDocumentCharset(nsACString *oCharset, PRInt32 *oSource);
3540 nsresult GetDTD(nsIDTD **aDTD);
3541 nsIStreamListener *GetStreamListener();
3542 nsresult ContinueInterruptedParsing();
3544 void UnblockParser();
3545 void ContinueInterruptedParsingAsync();
3547 nsresult Parse(nsIURI *aURL, nsIRequestObserver *aListener, void *aKey, nsDTDMode aMode);
3548 nsresult Terminate();
3549 nsresult ParseFragment(const nsAString *aSourceBuffer, void /*nsTArray<nsString>*/ *aTagStack);
3550 nsresult BuildModel();
3551 nsresult CancelParsingEvents();
3553 bool IsInsertionPointDefined();
3554 void BeginEvaluatingParserInsertedScript();
3555 void EndEvaluatingParserInsertedScript();
3556 void MarkAsNotScriptCreated(const char *aCommand);
3557 bool IsScriptCreated();
3562 uuid(900bc4bc-8b6c-4cba-82fa-568a80fffd3e),
3565 interface nsIDocumentObserver : nsIMutationObserver
3567 typedef PRUint32 nsUpdateType;
3573 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
3574 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
3575 void BeginLoad(nsIDocument *aDocument);
3576 void EndLoad(nsIDocument *aDocument);
3577 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent, nsEventStates *aStateMask);
3578 void DocumentStatesChanged(nsIDocument *aDocument, nsEventStates *aStateMask);
3579 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, bool aDocumentSheet);
3580 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, bool aDocumentSheet);
3581 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
3583 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
3584 nsIStyleRule *aNewStyleRule);
3585 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
3586 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
3587 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
3588 void AttemptToExecuteScript(nsIContent *aContent, nsIParser *aParser, bool *aBlock);
3593 uuid(c61eac14-5f7a-4481-965e-7eaa6effa85f),
3596 interface nsCycleCollectionISupports {}
3600 uuid(3682dd99-8560-44f4-9b8f-ccce9d7b96fb),
3603 interface nsIContentUtils : nsISupports
3605 bool IsSafeToRunScript();
3606 nsresult AddDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
3607 nsresult RemoveDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
3608 nsresult AddMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
3609 nsresult RemoveMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
3610 nsresult AddScriptRunner(nsIRunnable *aRunnable);
3611 JSContext *GetContextFromDocument(nsIDocument *aDocument);
3616 uuid(8f672000-bab9-4c60-aaaf-2673c4e2a4c6),
3619 interface nsIPluginInstance : nsISupports
3621 nsresult GetDOMElement(nsIDOMElement **aDOMElement);