mshtml: Get rid of PRUint8 type.
[wine.git] / dlls / mshtml / nsiface.idl
blobb6692fbd3b2eae46e78c3a2ab6e41506dad7ceb5
1 /*
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
20 * NOTE:
21 * This file is not a typical idl file. Interfaces in this file are XPCOM
22 * interfaces (NOT MSCOM!), but we generate the header file with WIDL
23 * compatible with XPCOM, usable in C code.
26 cpp_quote("#define GECKO_VERSION \"1.9\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
29 import "wtypes.idl";
31 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
32 cpp_quote("#undef GetForm")
33 cpp_quote("#undef SetPort")
34 cpp_quote("#endif")
36 typedef HRESULT nsresult;
37 typedef ULONG nsrefcnt;
39 typedef IID nsID;
40 typedef IID nsIID;
41 typedef nsIID nsCID;
42 typedef REFIID nsIIDRef;
43 typedef nsIIDRef nsCIDRef;
45 typedef WCHAR PRUnichar;
46 typedef ULONG PRUint32;
47 typedef WORD PRUint16;
48 typedef ULONGLONG PRUint64;
51 * Mozilla uses stdint.h types for its headers. Following defines make this IDL file
52 * more similar to original declarations. Note that it's only a widl trick, we can't
53 * use stdint.h types in C.
55 #define int16_t short
56 #define int32_t LONG
57 #define int64_t INT64
59 #define uint8_t UINT8
60 #define uint16_t PRUint16
61 #define uint32_t PRUint32
62 #define uint64_t PRUint64
64 typedef uint64_t DOMTimeStamp;
65 typedef uint32_t nsLoadFlags;
66 typedef int64_t PRTime;
68 /* Similar trick to stdint.h types for C++ bool type */
69 typedef unsigned char cpp_bool;
70 #define bool cpp_bool
72 typedef struct {
73 void *v;
74 void *d1;
75 uint32_t d2;
76 void *d3;
77 } nsCStringContainer;
79 typedef struct {
80 void *v;
81 void *d1;
82 uint32_t d2;
83 void *d3;
84 } nsStringContainer;
86 typedef nsCStringContainer nsACString;
87 typedef nsStringContainer nsAString;
89 interface nsIWebBrowserChrome;
90 interface nsILoadGroup;
91 interface nsIDOMNode;
92 interface nsIDOMDocument;
93 interface nsIDOMEvent;
94 interface nsIEditor;
95 interface nsISelectionController;
96 interface nsITransactionManager;
97 interface nsITransaction;
98 interface nsIInlineSpellChecker;
99 interface nsIOutputStream;
100 interface nsIEditorObserver;
101 interface nsIEditActionListener;
102 interface nsIDocumentStateListener;
103 interface nsIDOMCSSStyleSheet;
104 interface nsIDOMDocumentView;
105 interface nsIDOMWindow;
106 interface nsIDOMElement;
107 interface nsIDOMRange;
108 interface nsIDOMEventTarget;
109 interface nsISelection;
110 interface nsIDOMHTMLSelectElement;
111 interface nsIFile;
113 interface IMoniker;
116 object,
117 uuid(00000000-0000-0000-c000-000000000046),
118 local
120 interface nsISupports
122 nsresult QueryInterface(nsIIDRef riid, void **result);
123 nsrefcnt AddRef();
124 nsrefcnt Release();
127 /* Currently we don't need a full declaration of these interfaces */
128 typedef nsISupports nsISHistory;
129 typedef nsISupports nsIWidget;
130 typedef nsISupports nsIDOMBarProp;
131 typedef nsISupports nsIPrompt;
132 typedef nsISupports nsIAuthPrompt;
133 typedef nsISupports nsIDOMDocumentType;
134 typedef nsISupports nsIDOMDOMImplementation;
135 typedef nsISupports nsIDOMCDATASection;
136 typedef nsISupports nsIDOMProcessingInstruction;
137 typedef nsISupports nsIDOMEntityReference;
138 typedef nsISupports nsIWebProgressListener;
139 typedef nsISupports nsIDOMCSSValue;
140 typedef nsISupports nsIPrintSession;
141 typedef nsISupports nsIControllerCommandTable;
142 typedef nsISupports nsIPrincipal;
143 typedef nsISupports nsIAtom;
144 typedef nsISupports nsISupportsArray;
145 typedef nsISupports nsIContentFilter;
146 typedef nsISupports nsIDOMMediaList;
147 typedef nsISupports nsIDOMHTMLTableCaptionElement;
148 typedef nsISupports nsIDOMHTMLTableSectionElement;
149 typedef nsISupports nsIDOMClientRectList;
150 typedef nsISupports nsINode;
151 typedef nsISupports nsIStyleSheet;
152 typedef nsISupports nsIStyleRule;
153 typedef nsISupports nsIDOMUserDataHandler;
154 typedef nsISupports nsIDocShellLoadInfo;
155 typedef nsISupports nsISHEntry;
156 typedef nsISupports nsIPresShell;
157 typedef nsISupports nsIContentViewer;
158 typedef nsISupports nsIDocumentCharsetInfo;
159 typedef nsISupports nsILayoutHistoryState;
160 typedef nsISupports nsISecureBrowserUI;
161 typedef nsISupports nsIDOMStorage;
162 typedef nsISupports nsIDOMDOMTokenList;
163 typedef nsISupports nsITransferable;
164 typedef nsISupports nsIDOMFileList;
165 typedef nsISupports nsIDOMFile;
166 typedef nsISupports nsIControllers;
167 typedef nsISupports nsIDOMValidityState;
168 typedef nsISupports nsIPluginInstanceOwner;
169 typedef nsISupports nsIPluginStreamListener;
170 typedef nsISupports nsIContentSink;
171 typedef nsISupports nsIParserFilter;
172 typedef nsISupports nsIDTD;
173 typedef nsISupports nsIObserver;
174 typedef nsISupports nsIDOMNodeFilter;
175 typedef nsISupports nsIDOMNodeIterator;
176 typedef nsISupports nsIDOMTreeWalker;
177 typedef nsISupports nsIHttpUpgradeListener;
178 typedef nsISupports nsIDOMDOMStringMap;
179 typedef nsISupports nsIDOMDOMStringList;
180 typedef nsISupports nsIDOMOfflineResourceList;
181 typedef nsISupports nsIDOMHistory;
182 typedef nsISupports nsIDOMNavigator;
183 typedef nsISupports nsIDOMMediaQueryList;
184 typedef nsISupports nsIDOMScreen;
185 typedef nsISupports nsIDOMCrypto;
186 typedef nsISupports nsIDOMPkcs11;
187 typedef nsISupports nsIAnimationFrameListener;
188 typedef nsISupports nsIDOMMozURLProperty;
189 typedef nsISupports nsIDOMStorageList;
190 typedef nsISupports nsILocalFile;
191 typedef nsISupports nsIDOMHTMLMenuElement;
192 typedef nsISupports nsIDOMCaretPosition;
193 typedef nsISupports nsIFrameRequestCallback;
194 typedef nsISupports nsICycleCollectorListener;
195 typedef nsISupports nsIDOMHTMLCanvasElement;
196 typedef nsISupports nsIQueryContentEventResult;
197 typedef nsISupports nsIDOMBlob;
198 typedef nsISupports nsIPrivacyTransitionObserver;
199 typedef nsISupports nsIDOMHTMLPropertiesCollection;
200 typedef nsISupports mozIDOMApplication;
202 typedef void *JSContext;
203 typedef void *JSObject;
204 typedef uint64_t jsval;
207 object,
208 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
209 local
211 interface nsIServiceManager : nsISupports
213 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
214 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
215 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
216 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
220 object,
221 uuid(00000001-0000-0000-c000-000000000046),
222 local
224 interface nsIFactory : nsISupports
226 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
227 nsresult LockFactory(bool lock);
231 object,
232 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
233 local
235 interface nsIMemory : nsISupports
237 void *Alloc(/*size_t*/ int size);
238 void *Realloc(void *_ptr, /*size_t*/ int newSize);
239 void Free(void *_ptr);
240 nsresult HeapMinimize(bool immediate);
241 nsresult IsLowMemory(bool *_retval);
245 object,
246 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
247 local
249 interface nsIWeakReference : nsISupports
251 nsresult QueryReferent(const nsIID *riid, void **result);
255 object,
256 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
257 local
259 interface nsISupportsWeakReference : nsISupports
261 nsresult GetWeakReference(nsIWeakReference **_retval);
265 object,
266 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
267 local
269 interface nsIInterfaceRequestor : nsISupports
271 nsresult GetInterface(const nsIID *riid, void **result);
275 object,
276 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
277 local
279 interface nsIRunnable : nsISupports
281 nsresult Run();
285 object,
286 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
287 local
289 interface nsISimpleEnumerator : nsISupports
291 nsresult HasMoreElements(bool *_retval);
292 nsresult GetNext(nsISupports **_retval);
296 object,
297 uuid(81e4c2de-acac-4ad6-901a-b5fb1b851a0d),
298 local
300 interface nsIVariant : nsISupports
302 nsresult GetDataType(uint16_t *aDataType);
303 nsresult GetAsInt8(uint8_t *_retval);
304 nsresult GetAsInt16(int16_t *_retval);
305 nsresult GetAsInt32(int32_t *_retval);
306 nsresult GetAsInt64(int64_t *_retval);
307 nsresult GetAsUint8(uint8_t *_retval);
308 nsresult GetAsUint16(uint16_t *_retval);
309 nsresult GetAsUint32(uint32_t *_retval);
310 nsresult GetAsUint64(uint64_t *_retval);
311 nsresult GetAsFloat(float *_retval);
312 nsresult GetAsDouble(double *_retval);
313 nsresult GetAsBool(bool *_retval);
314 nsresult GetAsChar(char *_retval);
315 nsresult GetAsWChar(PRUnichar *_retval);
316 nsresult GetAsID(nsID *retval);
317 nsresult GetAsAString(nsAString *_retval);
318 nsresult GetAsDOMString(nsAString *_retval);
319 nsresult GetAsACString(nsACString *_retval);
320 nsresult GetAsAUTF8String(nsACString *_retval);
321 nsresult GetAsString(char * *_retval);
322 nsresult GetAsWString(PRUnichar * *_retval);
323 nsresult GetAsISupports(nsISupports * *_retval);
324 nsresult GetAsJSVal(long /*jsval*/ *_retval);
325 nsresult GetAsInterface(nsIID **iid, void **iface);
326 nsresult GetAsArray(uint16_t *type, nsIID *iid, uint32_t *count, void **ptr);
327 nsresult GetAsStringWithSize(uint32_t *size, char **str);
328 nsresult GetAsWStringWithSize(uint32_t *size, PRUnichar **str);
332 object,
333 uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a),
334 local
336 interface nsIWritableVariant : nsIVariant
338 nsresult GetWritable(bool *aWritable);
339 nsresult SetWritable(bool aWritable);
340 nsresult SetAsInt8(uint8_t aValue);
341 nsresult SetAsInt16(int16_t aValue);
342 nsresult SetAsInt32(int32_t aValue);
343 nsresult SetAsInt64(int64_t aValue);
344 nsresult SetAsUint8(uint8_t aValue);
345 nsresult SetAsUint16(uint16_t aValue);
346 nsresult SetAsUint32(uint32_t aValue);
347 nsresult SetAsUint64(uint64_t aValue);
348 nsresult SetAsFloat(float aValue);
349 nsresult SetAsDouble(double aValue);
350 nsresult SetAsBool(bool aValue);
351 nsresult SetAsChar(char aValue);
352 nsresult SetAsWChar(PRUnichar aValue);
353 nsresult SetAsID(const nsID *aValue);
354 nsresult SetAsAString(const nsAString *aValue);
355 nsresult SetAsDOMString(const nsAString *aValue);
356 nsresult SetAsACString(const nsACString *aValue);
357 nsresult SetAsAUTF8String(const nsACString *aValue);
358 nsresult SetAsString(const char * aValue);
359 nsresult SetAsWString(const PRUnichar * aValue);
360 nsresult SetAsISupports(nsISupports *aValue);
361 nsresult SetAsInterface(const nsIID *iid, void *iface);
362 nsresult SetAsArray(uint16_t type, const nsIID *iid, uint32_t count, void *ptr);
363 nsresult SetAsStringWithSize(uint32_t size, const char *str);
364 nsresult SetAsWStringWithSize(uint32_t size, const PRUnichar *str);
365 nsresult SetAsVoid();
366 nsresult SetAsEmpty();
367 nsresult SetAsEmptyArray();
368 nsresult SetFromVariant(nsIVariant *aValue);
372 object,
373 uuid(53cdbc97-c2d7-4e30-b2c3-45b2ee79db18),
374 local
376 interface nsIInputStream : nsISupports
378 nsresult Close();
379 nsresult Available(uint64_t *_retval);
380 nsresult Read(char *aBuf, uint32_t aCount, uint32_t *_retval);
381 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
382 void *aClosure, const char *aFromSegment, uint32_t aToOffset,
383 uint32_t aCount, uint32_t *aWriteCount),
384 void *aClosure, uint32_t aCount, uint32_t *_retval);
385 nsresult IsNonBlocking(bool *_retval);
389 object,
390 uuid(395fe045-7d18-4adb-a3fd-af98c8a1af11),
391 local
393 interface nsIURI : nsISupports
395 nsresult GetSpec(nsACString *aSpec);
396 nsresult SetSpec(const nsACString *aSpec);
397 nsresult GetPrePath(nsACString *aPrePath);
398 nsresult GetScheme(nsACString *aScheme);
399 nsresult SetScheme(const nsACString *aScheme);
400 nsresult GetUserPass(nsACString *aUserPass);
401 nsresult SetUserPass(const nsACString *aUserPass);
402 nsresult GetUsername(nsACString *aUsername);
403 nsresult SetUsername(const nsACString *aUsername);
404 nsresult GetPassword(nsACString *aPassword);
405 nsresult SetPassword(const nsACString *aPassword);
406 nsresult GetHostPort(nsACString *aHostPort);
407 nsresult SetHostPort(const nsACString *aHostPort);
408 nsresult GetHost(nsACString *aHost);
409 nsresult SetHost(const nsACString *aHost);
410 nsresult GetPort(int32_t *aPort);
411 nsresult SetPort(int32_t aPort);
412 nsresult GetPath(nsACString *aPath);
413 nsresult SetPath(const nsACString *aPath);
414 nsresult Equals(nsIURI *other, bool *_retval);
415 nsresult SchemeIs(const char *scheme, bool *_retval);
416 nsresult Clone(nsIURI **_retval);
417 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
418 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
419 nsresult GetAsciiHost(nsACString *aAsciiHost);
420 nsresult GetOriginCharset(nsACString *aOriginCharset);
421 nsresult GetRef(nsACString *aRef);
422 nsresult SetRef(const nsACString *aRef);
423 nsresult EqualsExceptRef(nsIURI *other, bool *_retval);
424 nsresult CloneIgnoringRef(nsIURI **_retval);
425 nsresult GetSpecIgnoringRef(nsACString *aSpecIgnoringRef);
426 nsresult GetHasRef(bool *aHasRef);
430 object,
431 uuid(1419aa16-f134-4154-9886-00c7c5147a13),
432 local
434 interface nsIURL : nsIURI
436 nsresult GetFilePath(nsACString *aFilePath);
437 nsresult SetFilePath(const nsACString *aFilePath);
438 nsresult GetQuery(nsACString *aQuery);
439 nsresult SetQuery(const nsACString *aQuery);
440 nsresult GetDirectory(nsACString *aDirectory);
441 nsresult SetDirectory(const nsACString *aDirectory);
442 nsresult GetFileName(nsACString *aFileName);
443 nsresult SetFileName(const nsACString *aFileName);
444 nsresult GetFileBaseName(nsACString *aFileBaseName);
445 nsresult SetFileBaseName(const nsACString *aFileBaseName);
446 nsresult GetFileExtension(nsACString *aFileExtension);
447 nsresult SetFileExtension(const nsACString *aFileExtension);
448 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
449 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
453 object,
454 uuid(7750029c-1b0a-414e-8359-a77f24a2a0a6),
455 local
457 interface nsIFileURL : nsIURL
459 nsresult GetFile(nsIFile **aFile);
460 nsresult SetFile(nsIFile *aFile);
464 object,
465 uuid(321578d0-03c1-4d95-8821-021ac612d18d),
466 local
468 interface nsIMutable : nsISupports
470 nsresult GetMutable(bool *aMutable);
471 nsresult SetMutable(bool aMutable);
475 object,
476 uuid(babd6cca-ebe7-4329-967c-d6b9e33caa81),
477 local
479 interface nsIStandardURL : nsIMutable
481 nsresult Init(uint32_t aUrlType, int32_t aDefaultPort, const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI);
485 object,
486 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
487 local
489 interface nsIRequest : nsISupports
491 nsresult GetName(nsACString *aName);
492 nsresult IsPending(bool *_retval);
493 nsresult GetStatus(nsresult *aStatus);
494 nsresult Cancel(nsresult aStatus);
495 nsresult Suspend();
496 nsresult Resume();
497 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
498 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
499 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
500 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
504 object,
505 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
506 local
508 interface nsIRequestObserver : nsISupports
510 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
511 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
515 object,
516 uuid(3b4c8a77-76ba-4610-b316-678c73a3b88c),
517 local
519 interface nsIStreamListener : nsIRequestObserver
521 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
522 nsIInputStream *aInputStream, uint64_t aOffset, uint32_t aCount);
526 object,
527 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
528 local
530 interface nsILoadGroup : nsIRequest
532 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
533 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
534 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
535 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
536 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
537 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
538 nsresult GetRequests(nsISimpleEnumerator **aRequests);
539 nsresult GetActiveCount(uint32_t *aActiveCount);
540 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
541 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
545 object,
546 uuid(98f3b51b-bb55-4276-a43c-db636f8d77e3),
547 local
549 interface nsIChannel : nsIRequest
551 nsresult GetOriginalURI(nsIURI **aOriginalURI);
552 nsresult SetOriginalURI(nsIURI *aOriginalURI);
553 nsresult GetURI(nsIURI **aURI);
554 nsresult GetOwner(nsISupports **aOwner);
555 nsresult SetOwner(nsISupports *aOwner);
556 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
557 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
558 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
559 nsresult GetContentType(nsACString *aContentType);
560 nsresult SetContentType(const nsACString *aContentType);
561 nsresult GetContentCharset(nsACString *aContentCharset);
562 nsresult SetContentCharset(const nsACString *aContentCharset);
563 nsresult GetContentLength(int32_t *aContentLength);
564 nsresult SetContentLength(int32_t aContentLength);
565 nsresult Open(nsIInputStream **_retval);
566 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
567 nsresult GetContentDisposition(uint32_t *aContentDisposition);
568 nsresult SetContentDisposition(uint32_t aContentDisposition);
569 nsresult GetContentDispositionFilename(nsAString *aContentDispositionFilename);
570 nsresult SetContentDispositionFilename(const nsAString *aContentDispositionFilename);
571 nsresult GetContentDispositionHeader(nsACString *aContentDispositionHeader);
575 object,
576 uuid(35412859-b9d9-423c-8866-2d4559fdd2be),
577 local
579 interface nsIHttpHeaderVisitor : nsISupports
581 nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
585 object,
586 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
587 local
589 interface nsIHttpChannel : nsIChannel
591 nsresult GetRequestMethod(nsACString *aRequestMethod);
592 nsresult SetRequestMethod(const nsACString *aRequestMethod);
593 nsresult GetReferrer(nsIURI **aReferrer);
594 nsresult SetReferrer(nsIURI *aReferrer);
595 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
596 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, bool aMerge);
597 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
598 nsresult GetAllowPipelining(bool *aAllowPipelining);
599 nsresult SetAllowPipelining(bool aAllowPipelining);
600 nsresult GetRedirectionLimit(uint32_t *aRedirectionLimit);
601 nsresult SetRedirectionLimit(uint32_t aRedirectionLimit);
602 nsresult GetResponseStatus(uint32_t *aResponseStatus);
603 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
604 nsresult GetRequestSucceeded(bool *aRequestSucceeded);
605 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
606 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, bool merge);
607 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
608 nsresult IsNoStoreResponse(bool *_retval);
609 nsresult IsNoCacheResponse(bool *_retval);
613 object,
614 uuid(9363fd96-af59-47e8-bddf-1d5e91acd336),
615 local
617 interface nsIHttpChannelInternal : nsISupports
619 nsresult GetDocumentURI(nsIURI **aDocumentURI);
620 nsresult SetDocumentURI(nsIURI *aDocumentURI);
621 nsresult GetRequestVersion(uint32_t *major, uint32_t *minor);
622 nsresult GetResponseVersion(uint32_t *major, uint32_t *minor);
623 nsresult SetCookie(const char *aCookieHeader);
624 nsresult SetupFallbackChannel(const char *aFallbackKey);
625 nsresult GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie);
626 nsresult SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie);
627 nsresult GetCanceled(bool *aCanceled);
628 nsresult GetChannelIsForDownload(bool *aChannelIsForDownload);
629 nsresult SetChannelIsForDownload(bool aChannelIsForDownload);
630 nsresult GetLocalAddress(nsACString *aLocalAddress);
631 nsresult GetLocalPort(int32_t *aLocalPort);
632 nsresult GetRemoteAddress(nsACString *aRemoteAddress);
633 nsresult GetRemotePort(int32_t *aRemotePort);
634 nsresult SetCacheKeysRedirectChain(void /*nsTArray<nsCString>*/ *cacheKeys);
635 nsresult HTTPUpgrade(const nsACString *aProtocolName, nsIHttpUpgradeListener *aListener);
636 nsresult GetAllowSpdy(bool *aAllowSpdy);
637 nsresult SetAllowSpdy(bool aAllowSpdy);
641 object,
642 uuid(5cfe15bd-5adb-4a7f-9e55-4f5a67d15794),
643 local
645 interface nsIUploadChannel : nsISupports
647 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
648 int64_t aContentLength);
649 nsresult GetUploadStream(nsIInputStream **aUploadStream);
653 object,
654 uuid(8d171460-a716-41f1-92be-8c659db39b45),
655 local
657 interface nsIAsyncVerifyRedirectCallback : nsISupports
659 nsresult OnRedirectVerifyCallback(nsresult result);
663 object,
664 uuid(a430d870-df77-4502-9570-d46a8de33154),
665 local
667 interface nsIChannelEventSink : nsISupports
669 cpp_quote("#define REDIRECT_TEMPORARY 1")
670 cpp_quote("#define REDIRECT_PERMANENT 2")
671 cpp_quote("#define REDIRECT_INTERNAL 4")
673 nsresult AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags,
674 nsIAsyncVerifyRedirectCallback *callback);
678 object,
679 uuid(a6cf906d-15b3-11d2-932e-00805f8add32),
680 local
682 interface nsIDOMLocation : nsISupports
684 nsresult GetHash(nsAString *aHash);
685 nsresult SetHash(const nsAString *aHash);
686 nsresult GetHost(nsAString *aHost);
687 nsresult SetHost(const nsAString *aHost);
688 nsresult GetHostname(nsAString *aHostname);
689 nsresult SetHostname(const nsAString *aHostname);
690 nsresult GetHref(nsAString *aHref);
691 nsresult SetHref(const nsAString *aHref);
692 nsresult GetPathname(nsAString *aPathname);
693 nsresult SetPathname(const nsAString *aPathname);
694 nsresult GetPort(nsAString *aPort);
695 nsresult SetPort(const nsAString *aPort);
696 nsresult GetProtocol(nsAString *aProtocol);
697 nsresult SetProtocol(const nsAString *aProtocol);
698 nsresult GetSearch(nsAString *aSearch);
699 nsresult SetSearch(const nsAString *aSearch);
700 nsresult Reload(bool forceget);
701 nsresult Replace(const nsAString *url);
702 nsresult Assign(const nsAString *url);
703 nsresult ToString(nsAString *_retval);
707 object,
708 uuid(2938307a-9d70-4b63-8afc-0197e82318ad),
709 local
711 interface nsIDOMCSSRule : nsISupports
713 nsresult GetType(uint16_t *aType);
714 nsresult GetCssText(nsAString *aCssText);
715 nsresult SetCssText(const nsAString *aCssText);
716 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
717 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
721 object,
722 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
723 local
725 interface nsIDOMCSSStyleDeclaration : nsISupports
727 nsresult GetCssText(nsAString *aCssText);
728 nsresult SetCssText(const nsAString *aCssText);
729 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
730 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
731 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
732 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
733 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
734 const nsAString *priority);
735 nsresult GetLength(uint32_t *aLength);
736 nsresult Item(uint32_t index, nsAString *_retval);
737 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
741 object,
742 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
743 local
745 interface nsIDOMCSSRuleList : nsISupports
747 nsresult GetLength(uint32_t *aLength);
748 nsresult Item(uint32_t index, nsIDOMCSSRule **_retval);
752 object,
753 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
754 local
756 interface nsIDOMStyleSheet : nsISupports
758 nsresult GetType(nsAString *aType);
759 nsresult GetDisabled(bool *aDisabled);
760 nsresult SetDisabled(bool aDisabled);
761 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
762 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
763 nsresult GetHref(nsAString *aHref);
764 nsresult GetTitle(nsAString *aTitle);
765 nsresult GetMedia(nsIDOMMediaList **aMedia);
769 object,
770 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
771 local
773 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
775 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
776 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
777 nsresult InsertRule(const nsAString *rule, uint32_t index, uint32_t *_retval);
778 nsresult DeleteRule(uint32_t index);
782 object,
783 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
784 local
786 interface nsIDOMStyleSheetList : nsISupports
788 nsresult GetLength(uint32_t *aLength);
789 nsresult Item(uint32_t index, nsIDOMStyleSheet **_retval);
793 object,
794 uuid(496852ba-e48d-4fa5-982e-e0dc1b475bf1),
795 local
797 interface nsIDOMNodeList : nsISupports
799 nsresult Item(uint32_t index, nsIDOMNode **_retval);
800 nsresult GetLength(uint32_t *aLength);
801 /* Followed by semi-internal API that we don't want to use */
805 object,
806 uuid(a6cf907b-15b3-11d2-932e-00805f8add32),
807 local
809 interface nsIDOMNamedNodeMap : nsISupports
811 nsresult GetNamedItem(const nsAString *name, nsIDOMNode **_retval);
812 nsresult SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval);
813 nsresult RemoveNamedItem(const nsAString *name, nsIDOMNode **_retval);
814 nsresult Item(uint32_t index, nsIDOMNode **_retval);
815 nsresult GetLength(uint32_t *aLength);
816 nsresult GetNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNode **_retval);
817 nsresult SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval);
818 nsresult RemoveNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNode **_retval);
822 object,
823 uuid(5e9bcec9-5928-4f77-8a9c-424ef01c20e1),
824 local
826 interface nsIDOMNode : nsISupports
828 enum NSNODETYPE {
829 ELEMENT_NODE = 1,
830 ATTRIBUTE_NODE = 2,
831 TEXT_NODE = 3,
832 CDATA_SELECTION_NODE = 4,
833 ENTITY_REFERENCE_NODE = 5,
834 ENTITY_NODE = 6,
835 PROCESSING_INSTRUCTION_NODE = 7,
836 COMMENT_NODE = 8,
837 DOCUMENT_NODE = 9,
838 DOCUMENT_TYPE_NODE = 10,
839 DOCUMENT_FRAGMENT_NODE = 11,
840 NOTATION_NODE = 12
843 enum {
844 DOCUMENT_POSITION_DISCONNECTED = 1,
845 DOCUMENT_POSITION_PRECEDING = 2,
846 DOCUMENT_POSITION_FOLLOWING = 4,
847 DOCUMENT_POSITION_CONTAINS = 8,
848 DOCUMENT_POSITION_CONTAINED_BY = 16,
849 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32
852 nsresult GetNodeName(nsAString *aNodeName);
853 nsresult GetNodeValue(nsAString *aNodeValue);
854 nsresult SetNodeValue(const nsAString *aNodeValue);
855 nsresult GetNodeType(uint16_t *aNodeType);
856 nsresult GetParentNode(nsIDOMNode **aParentNode);
857 nsresult GetParentElement(nsIDOMElement **aParentElement);
858 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
859 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
860 nsresult GetLastChild(nsIDOMNode **aLastChild);
861 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
862 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
863 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
864 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
865 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
866 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
867 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
868 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
869 nsresult HasChildNodes(bool *_retval);
870 nsresult CloneNode(bool deep, uint8_t _argc, nsIDOMNode **_retval);
871 nsresult Normalize();
872 nsresult IsSupported(const nsAString *feature, const nsAString *version, bool *_retval);
873 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
874 nsresult GetPrefix(nsAString *aPrefix);
875 nsresult GetLocalName(nsAString *aLocalName);
876 nsresult HasAttributes(bool *_retval);
877 nsresult GetDOMBaseURI(nsAString *aBaseURI);
878 nsresult CompareDocumentPosition(nsIDOMNode *other, uint16_t *_retval);
879 nsresult GetTextContent(nsAString *aTextContent);
880 nsresult SetTextContent(const nsAString *aTextContent);
881 nsresult LookupPrefix(const nsAString *namespaceURI, nsAString *_retval);
882 nsresult IsDefaultNamespace(const nsAString *namespaceURI, bool *_retval);
883 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString *_retval);
884 nsresult IsEqualNode(nsIDOMNode *arg, bool *_retval);
885 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
886 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
887 nsresult Contains(nsIDOMNode *aOther, bool *_retval);
889 nsresult GetMshtmlNode(nsISupports **aMshtmlNode);
890 nsresult SetMshtmlNode(nsISupports *aMshtmlNode);
894 object,
895 uuid(03da4bc9-1b9a-41dc-a1a4-32414d48d704),
896 local
898 interface nsIDOMAttr : nsIDOMNode
900 nsresult GetName(nsAString *aName);
901 nsresult GetSpecified(bool *aSpecified);
902 nsresult GetValue(nsAString *aValue);
903 nsresult SetValue(const nsAString *aValue);
904 nsresult GetOwnerElement(nsIDOMElement **aOwnerElement);
905 nsresult GetIsId(bool *aIsId);
909 object,
910 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
911 local
913 interface nsIDOMClientRect : nsISupports
915 nsresult GetLeft(float *aLeft);
916 nsresult GetTop(float *aTop);
917 nsresult GetRight(float *aRight);
918 nsresult GetBottom(float *aBottom);
919 nsresult GetWidth(float *aWidth);
920 nsresult GetHeight(float *aHeight);
924 object,
925 uuid(69d44ce2-b544-49a8-bb5f-87804b971ee4),
926 local
928 interface nsIDOMElement : nsIDOMNode
930 nsresult GetTagName(nsAString *aTagName);
931 nsresult GetClassList(nsIDOMDOMTokenList **aClassList);
932 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
933 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName, nsAString *_retval);
934 nsresult SetAttribute(const nsAString *name, const nsAString *value);
935 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, const nsAString *value);
936 nsresult RemoveAttribute(const nsAString *name);
937 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
938 nsresult HasAttribute(const nsAString *name, bool *_retval);
939 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName, bool *_retval);
940 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
941 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
942 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
943 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMAttr **_retval);
944 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
945 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
946 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNodeList **_retval);
947 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
948 nsresult GetChildElements(nsIDOMNodeList **aChildren);
949 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
950 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
951 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
952 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
953 nsresult GetChildElementCount(uint32_t *aChildElementCount);
954 nsresult GetOnmouseenter(JSContext *cx, jsval *aOnmouseenter);
955 nsresult SetOnmouseenter(JSContext *cx, const jsval *aOnmouseenter);
956 nsresult GetOnmouseleave(JSContext *cx, jsval *aOnmouseleave);
957 nsresult SetOnmouseleave(JSContext *cx, const jsval *aOnmouseleave);
958 nsresult GetClientRects(nsIDOMClientRectList **_retval);
959 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
960 nsresult GetScrollTop(int32_t *aScrollTop);
961 nsresult SetScrollTop(int32_t aScrollTop);
962 nsresult GetScrollLeft(int32_t *aScrollLeft);
963 nsresult SetScrollLeft(int32_t aScrollLeft);
964 nsresult GetScrollWidth(int32_t *aScrollWidth);
965 nsresult GetScrollHeight(int32_t *aScrollHeight);
966 nsresult GetClientTop(int32_t *aClientTop);
967 nsresult GetClientLeft(int32_t *aClientLeft);
968 nsresult GetClientWidth(int32_t *aClientWidth);
969 nsresult GetClientHeight(int32_t *aClientHeight);
970 nsresult GetScrollLeftMax(int32_t *aScrollLeftMax);
971 nsresult GetScrollTopMax(int32_t *aScrollTopMax);
972 nsresult MozMatchesSelector(const nsAString *selector, bool *_retval);
973 nsresult SetCapture(bool retargetToElement);
974 nsresult ReleaseCapture();
975 nsresult MozRequestFullScreen();
976 nsresult MozRequestPointerLock();
980 object,
981 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
982 local
984 interface nsIDOMElementCSSInlineStyle : nsISupports
986 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
989 cpp_quote("#undef GetClassName")
992 object,
993 uuid(9a677a5b-e6f7-4e2e-9ef9-22c2ac9967b3),
994 local
996 interface nsIDOMHTMLElement : nsIDOMElement
998 nsresult GetId(nsAString *aId);
999 nsresult SetId(const nsAString *aId);
1000 nsresult GetTitle(nsAString *aTitle);
1001 nsresult SetTitle(const nsAString *aTitle);
1002 nsresult GetLang(nsAString *aLang);
1003 nsresult SetLang(const nsAString *aLang);
1004 nsresult GetDir(nsAString *aDir);
1005 nsresult SetDir(const nsAString *aDir);
1006 nsresult GetClassName(nsAString *aClassName);
1007 nsresult SetClassName(const nsAString *aClassName);
1008 nsresult GetDataset(nsIDOMDOMStringMap **aDataset);
1009 nsresult GetItemScope(bool *aItemScope);
1010 nsresult SetItemScope(bool aItemScope);
1011 nsresult GetItemType(nsIVariant **aItemType);
1012 nsresult SetItemType(nsIVariant *aItemType);
1013 nsresult GetItemId(nsAString *aItemId);
1014 nsresult SetItemId(const nsAString *aItemId);
1015 nsresult GetProperties(nsIDOMHTMLPropertiesCollection **aProperties);
1016 nsresult GetItemValue(nsIVariant **aItemValue);
1017 nsresult SetItemValue(nsIVariant *aItemValue);
1018 nsresult GetItemProp(nsIVariant **aItemProp);
1019 nsresult SetItemProp(nsIVariant *aItemProp);
1020 nsresult GetItemRef(nsIVariant **aItemRef);
1021 nsresult SetItemRef(nsIVariant *aItemRef);
1022 nsresult GetHidden(bool *aHidden);
1023 nsresult SetHidden(bool aHidden);
1024 nsresult Click();
1025 nsresult GetTabIndex(int32_t *aTabIndex);
1026 nsresult SetTabIndex(int32_t aTabIndex);
1027 nsresult Focus();
1028 nsresult Blur();
1029 nsresult GetAccessKey(nsAString *aAccessKey);
1030 nsresult SetAccessKey(const nsAString *aAccessKey);
1031 nsresult GetAccessKeyLabel(nsAString *aAccessKeyLabel);
1032 nsresult GetDraggable(bool *aDraggable);
1033 nsresult SetDraggable(bool aDraggable);
1034 nsresult GetContentEditable(nsAString *aContentEditable);
1035 nsresult SetContentEditable(const nsAString *aContentEditable);
1036 nsresult GetIsContentEditable(bool *aIsContentEditable);
1037 nsresult GetContextMenu(nsIDOMHTMLMenuElement **aContextMenu);
1038 nsresult GetSpellcheck(bool *aSpellcheck);
1039 nsresult SetSpellcheck(bool aSpellcheck);
1040 nsresult GetInnerHTML(nsAString *aInnerHTML);
1041 nsresult SetInnerHTML(const nsAString *aInnerHTML);
1042 nsresult GetOuterHTML(nsAString *aInnerHTML);
1043 nsresult SetOuterHTML(const nsAString *aInnerHTML);
1044 nsresult InsertAdjacentHTML(const nsAString *position, const nsAString *text);
1045 nsresult ScrollIntoView(bool top, uint8_t _argc);
1046 nsresult GetOffsetParent(nsIDOMElement * *aOffsetParent);
1047 nsresult GetOffsetTop(int32_t *aOffsetTop);
1048 nsresult GetOffsetLeft(int32_t *aOffsetLeft);
1049 nsresult GetOffsetWidth(int32_t *aOffsetWidth);
1050 nsresult GetOffsetHeight(int32_t *aOffsetHeight);
1054 object,
1055 uuid(8b38545f-7fa5-47d5-a902-c8ea8e78fb0d),
1056 local
1058 interface nsIDOMHTMLHeadElement : nsIDOMHTMLElement
1064 object,
1065 uuid(db690d8f-3bca-4198-be64-78adb7f38bf8),
1066 local
1068 interface nsIDOMHTMLCollection : nsISupports
1070 nsresult GetLength(uint32_t *aLength);
1071 nsresult Item(uint32_t index, nsIDOMNode **_retval);
1072 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1073 /* Followed by semi-internal API that we don't want to use */
1077 object,
1078 uuid(cb75c251-afc7-444f-b2d6-b9635555f3ed),
1079 local
1081 interface nsIDOMCharacterData : nsIDOMNode
1083 nsresult GetData(nsAString *aData);
1084 nsresult SetData(const nsAString *aData);
1085 nsresult GetLength(uint32_t *aLength);
1086 nsresult SubstringData(uint32_t offset, uint32_t count, nsAString *_retval);
1087 nsresult AppendData(const nsAString *arg);
1088 nsresult InsertData(uint32_t offset, const nsAString *arg);
1089 nsresult DeleteData(uint32_t offset, uint32_t count);
1090 nsresult ReplaceData(uint32_t offset, uint32_t count, const nsAString *arg);
1094 object,
1095 uuid(437ed60c-febd-4bd0-892f-cf358adc3c96),
1096 local
1098 interface nsIDOMText : nsIDOMCharacterData
1100 nsresult SplitText(uint32_t offset, nsIDOMText **_retval);
1101 nsresult GetWholeText(nsAString *aWholeText);
1105 object,
1106 uuid(cea49a35-dac9-4c4d-9830-4660abb3b6bc),
1107 local
1109 interface nsIDOMComment : nsIDOMCharacterData
1114 object,
1115 uuid(4a15eb0c-d5bc-4902-9d50-21b12cab47e7),
1116 local
1118 interface nsIDOMDocumentFragment : nsIDOMNode
1123 object,
1124 uuid(b7e90442-74d6-494e-af01-906d95926dec),
1125 local
1127 interface nsIDOMDocument : nsIDOMNode
1129 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
1130 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
1131 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
1132 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
1133 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
1134 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
1135 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
1136 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
1137 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data, nsIDOMProcessingInstruction **_retval);
1138 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
1139 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
1140 nsresult ImportNode(nsIDOMNode *importedNode, bool deep, uint8_t _argc, nsIDOMNode **_retval);
1141 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMElement **_retval);
1142 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMAttr **_retval);
1143 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNodeList **_retval);
1144 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
1145 nsresult GetInputEncoding(nsAString *aInputEncoding);
1146 nsresult GetDocumentURI(nsAString *aDocumentURI);
1147 nsresult AdoptNode(nsIDOMNode *source, nsIDOMNode **_retval);
1148 nsresult CreateRange(nsIDOMRange **_retval);
1149 nsresult CreateNodeIterator(nsIDOMNode *root, uint32_t whatToShow, nsIDOMNodeFilter *filter, uint8_t _argc,
1150 nsIDOMNodeIterator **_retval);
1151 nsresult CreateTreeWalker(nsIDOMNode *root, uint32_t whatToShow, nsIDOMNodeFilter *filter, uint8_t _argc,
1152 nsIDOMTreeWalker **_retval);
1153 cpp_quote("#undef CreateEvent")
1154 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1155 nsresult GetDefaultView(nsIDOMWindow **aDefaultView);
1156 nsresult GetCharacterSet(nsAString *aCharacterSet);
1157 nsresult GetDir(nsAString *aDir);
1158 nsresult SetDir(const nsAString *aDir);
1159 nsresult GetLocation(nsIDOMLocation **aLocation);
1160 nsresult GetTitle(nsAString *aTitle);
1161 nsresult SetTitle(const nsAString *aTitle);
1162 nsresult GetReadyState(nsAString *aReadyState);
1163 nsresult GetLastModified(nsAString *aLastModified);
1164 nsresult GetReferrer(nsAString *aReferrer);
1165 nsresult HasFocus(bool *_retval);
1166 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
1167 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
1168 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1169 nsresult GetPreferredStyleSheetSet(nsAString *aPreferredStyleSheetSet);
1170 nsresult GetSelectedStyleSheetSet(nsAString *aSelectedStyleSheetSet);
1171 nsresult SetSelectedStyleSheetSet(const nsAString *aSelectedStyleSheetSet);
1172 nsresult GetLastStyleSheetSet(nsAString *aLastStyleSheetSet);
1173 nsresult GetStyleSheetSets(nsIDOMDOMStringList **aStyleSheetSets);
1174 nsresult EnableStyleSheetsForSet(const nsAString *name);
1175 nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
1176 nsresult GetContentType(nsAString *aContentType);
1177 nsresult GetMozSyntheticDocument(bool *aMozSyntheticDocument);
1178 nsresult GetCurrentScript(nsIDOMElement **aCurrentScript);
1179 nsresult ReleaseCapture();
1180 nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
1181 nsresult GetMozFullScreenElement(nsIDOMElement **aMozFullScreenElement);
1182 nsresult MozCancelFullScreen();
1183 nsresult GetMozFullScreen(bool *aMozFullScreen);
1184 nsresult GetMozFullScreenEnabled(bool *aMozFullScreenEnabled);
1185 nsresult GetMozPointerLockElement(nsIDOMElement **aMozPointerLockElement);
1186 nsresult MozExitPointerLock();
1187 nsresult GetOnreadystatechange(JSContext* cx, jsval aOnreadystatechange);
1188 nsresult SetOnreadystatechange(JSContext* cx, const jsval *aOnreadystatechange);
1189 nsresult GetOnmouseenter(JSContext* cx, jsval *aOnmouseenter);
1190 nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter);
1191 nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave) = 0;
1192 nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave);
1193 nsresult GetHidden(bool *aHidden);
1194 nsresult GetMozHidden(bool *aMozHidden);
1195 nsresult GetVisibilityState(nsAString *aVisibilityState);
1196 nsresult GetMozVisibilityState(nsAString *aMozVisibilityState);
1200 object,
1201 uuid(ecae54c6-2ab9-4167-b0ef-61960aadbb68),
1202 local
1204 interface nsIDOMHTMLDocument : nsIDOMDocument
1206 nsresult GetURL(nsAString *aURL);
1207 nsresult GetDomain(nsAString *aDomain);
1208 nsresult SetDomain(const nsAString *aDomain);
1209 nsresult GetCookie(nsAString *aCookie);
1210 nsresult SetCookie(const nsAString *aCookie);
1211 nsresult GetCompatMode(nsAString *aCompatMode);
1212 nsresult GetHead(nsIDOMHTMLHeadElement **aHead);
1213 nsresult GetBody(nsIDOMHTMLElement **aBody);
1214 nsresult SetBody(nsIDOMHTMLElement *aBody);
1215 nsresult GetImages(nsIDOMHTMLCollection **aImages);
1216 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1217 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1218 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
1219 nsresult GetForms(nsIDOMHTMLCollection **aForms);
1220 nsresult GetScripts(nsIDOMHTMLCollection **aScripts);
1221 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
1222 nsresult GetItems(const nsAString *types, nsIDOMNodeList **_retval);
1223 nsresult Open(const nsAString *aContentTypeOrUrl, const nsAString *aReplaceOrName, const nsAString *aFeatures,
1224 JSContext *cx, uint8_t _argc, nsISupports **_retval);
1225 nsresult Close();
1226 nsresult Write(const nsAString *text, JSContext *cx);
1227 nsresult Writeln(const nsAString *text, JSContext *cx);
1228 nsresult GetDesignMode(nsAString *aDesignMode);
1229 nsresult SetDesignMode(const nsAString *aDesignMode);
1230 nsresult ExecCommand(const nsAString *commandID, bool doShowUI, const nsAString *value, bool *_retval);
1231 nsresult QueryCommandEnabled(const nsAString *commandID, bool *_retval);
1232 nsresult QueryCommandIndeterm(const nsAString *commandID, bool *_retval);
1233 nsresult QueryCommandState(const nsAString *commandID, bool *_retval);
1234 nsresult QueryCommandSupported(const nsAString *commandID, bool *_retval);
1235 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1236 nsresult GetFgColor(nsAString *aFgColor);
1237 nsresult SetFgColor(const nsAString *aFgColor);
1238 nsresult GetBgColor(nsAString *aBgColor);
1239 nsresult SetBgColor(const nsAString *aBgColor);
1240 nsresult GetLinkColor(nsAString *aLinkColor);
1241 nsresult SetLinkColor(const nsAString *aLinkColor);
1242 nsresult GetVlinkColor(nsAString *aVlinkColor);
1243 nsresult SetVlinkColor(const nsAString *aVlinkColor);
1244 nsresult GetAlinkColor(nsAString *aAlinkColor);
1245 nsresult SetAlinkColor(const nsAString *aAlinkColor);
1246 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
1247 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
1248 nsresult Clear();
1249 nsresult GetSelection(nsISelection **_retval);
1250 nsresult CaptureEvents(int32_t eventFlags);
1251 nsresult ReleaseEvents(int32_t eventFlags);
1252 nsresult RouteEvent(nsIDOMEvent *evt);
1256 object,
1257 uuid(1f94055c-42e7-4a30-96a1-6a804f1c2d1e),
1258 local
1260 interface nsIDOMRange : nsISupports
1262 enum {
1263 NS_START_TO_START,
1264 NS_START_TO_END,
1265 NS_END_TO_END,
1266 NS_END_TO_START
1269 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1270 nsresult GetStartOffset(int32_t *aStartOffset);
1271 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1272 nsresult GetEndOffset(int32_t *aEndOffset);
1273 nsresult GetCollapsed(bool *aCollapsed);
1274 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1275 nsresult SetStart(nsIDOMNode *refNode, int32_t offset);
1276 nsresult SetEnd(nsIDOMNode *refNode, int32_t offset);
1277 nsresult SetStartBefore(nsIDOMNode *refNode);
1278 nsresult SetStartAfter(nsIDOMNode *refNode);
1279 nsresult SetEndBefore(nsIDOMNode *refNode);
1280 nsresult SetEndAfter(nsIDOMNode *refNode);
1281 nsresult Collapse(bool toStart);
1282 nsresult SelectNode(nsIDOMNode *refNode);
1283 nsresult SelectNodeContents(nsIDOMNode *refNode);
1284 nsresult CompareBoundaryPoints(uint16_t how, nsIDOMRange *sourceRange, int16_t *_retval);
1285 nsresult DeleteContents();
1286 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1287 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1288 nsresult InsertNode(nsIDOMNode *newNode);
1289 nsresult SurroundContents(nsIDOMNode *newParent);
1290 nsresult CloneRange(nsIDOMRange **_retval);
1291 nsresult ToString(nsAString *_retval);
1292 nsresult Detach();
1293 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1294 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] int32_t offset, [out] bool *_retval);
1295 nsresult ComparePoint([in] nsIDOMNode *parent, [in] int32_t offset, [out] int16_t *_retval);
1296 nsresult IntersectsNode(nsIDOMNode *node, bool *_retval);
1297 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1298 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1302 object,
1303 uuid(12cf5a4d-fffb-4f2f-9cec-c65195661d76),
1304 local
1306 interface nsISelection : nsISupports
1308 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1309 nsresult GetAnchorOffset(int32_t *aAnchorOffset);
1310 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1311 nsresult GetFocusOffset(int32_t *aFocusOffset);
1312 nsresult GetIsCollapsed(bool *aIsCollapsed);
1313 bool /* don't use */ Collapsed();
1314 nsresult GetRangeCount(int32_t *aRangeCount);
1315 nsresult GetRangeAt(int32_t index, nsIDOMRange **_retval);
1316 nsresult Collapse(nsIDOMNode *parentNode, int32_t offset);
1317 nsresult CollapseNative(nsINode *parentNode, int32_t offset);
1318 nsresult Extend(nsIDOMNode *parentNode, int32_t offset);
1319 nsresult ExtendNative(nsINode *parentNode, int32_t offset);
1320 nsresult CollapseToStart();
1321 nsresult CollapseToEnd();
1322 nsresult ContainsNode(nsIDOMNode *node, bool entirelyContained, bool *_retval);
1323 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1324 nsresult AddRange(nsIDOMRange *range);
1325 nsresult RemoveRange(nsIDOMRange *range);
1326 nsresult RemoveAllRanges();
1327 nsresult DeleteFromDocument();
1328 nsresult SelectionLanguageChange(bool langRTL);
1329 nsresult ToString(nsAString *_retval);
1330 nsresult Modify(const nsAString *alter, const nsAString *direction, const nsAString *granularity);
1334 object,
1335 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1336 local
1338 interface nsIDOMWindowCollection : nsISupports
1340 nsresult GetLength(uint32_t *aLength);
1341 nsresult Item(uint32_t index, nsIDOMWindow **_retval);
1342 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1346 object,
1347 uuid(7afa38e6-45a1-4f0b-ae84-997669d14059),
1348 local
1350 interface nsIDOMWindow : nsISupports
1352 nsresult GetWindow(nsIDOMWindow **aWindow);
1353 nsresult GetSelf(nsIDOMWindow **aSelf);
1354 nsresult GetDocument(nsIDOMDocument **aDocument);
1355 nsresult GetName(nsAString *aName);
1356 nsresult SetName(const nsAString *aName);
1357 nsresult GetLocation(nsIDOMLocation **aLocation);
1358 nsresult GetHistory(nsIDOMHistory **aHistory);
1359 nsresult GetLocationbar(nsIDOMBarProp **aLocationbar);
1360 nsresult GetMenubar(nsIDOMBarProp **aMenubar);
1361 nsresult GetPersonalbar(nsIDOMBarProp **aPersonalbar);
1362 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1363 nsresult GetStatusbar(nsIDOMBarProp **aStatusbar);
1364 nsresult GetToolbar(nsIDOMBarProp **aToolbar);
1365 nsresult GetStatus(nsAString *aStatus);
1366 nsresult SetStatus(const nsAString *aStatus);
1367 nsresult Close();
1368 nsresult Stop();
1369 nsresult Focus();
1370 nsresult Blur();
1371 nsresult GetLength(uint32_t *aLength);
1372 nsresult GetScriptableTop(nsIDOMWindow **aTop);
1373 nsresult GetRealTop(nsIDOMWindow **aTop);
1374 nsresult GetScriptableParent(nsIDOMWindow **aParent);
1375 nsresult GetRealParent(nsIDOMWindow **aParent);
1376 nsresult GetOpener(nsIDOMWindow **aOpener);
1377 nsresult SetOpener(nsIDOMWindow *aOpener);
1378 nsresult GetScriptableFrameElement(nsIDOMElement **aFrameElement);
1379 nsresult GetRealFrameElement(nsIDOMElement **aFrameElement);
1380 nsresult GetNavigator(nsIDOMNavigator **aNavigator);
1381 nsresult GetApplicationCache(nsIDOMOfflineResourceList **aApplicationCache);
1382 nsresult Alert(const nsAString *text);
1383 nsresult Confirm(const nsAString *text, bool *_retval);
1384 nsresult Prompt(const nsAString *aMessage, const nsAString *aInitial, nsAString *_retval);
1385 nsresult Print();
1386 nsresult ShowModalDialog(const nsAString *aURI, nsIVariant *aArgs, const nsAString *aOptions, nsIVariant **_retval);
1387 nsresult PostMessageMoz(const long /*jsval*/ *message, const nsAString *targetOrigin, JSContext *cx);
1388 nsresult Atob(const nsAString *aAsciiString, nsAString *_retval);
1389 nsresult Btoa(const nsAString *aBase64Data, nsAString *_retval);
1390 nsresult GetSessionStorage(nsIDOMStorage **aSessionStorage);
1391 nsresult GetLocalStorage(nsIDOMStorage **aLocalStorage);
1392 nsresult GetSelection(nsISelection **_retval);
1393 nsresult MatchMedia(const nsAString *media_query_list, nsIDOMMediaQueryList **_retval);
1394 nsresult GetScreen(nsIDOMScreen **aScreen);
1395 nsresult GetInnerWidth(int32_t *aInnerWidth);
1396 nsresult SetInnerWidth(int32_t aInnerWidth);
1397 nsresult GetInnerHeight(int32_t *aInnerHeight);
1398 nsresult SetInnerHeight(int32_t aInnerHeight);
1399 nsresult GetScrollX(int32_t *aScrollX);
1400 nsresult GetPageXOffset(int32_t *aPageXOffset);
1401 nsresult GetScrollY(int32_t *aScrollY);
1402 nsresult GetPageYOffset(int32_t *aPageYOffset);
1403 nsresult Scroll(int32_t xScroll, int32_t yScroll);
1404 nsresult ScrollTo(int32_t xScroll, int32_t yScroll);
1405 nsresult ScrollBy(int32_t xScrollDif, int32_t yScrollDif);
1406 nsresult GetScreenX(int32_t *aScreenX);
1407 nsresult SetScreenX(int32_t aScreenX);
1408 nsresult GetScreenY(int32_t *aScreenY);
1409 nsresult SetScreenY(int32_t aScreenY);
1410 nsresult GetOuterWidth(int32_t *aOuterWidth);
1411 nsresult SetOuterWidth(int32_t aOuterWidth);
1412 nsresult GetOuterHeight(int32_t *aOuterHeight);
1413 nsresult SetOuterHeight(int32_t aOuterHeight);
1414 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
1415 nsresult GetWindowRoot(nsIDOMEventTarget **aWindowRoot);
1416 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1417 nsresult GetTextZoom(float *aTextZoom);
1418 nsresult SetTextZoom(float aTextZoom);
1419 nsresult ScrollByLines(int32_t numLines);
1420 nsresult ScrollByPages(int32_t numPages);
1421 nsresult SizeToContent();
1422 nsresult GetContent(nsIDOMWindow **aContent);
1423 nsresult GetPrompter(nsIPrompt **aPrompter);
1424 nsresult GetClosed(bool *aClosed);
1425 nsresult GetCrypto(nsIDOMCrypto **aCrypto);
1426 nsresult GetPkcs11(nsIDOMPkcs11 **aPkcs11);
1427 nsresult GetControllers(nsIControllers **aControllers);
1428 nsresult GetDefaultStatus(nsAString *aDefaultStatus);
1429 nsresult SetDefaultStatus(const nsAString *aDefaultStatus);
1430 nsresult GetMozInnerScreenX(float *aMozInnerScreenX);
1431 nsresult GetMozInnerScreenY(float *aMozInnerScreenY);
1432 nsresult GetDevicePixelRatio(float *aDevicePixelRatio);
1433 nsresult GetScrollMaxX(int32_t *aScrollMaxX);
1434 nsresult GetScrollMaxY(int32_t *aScrollMaxY);
1435 nsresult GetFullScreen(bool *aFullScreen);
1436 nsresult SetFullScreen(bool aFullScreen);
1437 nsresult Back();
1438 nsresult Forward();
1439 nsresult Home();
1440 nsresult MoveTo(int32_t xPos, int32_t yPos);
1441 nsresult MoveBy(int32_t xDif, int32_t yDif);
1442 nsresult ResizeTo(int32_t width, int32_t height);
1443 nsresult ResizeBy(int32_t widthDif, int32_t heightDif);
1444 nsresult Open(const nsAString *url, const nsAString *name, const nsAString *options, nsIDOMWindow **_retval);
1445 nsresult OpenDialog(const nsAString *url, const nsAString *name, const nsAString *options, nsISupports *aExtraArgument,
1446 nsIDOMWindow **_retval);
1447 nsresult UpdateCommands(const nsAString *action);
1448 nsresult Find(const nsAString *str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord,
1449 bool searchInFrames, bool showDialog, bool *_retval);
1450 nsresult GetMozPaintCount(uint64_t *aMozPaintCount);
1451 nsresult MozRequestAnimationFrame(nsIFrameRequestCallback *aCallback, int32_t *_retval);
1452 nsresult MozCancelAnimationFrame(int32_t aHandle);
1453 nsresult MozCancelRequestAnimationFrame(int32_t aHandle);
1454 nsresult GetMozAnimationStartTime(int64_t *aMozAnimationStartTime);
1455 nsresult GetURL(nsIDOMMozURLProperty **aURL);
1456 nsresult GetOnafterprint(JSContext *cx, jsval *aOnafterprint);
1457 nsresult SetOnafterprint(JSContext *cx, const jsval *aOnafterprint);
1458 nsresult GetOnbeforeprint(JSContext *cx, jsval *aOnbeforeprint);
1459 nsresult SetOnbeforeprint(JSContext *cx, const jsval *aOnbeforeprint);
1460 nsresult GetOnbeforeunload(JSContext *cx, jsval *aOnbeforeunload);
1461 nsresult SetOnbeforeunload(JSContext *cx, const jsval *aOnbeforeunload);
1462 nsresult GetOnhashchange(JSContext *cx, jsval *aOnhashchange);
1463 nsresult SetOnhashchange(JSContext *cx, const jsval *aOnhashchange);
1464 nsresult GetOnmessage(JSContext *cx, jsval *aOnmessage);
1465 nsresult SetOnmessage(JSContext *cx, const jsval *aOnmessage);
1466 nsresult GetOnoffline(JSContext *cx, jsval *aOnoffline);
1467 nsresult SetOnoffline(JSContext *cx, const jsval *aOnoffline);
1468 nsresult GetOnonline(JSContext *cx, jsval *aOnonline);
1469 nsresult SetOnonline(JSContext *cx, const jsval *aOnonline);
1470 nsresult GetOnpopstate(JSContext *cx, jsval *aOnpopstate);
1471 nsresult SetOnpopstate(JSContext *cx, const jsval *aOnpopstate);
1472 nsresult GetOnpagehide(JSContext *cx, jsval *aOnpagehide);
1473 nsresult SetOnpagehide(JSContext *cx, const jsval *aOnpagehide);
1474 nsresult GetOnpageshow(JSContext *cx, jsval *aOnpageshow);
1475 nsresult SetOnpageshow(JSContext *cx, const jsval *aOnpageshow);
1476 nsresult GetOnresize(JSContext *cx, jsval *aOnresize);
1477 nsresult SetOnresize(JSContext *cx, const jsval *aOnresize);
1478 nsresult GetOnunload(JSContext *cx, jsval *aOnunload);
1479 nsresult SetOnunload(JSContext *cx, const jsval *aOnunload);
1480 nsresult GetOndevicemotion(JSContext *cx, jsval *aOndevicemotion);
1481 nsresult SetOndevicemotion(JSContext *cx, const jsval *aOndevicemotion);
1482 nsresult GetOndeviceorientation(JSContext *cx, jsval *aOndeviceorientation);
1483 nsresult SetOndeviceorientation(JSContext *cx, const jsval *aOndeviceorientation);
1484 nsresult GetOndeviceproximity(JSContext* cx, jsval *aOndeviceproximity);
1485 nsresult SetOndeviceproximity(JSContext* cx, const jsval *aOndeviceproximity);
1486 nsresult GetOnuserproximity(JSContext* cx, jsval *aOndeviceproximity);
1487 nsresult SetOnuserproximity(JSContext* cx, const jsval *aOndeviceproximity);
1488 nsresult GetOndevicelight(JSContext* cx, jsval *aOndevicelight);
1489 nsresult SetOndevicelight(JSContext* cx, const jsval *aOndevicelight);
1490 nsresult GetOnmouseenter(JSContext* cx, jsval *aOnmouseenter);
1491 nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter);
1492 nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave);
1493 nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave);
1497 object,
1498 uuid(d8f00c8b-d317-4df2-a9bf-4a1e6f19f945),
1499 local
1501 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1503 nsresult GetALink(nsAString *aALink);
1504 nsresult SetALink(const nsAString *aALink);
1505 nsresult GetBackground(nsAString *aBackground);
1506 nsresult SetBackground(const nsAString *aBackground);
1507 nsresult GetBgColor(nsAString *aBgColor);
1508 nsresult SetBgColor(const nsAString *aBgColor);
1509 nsresult GetLink(nsAString *aLink);
1510 nsresult SetLink(const nsAString *aLink);
1511 nsresult GetText(nsAString *aText);
1512 nsresult SetText(const nsAString *aText);
1513 nsresult GetVLink(nsAString *aVLink);
1514 nsresult SetVLink(const nsAString *aVLink);
1515 nsresult GetOnafterprint(JSContext *cx, jsval *aOnafterprint);
1516 nsresult SetOnafterprint(JSContext *cx, const jsval *aOnafterprint);
1517 nsresult GetOnbeforeprint(JSContext *cx, jsval *aOnbeforeprint);
1518 nsresult SetOnbeforeprint(JSContext *cx, const jsval *aOnbeforeprint);
1519 nsresult GetOnbeforeunload(JSContext *cx, jsval *aOnbeforeunload);
1520 nsresult SetOnbeforeunload(JSContext *cx, const jsval *aOnbeforeunload);
1521 nsresult GetOnhashchange(JSContext *cx, jsval *aOnhashchange);
1522 nsresult SetOnhashchange(JSContext *cx, const jsval *aOnhashchange);
1523 nsresult GetOnmessage(JSContext *cx, jsval *aOnmessage);
1524 nsresult SetOnmessage(JSContext *cx, const jsval *aOnmessage);
1525 nsresult GetOnoffline(JSContext *cx, jsval *aOnoffline);
1526 nsresult SetOnoffline(JSContext *cx, const jsval *aOnoffline);
1527 nsresult GetOnonline(JSContext *cx, jsval *aOnonline);
1528 nsresult SetOnonline(JSContext *cx, const jsval *aOnonline);
1529 nsresult GetOnpagehide(JSContext *cx, jsval *aOnpagehide);
1530 nsresult SetOnpagehide(JSContext *cx, const jsval *aOnpagehide);
1531 nsresult GetOnpageshow(JSContext *cx, jsval *aOnpageshow);
1532 nsresult SetOnpageshow(JSContext *cx, const jsval *aOnpageshow);
1533 nsresult GetOnpopstate(JSContext *cx, jsval *aOnpopstate);
1534 nsresult SetOnpopstate(JSContext *cx, const jsval *aOnpopstate);
1535 nsresult GetOnresize(JSContext *cx, jsval *aOnresize);
1536 nsresult SetOnresize(JSContext *cx, const jsval *aOnresize);
1537 nsresult GetOnunload(JSContext *cx, jsval *aOnunload);
1538 nsresult SetOnunload(JSContext *cx, const jsval *aOnunload);
1542 object,
1543 uuid(59c0dc07-d784-410b-8b5e-c26baf7cb8a6),
1544 local
1546 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1548 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1549 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1550 nsresult GetAction(nsAString *aAction);
1551 nsresult SetAction(const nsAString *aAction);
1552 nsresult GetAutocomplete(nsAString *aAutocomplete);
1553 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1554 nsresult GetEnctype(nsAString *aEnctype);
1555 nsresult SetEnctype(const nsAString *aEnctype);
1556 nsresult GetEncoding(nsAString *aEncoding);
1557 nsresult SetEncoding(const nsAString *aEncoding);
1558 nsresult GetMethod(nsAString *aMethod);
1559 nsresult SetMethod(const nsAString *aMethod);
1560 nsresult GetName(nsAString *aName);
1561 nsresult SetName(const nsAString *aName);
1562 nsresult GetNoValidate(bool *aNoValidate);
1563 nsresult SetNoValidate(bool aNoValidate);
1564 nsresult GetTarget(nsAString *aTarget);
1565 nsresult SetTarget(const nsAString *aTarget);
1566 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1567 nsresult GetLength(int32_t *aLength);
1568 nsresult Submit();
1569 nsresult Reset();
1570 nsresult CheckValidity(bool *_retval);
1574 object,
1575 uuid(e59a4df5-0904-414d-9203-9af2790698ea),
1576 local
1578 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1580 nsresult GetAccept(nsAString *aAccept);
1581 nsresult SetAccept(const nsAString *aAccept);
1582 nsresult GetAlt(nsAString *aAlt);
1583 nsresult SetAlt(const nsAString *aAlt);
1584 nsresult GetAutocomplete(nsAString *aAutocomplete);
1585 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1586 nsresult GetAutofocus(bool *aAutofocus);
1587 nsresult SetAutofocus(bool aAutofocus);
1588 nsresult GetDefaultChecked(bool *aDefaultChecked);
1589 nsresult SetDefaultChecked(bool aDefaultChecked);
1590 nsresult GetChecked(bool *aChecked);
1591 nsresult SetChecked(bool aChecked);
1592 nsresult GetDisabled(bool *aDisabled);
1593 nsresult SetDisabled(bool aDisabled);
1594 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1595 nsresult GetFormAction(nsAString *aFormAction);
1596 nsresult SetFormAction(const nsAString *aFormAction);
1597 nsresult GetFormEnctype(nsAString *aFormEnctype);
1598 nsresult SetFormEnctype(const nsAString *aFormEnctype);
1599 nsresult GetFormMethod(nsAString *aFormMethod);
1600 nsresult SetFormMethod(const nsAString *aFormMethod);
1601 nsresult GetFormNoValidate(bool *aFormNoValidate);
1602 nsresult SetFormNoValidate(bool aFormNoValidate);
1603 nsresult GetFormTarget(nsAString *aFormTarget);
1604 nsresult SetFormTarget(const nsAString *aFormTarget);
1605 nsresult GetFiles(nsIDOMFileList **aFiles);
1606 nsresult GetHeight(uint32_t *aHeight);
1607 nsresult SetHeight(uint32_t aHeight);
1608 nsresult GetIndeterminate(bool *aIndeterminate);
1609 nsresult SetIndeterminate(bool aIndeterminate);
1610 nsresult GetList(nsIDOMHTMLElement **aList);
1611 nsresult GetMax(nsAString *aMax);
1612 nsresult SetMax(const nsAString *aMax);
1613 nsresult GetMaxLength(int32_t *aMaxLength);
1614 nsresult SetMaxLength(int32_t aMaxLength);
1615 nsresult GetMin(nsAString *aMin);
1616 nsresult SetMin(const nsAString *aMin);
1617 nsresult GetMultiple(bool *aMultiple);
1618 nsresult SetMultiple(bool aMultiple);
1619 nsresult GetName(nsAString *aName);
1620 nsresult SetName(const nsAString *aName);
1621 nsresult GetPattern(nsAString *aPattern);
1622 nsresult SetPattern(const nsAString *aPattern);
1623 nsresult GetPlaceholder(nsAString *aPlaceholder);
1624 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1625 nsresult GetReadOnly(bool *aReadOnly);
1626 nsresult SetReadOnly(bool aReadOnly);
1627 nsresult GetRequired(bool *aRequired);
1628 nsresult SetRequired(bool aRequired);
1629 nsresult GetStep(nsAString *aStep);
1630 nsresult SetStep(const nsAString *aStep);
1631 nsresult GetAlign(nsAString *aAlign);
1632 nsresult SetAlign(const nsAString *aAlign);
1633 nsresult GetSize(uint32_t *aSize);
1634 nsresult SetSize(uint32_t aSize);
1635 nsresult GetWidth(uint32_t *aWidth);
1636 nsresult SetWidth(uint32_t aWidth);
1637 nsresult GetSrc(nsAString *aSrc);
1638 nsresult SetSrc(const nsAString *aSrc);
1639 nsresult GetType(nsAString *aType);
1640 nsresult SetType(const nsAString *aType);
1641 nsresult GetDefaultValue(nsAString *aDefaultValue);
1642 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1643 nsresult GetValue(nsAString *aValue);
1644 nsresult SetValue(const nsAString *aValue);
1645 nsresult GetValueAsNumber(double *aValueAsNumber);
1646 nsresult SetValueAsNumber(double aValueAsNumber);
1647 nsresult StepDown(int32_t n, uint8_t _argc);
1648 nsresult StepUp(int32_t n, uint8_t _argc);
1649 nsresult GetWillValidate(bool *aWillValidate);
1650 nsresult GetValidity(nsIDOMValidityState **aValidity);
1651 nsresult GetValidationMessage(nsAString *aValidationMessage);
1652 nsresult CheckValidity(bool *_retval);
1653 nsresult SetCustomValidity(const nsAString *error);
1654 nsresult Select();
1655 nsresult GetSelectionStart(int32_t *aSelectionStart);
1656 nsresult SetSelectionStart(int32_t aSelectionStart);
1657 nsresult GetSelectionEnd(int32_t *aSelectionEnd);
1658 nsresult SetSelectionEnd(int32_t aSelectionEnd);
1659 nsresult SetSelectionRange(int32_t selectionStart, int32_t selectionEnd, const nsAString *direction);
1660 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1661 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1662 nsresult GetUseMap(nsAString *aUseMap);
1663 nsresult SetUseMap(const nsAString *aUseMap);
1664 nsresult GetControllers(nsIControllers **aControllers);
1665 nsresult GetTextLength(int32_t *aTextLength);
1666 nsresult MozGetFileNameArray(uint32_t *aLength, PRUnichar ***aFileNames);
1667 nsresult MozSetFileNameArray(const PRUnichar **aFileNames, uint32_t aLength);
1668 nsresult MozIsTextField(bool aExcludePassword, bool *_retval);
1672 object,
1673 uuid(68a5d794-39bf-4b00-aefe-754b9e8f7ec6),
1674 local
1676 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1678 nsresult GetDisabled(bool *aDisabled);
1679 nsresult SetDisabled(bool aDisabled);
1680 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1681 nsresult GetLabel(nsAString *aLabel);
1682 nsresult SetLabel(const nsAString *aLabel);
1683 nsresult GetDefaultSelected(bool *aDefaultSelected);
1684 nsresult SetDefaultSelected(bool aDefaultSelected);
1685 nsresult GetSelected(bool *aSelected);
1686 nsresult SetSelected(bool aSelected);
1687 nsresult GetValue(nsAString *aValue);
1688 nsresult SetValue(const nsAString *aValue);
1689 nsresult GetText(nsAString *aText);
1690 nsresult SetText(const nsAString *aText);
1691 nsresult GetIndex(int32_t *aIndex);
1695 object,
1696 uuid(429b041b-06df-486c-9a3a-a1d901cc76a2),
1697 local
1699 interface nsIDOMHTMLOptionsCollection : nsISupports
1701 typedef int nsWrapperCache;
1703 nsresult GetLength(uint32_t *aLength);
1704 nsresult SetLength(uint32_t aLength);
1705 nsresult Item(uint32_t index, nsIDOMNode **_retval);
1706 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1707 nsISupports* __cdecl GetNamedItem(const nsAString *name, nsWrapperCache **cache);
1708 nsresult GetSelectedIndex(int32_t *aSelectedIndex);
1709 nsresult SetSelectedIndex(int32_t aSelectedIndex);
1710 nsresult SetOption(uint32_t index, nsIDOMHTMLOptionElement *option);
1711 nsresult GetSelect(nsIDOMHTMLSelectElement **aSelect);
1712 nsresult Add(nsIDOMHTMLOptionElement *option, nsIVariant *before);
1713 nsresult Remove(int32_t index);
1717 object,
1718 uuid(e85194cf-56e6-44a6-92d9-0096c9d2536e),
1719 local
1721 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1723 nsresult GetAutofocus(bool *aAutofocus);
1724 nsresult SetAutofocus(bool aAutofocus);
1725 nsresult GetDisabled(bool *aDisabled);
1726 nsresult SetDisabled(bool aDisabled);
1727 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1728 nsresult GetMultiple(bool *aMultiple);
1729 nsresult SetMultiple(bool aMultiple);
1730 nsresult GetName(nsAString *aName);
1731 nsresult SetName(const nsAString *aName);
1732 nsresult GetSize(uint32_t *aSize);
1733 nsresult SetSize(uint32_t aSize);
1734 nsresult GetType(nsAString *aType);
1735 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1736 nsresult GetLength(uint32_t *aLength);
1737 nsresult SetLength(uint32_t aLength);
1738 nsresult Item(uint32_t index, nsIDOMNode **_retval);
1739 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1740 nsresult Add(nsIDOMHTMLElement *element, nsIVariant *before);
1741 nsresult Remove(int32_t index);
1742 nsresult GetSelectedIndex(int32_t *aSelectedIndex);
1743 nsresult SetSelectedIndex(int32_t aSelectedIndex);
1744 nsresult GetValue(nsAString *aValue);
1745 nsresult SetValue(const nsAString *aValue);
1746 nsresult GetWillValidate(bool *aWillValidate);
1747 nsresult GetValidity(nsIDOMValidityState **aValidity);
1748 nsresult GetValidationMessage(nsAString *aValidationMessage);
1749 nsresult CheckValidity(bool *_retval);
1750 nsresult SetCustomValidity(const nsAString *error);
1751 nsresult GetRequired(bool *aRequired);
1752 nsresult SetRequired(bool aRequired);
1756 object,
1757 uuid(2a395065-2d92-48c1-ac00-643de9ca681b),
1758 local
1760 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1762 nsresult GetAutofocus(bool *aAutofocus);
1763 nsresult SetAutofocus(bool aAutofocus);
1764 nsresult GetCols(uint32_t *aCols);
1765 nsresult SetCols(uint32_t aCols);
1766 nsresult GetDisabled(bool *aDisabled);
1767 nsresult SetDisabled(bool aDisabled);
1768 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1769 nsresult GetMaxLength(int32_t *aMaxLength);
1770 nsresult SetMaxLength(int32_t aMaxLength);
1771 nsresult GetName(nsAString *aName);
1772 nsresult SetName(const nsAString *aName);
1773 nsresult GetPlaceholder(nsAString *aPlaceholder);
1774 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1775 nsresult GetReadOnly(bool *aReadOnly);
1776 nsresult SetReadOnly(bool aReadOnly);
1777 nsresult GetRequired(bool *aRequired);
1778 nsresult SetRequired(bool aRequired);
1779 nsresult GetRows(uint32_t *aRows);
1780 nsresult SetRows(uint32_t aRows);
1781 nsresult GetWrap(nsAString *aWrap);
1782 nsresult SetWrap(const nsAString *aWrap);
1783 nsresult GetType(nsAString *aType);
1784 nsresult GetDefaultValue(nsAString *aDefaultValue);
1785 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1786 nsresult GetValue(nsAString *aValue);
1787 nsresult SetValue(const nsAString *aValue);
1788 nsresult GetTextLength(int32_t *aTextLength);
1789 nsresult GetWillValidate(bool *aWillValidate);
1790 nsresult GetValidity(nsIDOMValidityState **aValidity);
1791 nsresult GetValidationMessage(nsAString *aValidationMessage);
1792 nsresult CheckValidity(bool *_retval);
1793 nsresult SetCustomValidity(const nsAString *error);
1794 nsresult Select();
1795 nsresult GetSelectionStart(int32_t *aSelectionStart);
1796 nsresult SetSelectionStart(int32_t aSelectionStart);
1797 nsresult GetSelectionEnd(int32_t *aSelectionEnd);
1798 nsresult SetSelectionEnd(int32_t aSelectionEnd);
1799 nsresult SetSelectionRange(int32_t selectionStart, int32_t selectionEnd, const nsAString *direction);
1800 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1801 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1802 nsresult GetControllers(nsIControllers **aControllers);
1806 object,
1807 uuid(e2f548f6-9955-4820-a9e6-3a9fd43c7111),
1808 local
1810 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1812 nsresult GetSrc(nsAString *aSrc);
1813 nsresult SetSrc(const nsAString *aSrc);
1814 nsresult GetAsync(bool *aAsync);
1815 nsresult SetAsync(bool aAsync);
1816 nsresult GetDefer(bool *aDefer);
1817 nsresult SetDefer(bool aDefer);
1818 nsresult GetType(nsAString *aType);
1819 nsresult SetType(const nsAString *aType);
1820 nsresult GetCharset(nsAString *aCharset);
1821 nsresult SetCharset(const nsAString *aCharset);
1822 nsresult GetText(nsAString *aText);
1823 nsresult SetText(const nsAString *aText);
1824 nsresult GetHtmlFor(nsAString *aHtmlFor);
1825 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1826 nsresult GetEvent(nsAString *aEvent);
1827 nsresult SetEvent(const nsAString *aEvent);
1828 nsresult GetCrossOrigin(nsAString *aCrossOrigin);
1829 nsresult SetCrossOrigin(const nsAString *aCrossOrigin);
1833 object,
1834 uuid(76cf0381-19fd-442d-bb18-c794fd8b5c25),
1835 local
1837 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1839 nsresult GetAlt(nsAString *aAlt);
1840 nsresult SetAlt(const nsAString *aAlt);
1841 nsresult GetSrc(nsAString *aSrc);
1842 nsresult SetSrc(const nsAString *aSrc);
1843 nsresult GetCrossOrigin(nsAString *aCrossOrigin);
1844 nsresult SetCrossOrigin(const nsAString *aCrossOrigin);
1845 nsresult GetUseMap(nsAString *aUseMap);
1846 nsresult SetUseMap(const nsAString *aUseMap);
1847 nsresult GetIsMap(bool *aIsMap);
1848 nsresult SetIsMap(bool aIsMap);
1849 nsresult GetWidth(uint32_t *aWidth);
1850 nsresult SetWidth(uint32_t aWidth);
1851 nsresult GetHeight(uint32_t *aHeight);
1852 nsresult SetHeight(uint32_t aHeight);
1853 nsresult GetNaturalWidth(uint32_t *aNaturalWidth);
1854 nsresult GetNaturalHeight(uint32_t *aNaturalHeight);
1855 nsresult GetComplete(bool *aComplete);
1856 nsresult GetName(nsAString *aName);
1857 nsresult SetName(const nsAString *aName);
1858 nsresult GetAlign(nsAString *aAlign);
1859 nsresult SetAlign(const nsAString *aAlign);
1860 nsresult GetBorder(nsAString *aBorder);
1861 nsresult SetBorder(const nsAString *aBorder);
1862 nsresult GetHspace(int32_t *aHspace);
1863 nsresult SetHspace(int32_t aHspace);
1864 nsresult GetLongDesc(nsAString *aLongDesc);
1865 nsresult SetLongDesc(const nsAString *aLongDesc);
1866 nsresult GetVspace(int32_t *aVspace);
1867 nsresult SetVspace(int32_t aVspace);
1868 nsresult GetLowsrc(nsAString *aLowsrc);
1869 nsresult SetLowsrc(const nsAString *aLowsrc);
1870 nsresult GetX(int32_t *aX);
1871 nsresult GetY(int32_t *aY);
1875 object,
1876 uuid(68f49f8f-5ffd-44eb-a59f-d2b3f4817299),
1877 local
1879 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1881 nsresult GetHref(nsAString *aHref);
1882 nsresult SetHref(const nsAString *aHref);
1883 nsresult GetTarget(nsAString *aTarget);
1884 nsresult SetTarget(const nsAString *aTarget);
1885 nsresult GetPing(nsAString *aPing);
1886 nsresult SetPing(const nsAString *aPing);
1887 nsresult GetRel(nsAString *aRel);
1888 nsresult SetRel(const nsAString *aRel);
1889 nsresult GetHreflang(nsAString *aHreflang);
1890 nsresult SetHreflang(const nsAString *aHreflang);
1891 nsresult GetType(nsAString *aType);
1892 nsresult SetType(const nsAString *aType);
1893 nsresult GetText(nsAString *aText);
1894 nsresult SetText(const nsAString *aText);
1895 nsresult GetProtocol(nsAString *aProtocol);
1896 nsresult SetProtocol(const nsAString *aProtocol);
1897 nsresult GetHost(nsAString *aHost);
1898 nsresult SetHost(const nsAString *aHost);
1899 nsresult GetHostname(nsAString *aHostname);
1900 nsresult SetHostname(const nsAString *aHostname);
1901 nsresult GetPort(nsAString *aPort);
1902 nsresult SetPort(const nsAString *aPort);
1903 nsresult GetPathname(nsAString *aPathname);
1904 nsresult SetPathname(const nsAString *aPathname);
1905 nsresult GetSearch(nsAString *aSearch);
1906 nsresult SetSearch(const nsAString *aSearch);
1907 nsresult GetHash(nsAString *aHash);
1908 nsresult SetHash(const nsAString *aHash);
1909 nsresult GetCharset(nsAString *aCharset);
1910 nsresult SetCharset(const nsAString *aCharset);
1911 nsresult GetCoords(nsAString *aCoords);
1912 nsresult SetCoords(const nsAString *aCoords);
1913 nsresult GetName(nsAString *aName);
1914 nsresult SetName(const nsAString *aName);
1915 nsresult GetRev(nsAString *aRev);
1916 nsresult SetRev(const nsAString *aRev);
1917 nsresult GetShape(nsAString *aShape);
1918 nsresult SetShape(const nsAString *aShape);
1919 nsresult ToString(nsAString *_retval);
1923 object,
1924 uuid(5b639ece-7b49-4507-9d38-550beb71955b),
1925 local
1927 interface nsIDOMHTMLLinkElement : nsIDOMHTMLElement
1929 nsresult GetDisabled(bool *aDisabled);
1930 nsresult SetDisabled(bool aDisabled);
1931 nsresult GetCharset(nsAString *aCharset);
1932 nsresult SetCharset(const nsAString *aCharset);
1933 nsresult GetHref(nsAString *aHref);
1934 nsresult SetHref(const nsAString *aHref);
1935 nsresult GetHreflang(nsAString *aHreflang);
1936 nsresult SetHreflang(const nsAString *aHreflang);
1937 nsresult GetMedia(nsAString *aMedia);
1938 nsresult SetMedia(const nsAString *aMedia);
1939 nsresult GetRel(nsAString *aRel);
1940 nsresult SetRel(const nsAString *aRel);
1941 nsresult GetRev(nsAString *aRev);
1942 nsresult SetRev(const nsAString *aRev);
1943 nsresult GetTarget(nsAString *aTarget);
1944 nsresult SetTarget(const nsAString *aTarget);
1945 nsresult GetType(nsAString *aType);
1946 nsresult SetType(const nsAString *aType);
1947 nsresult GetCrossOrigin(nsAString *aCrossOrigin);
1948 nsresult SetCrossOrigin(const nsAString *aCrossOrigin);
1952 object,
1953 uuid(ae50de74-bc26-402e-85dc-a980f506b655),
1954 local
1956 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1958 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1959 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1960 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1961 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1962 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1963 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1964 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1965 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1966 nsresult GetAlign(nsAString *aAlign);
1967 nsresult SetAlign(const nsAString *aAlign);
1968 nsresult GetBgColor(nsAString *aBgColor);
1969 nsresult SetBgColor(const nsAString *aBgColor);
1970 nsresult GetBorder(nsAString *aBorder);
1971 nsresult SetBorder(const nsAString *aBorder);
1972 nsresult GetCellPadding(nsAString *aCellPadding);
1973 nsresult SetCellPadding(const nsAString *aCellPadding);
1974 nsresult GetCellSpacing(nsAString *aCellSpacing);
1975 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1976 nsresult GetFrame(nsAString *aFrame);
1977 nsresult SetFrame(const nsAString *aFrame);
1978 nsresult GetRules(nsAString *aRules);
1979 nsresult SetRules(const nsAString *aRules);
1980 nsresult GetSummary(nsAString *aSummary);
1981 nsresult SetSummary(const nsAString *aSummary);
1982 nsresult GetWidth(nsAString *aWidth);
1983 nsresult SetWidth(const nsAString *aWidth);
1984 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1985 nsresult DeleteTHead();
1986 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1987 nsresult DeleteTFoot();
1988 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1989 nsresult DeleteCaption();
1990 nsresult InsertRow(int32_t index, nsIDOMHTMLElement **_retval);
1991 nsresult DeleteRow(int32_t index);
1995 object,
1996 uuid(0ac4a382-4f97-4143-a3b3-de0a54978c67),
1997 local
1999 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
2001 nsresult GetRowIndex(int32_t *aRowIndex);
2002 nsresult GetSectionRowIndex(int32_t *aSectionRowIndex);
2003 nsresult GetCells(nsIDOMHTMLCollection **aCells);
2004 nsresult GetAlign(nsAString *aAlign);
2005 nsresult SetAlign(const nsAString *aAlign);
2006 nsresult GetBgColor(nsAString *aBgColor);
2007 nsresult SetBgColor(const nsAString *aBgColor);
2008 nsresult GetCh(nsAString *aCh);
2009 nsresult SetCh(const nsAString *aCh);
2010 nsresult GetChOff(nsAString *aChOff);
2011 nsresult SetChOff(const nsAString *aChOff);
2012 nsresult GetVAlign(nsAString *aVAlign);
2013 nsresult SetVAlign(const nsAString *aVAlign);
2014 nsresult InsertCell(int32_t index, nsIDOMHTMLElement **_retval);
2015 nsresult DeleteCell(int32_t index);
2019 object,
2020 uuid(a7bd1e34-3969-47ae-8c1d-2970132ba925),
2021 local
2023 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
2025 nsresult GetAlign(nsAString *aAlign);
2026 nsresult SetAlign(const nsAString *aAlign);
2027 nsresult GetFrameBorder(nsAString *aFrameBorder);
2028 nsresult SetFrameBorder(const nsAString *aFrameBorder);
2029 nsresult GetHeight(nsAString *aHeight);
2030 nsresult SetHeight(const nsAString *aHeight);
2031 nsresult GetLongDesc(nsAString *aLongDesc);
2032 nsresult SetLongDesc(const nsAString *aLongDesc);
2033 nsresult GetMarginHeight(nsAString *aMarginHeight);
2034 nsresult SetMarginHeight(const nsAString *aMarginHeight);
2035 nsresult GetMarginWidth(nsAString *aMarginWidth);
2036 nsresult SetMarginWidth(const nsAString *aMarginWidth);
2037 nsresult GetName(nsAString *aName);
2038 nsresult SetName(const nsAString *aName);
2039 nsresult GetScrolling(nsAString *aScrolling);
2040 nsresult SetScrolling(const nsAString *aScrolling);
2041 nsresult GetSrc(nsAString *aSrc);
2042 nsresult SetSrc(const nsAString *aSrc);
2043 nsresult GetWidth(nsAString *aWidth);
2044 nsresult SetWidth(const nsAString *aWidth);
2045 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2046 nsresult GetContentWindow(nsIDOMWindow **aContentWindow);
2047 nsresult GetSandbox(nsAString *aSandbox);
2048 nsresult SetSandbox(const nsAString *aSandbox);
2049 nsresult GetAllowFullScreen(bool *aAllowFullScreen);
2050 nsresult SetAllowFullScreen(bool aAllowFullScreen);
2054 object,
2055 uuid(2aa7855a-0667-47c3-af1e-9101002816c1),
2056 local
2058 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
2060 nsresult GetFrameBorder(nsAString *aFrameBorder);
2061 nsresult SetFrameBorder(const nsAString *aFrameBorder);
2062 nsresult GetLongDesc(nsAString *aLongDesc);
2063 nsresult SetLongDesc(const nsAString *aLongDesc);
2064 nsresult GetMarginHeight(nsAString *aMarginHeight);
2065 nsresult SetMarginHeight(const nsAString *aMarginHeight);
2066 nsresult GetMarginWidth(nsAString *aMarginWidth);
2067 nsresult SetMarginWidth(const nsAString *aMarginWidth);
2068 nsresult GetName(nsAString *aName);
2069 nsresult SetName(const nsAString *aName);
2070 nsresult GetNoResize(bool *aNoResize);
2071 nsresult SetNoResize(bool aNoResize);
2072 nsresult GetScrolling(nsAString *aScrolling);
2073 nsresult SetScrolling(const nsAString *aScrolling);
2074 nsresult GetSrc(nsAString *aSrc);
2075 nsresult SetSrc(const nsAString *aSrc);
2076 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2077 nsresult GetContentWindow(nsIDOMWindow **aContentWindow);
2081 object,
2082 uuid(a70595dd-68a5-41f5-ab52-73a47d98bd78),
2083 local
2085 interface nsIDOMHTMLObjectElement : nsIDOMHTMLElement
2087 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
2088 nsresult GetCode(nsAString *aCode);
2089 nsresult SetCode(const nsAString *aCode);
2090 nsresult GetAlign(nsAString *aAlign);
2091 nsresult SetAlign(const nsAString *aAlign);
2092 nsresult GetArchive(nsAString *aArchive);
2093 nsresult SetArchive(const nsAString *aArchive);
2094 nsresult GetBorder(nsAString *aBorder);
2095 nsresult SetBorder(const nsAString *aBorder);
2096 nsresult GetCodeBase(nsAString *aCodeBase);
2097 nsresult SetCodeBase(const nsAString *aCodeBase);
2098 nsresult GetCodeType(nsAString *aCodeType);
2099 nsresult SetCodeType(const nsAString *aCodeType);
2100 nsresult GetData(nsAString *aData);
2101 nsresult SetData(const nsAString *aData);
2102 nsresult GetDeclare(bool *aDeclare);
2103 nsresult SetDeclare(bool aDeclare);
2104 nsresult GetHeight(nsAString *aHeight);
2105 nsresult SetHeight(const nsAString *aHeight);
2106 nsresult GetHspace(int32_t *aHspace);
2107 nsresult SetHspace(int32_t aHspace);
2108 nsresult GetName(nsAString *aName);
2109 nsresult SetName(const nsAString *aName);
2110 nsresult GetStandby(nsAString *aStandby);
2111 nsresult SetStandby(const nsAString *aStandby);
2112 nsresult GetType(nsAString *aType);
2113 nsresult SetType(const nsAString *aType);
2114 nsresult GetUseMap(nsAString *aUseMap);
2115 nsresult SetUseMap(const nsAString *aUseMap);
2116 nsresult GetVspace(int32_t *aVspace);
2117 nsresult SetVspace(int32_t aVspace);
2118 nsresult GetWidth(nsAString *aWidth);
2119 nsresult SetWidth(const nsAString *aWidth);
2120 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2121 nsresult GetWillValidate(bool *aWillValidate);
2122 nsresult GetValidity(nsIDOMValidityState **aValidity);
2123 nsresult GetValidationMessage(nsAString *aValidationMessage);
2124 nsresult CheckValidity(bool *_retval);
2125 nsresult SetCustomValidity(const nsAString *error);
2129 object,
2130 uuid(1fbec0f8-c7cF-4dc8-84be-247985a65e07),
2131 local
2133 interface nsIDOMHTMLParamElement : nsIDOMHTMLElement
2135 nsresult GetName(nsAString *aName);
2136 nsresult SetName(const nsAString *aName);
2137 nsresult GetType(nsAString *aType);
2138 nsresult SetType(const nsAString *aType);
2139 nsresult GetValue(nsAString *aValue);
2140 nsresult SetValue(const nsAString *aValue);
2141 nsresult GetValueType(nsAString *aValueType);
2142 nsresult SetValueType(const nsAString *aValueType);
2146 object,
2147 uuid(830d9170-f8eb-4749-b721-16d60d6b0f1b),
2148 local
2150 interface nsIDOMHTMLStyleElement : nsIDOMHTMLElement
2152 nsresult GetDisabled(bool *aDisabled);
2153 nsresult SetDisabled(bool aDisabled);
2154 nsresult GetMedia(nsAString *aMedia);
2155 nsresult SetMedia(const nsAString *aMedia);
2156 nsresult GetType(nsAString *aType);
2157 nsresult SetType(const nsAString *aType);
2158 nsresult GetDOMStyleSheet(nsIDOMStyleSheet **aDOMStyleSheet);
2162 object,
2163 uuid(7cebc153-168a-416c-ba5a-56a8c2ddb2ec),
2164 local
2166 interface nsIDOMNodeSelector : nsISupports
2168 nsresult QuerySelector(const nsAString *selectors, nsIDOMElement **_retval);
2169 nsresult QuerySelectorAll(const nsAString *selectors, nsIDOMNodeList **_retval);
2173 object,
2174 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
2175 local
2177 interface nsIURIContentListener : nsISupports
2179 nsresult OnStartURIOpen(nsIURI *aURI, bool *_retval);
2180 nsresult DoContent(const char *aContentType, bool aIsContentPreferred, nsIRequest *aRequest,
2181 nsIStreamListener **aContentHandler, bool *_retval);
2182 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, bool *_retval);
2183 nsresult CanHandleContent(const char *aContentType, bool aIsContentPreferred,
2184 char **aDesiredContentType, bool *_retval);
2185 nsresult GetLoadCookie(nsISupports **aLoadCookie);
2186 nsresult SetLoadCookie(nsISupports *aLoadCookie);
2187 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
2188 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
2192 object,
2193 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
2194 local
2196 interface nsITooltipListener : nsISupports
2198 nsresult OnShowTooltip(int32_t aXCoords, int32_t aYCoords, const PRUnichar *aTipText);
2199 nsresult OnHideTooltip();
2203 object,
2204 uuid(33e9d001-caab-4ba9-8961-54902f197202),
2205 local
2207 interface nsIWebBrowser : nsISupports
2209 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2210 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2211 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
2212 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
2213 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
2214 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
2215 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
2216 nsresult GetIsActive(bool *aIsActive);
2217 nsresult SetIsActive(bool aIsActive);
2220 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
2221 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
2222 cpp_quote("#define SETUP_DISABLE_NOSCRIPT 16")
2225 object,
2226 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
2227 local
2229 interface nsIWebBrowserSetup : nsISupports
2231 nsresult SetProperty(uint32_t aId, uint32_t aValue);
2234 typedef void* nativeWindow;
2237 object,
2238 uuid(9da319f3-eee6-4504-81a5-6a19cf6215bf),
2239 local
2241 interface nsIBaseWindow : nsISupports
2243 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, int32_t x,
2244 int32_t y, int32_t cx, int32_t cy);
2245 nsresult Create();
2246 nsresult Destroy();
2247 nsresult SetPosition(int32_t x, int32_t y);
2248 nsresult GetPosition(int32_t *x, int32_t *y);
2249 nsresult SetSize(int32_t cx, int32_t cy, bool fRepaint);
2250 nsresult GetSize(int32_t *cx, int32_t *cy);
2251 nsresult SetPositionAndSize(int32_t x, int32_t y, int32_t cx, int32_t cy, bool fRepaint);
2252 nsresult GetPositionAndSize(int32_t *x, int32_t *y, int32_t *cx, int32_t *cy);
2253 nsresult Repaint(bool force);
2254 nsresult GetParentWidget(nsIWidget **aParentWidget);
2255 nsresult SetParentWidget(nsIWidget *aParentWidget);
2256 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
2257 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
2258 nsresult GetNativeHandle(nsAString *aNativeHandle);
2259 nsresult GetVisibility(bool *aVisibility);
2260 nsresult SetVisibility(bool aVisibility);
2261 nsresult GetEnabled(bool *aEnabled);
2262 nsresult SetEnabled(bool aEnabled);
2263 nsresult GetMainWidget(nsIWidget **aMainWidget);
2264 nsresult GetUnscaledDevicePixelsPerCSSPixel(double *aUnscaledDevicePixelsPerCSSPixel);
2265 nsresult SetFocus();
2266 nsresult GetTitle(PRUnichar **aTitle);
2267 nsresult SetTitle(const PRUnichar *aTitle);
2270 cpp_quote("#define LOAD_FLAGS_NONE 0x00000000")
2271 cpp_quote("#define LOAD_REPLACE 0x00040000")
2272 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x00080000")
2275 object,
2276 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
2277 local
2279 interface nsIWebNavigation : nsISupports
2281 nsresult GetCanGoBack(bool *aCanGoBack);
2282 nsresult GetCanGoForward(bool *aCanGoForward);
2283 nsresult GoBack();
2284 nsresult GoForward();
2285 nsresult GotoIndex(int32_t index);
2286 nsresult LoadURI(const PRUnichar *aURI, uint32_t aLoadFlags, nsIURI *aReferrer,
2287 nsIInputStream *aPostData, nsIInputStream *aHeaders);
2288 nsresult Reload(uint32_t aReloadFlags);
2289 nsresult Stop(uint32_t aStopFlags);
2290 nsresult GetDocument(nsIDOMDocument **aDocument);
2291 nsresult GetCurrentURI(nsIURI **aCurrentURI);
2292 nsresult GetReferringURI(nsIURI **aReferringURI);
2293 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
2294 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
2298 object,
2299 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
2300 local
2302 interface nsIWebProgress : nsISupports
2304 nsresult AddProgressListener(nsIWebProgressListener *aListener, uint32_t aNotifyMask);
2305 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
2306 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
2307 nsresult GetIsLoadingDocument(bool *aIsLoadingDocument);
2311 object,
2312 uuid(4404c94b-0506-4255-9e3c-4582dba6cfbb),
2313 local
2315 interface nsIPrintSettings : nsISupports
2317 typedef struct { char dummy; } nsIntMargin;
2319 nsresult SetPrintOptions(int32_t aType, bool aTurnOnOff);
2320 nsresult GetPrintOptions(int32_t aType, bool *_retval);
2321 nsresult GetPrintOptionsBits(int32_t *_retval);
2322 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
2323 nsresult Clone(nsIPrintSettings **_retval);
2324 nsresult Assign(nsIPrintSettings *aPS);
2325 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
2326 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
2327 nsresult GetStartPageRange(int32_t *aStartPageRange);
2328 nsresult SetStartPageRange(int32_t aStartPageRange);
2329 nsresult GetEndPageRange(int32_t *aEndPageRange);
2330 nsresult SetEndPageRange(int32_t aEndPageRange);
2331 nsresult GetEdgeTop(double *aEdgeTop);
2332 nsresult SetEdgeTop(double aEdgeTop);
2333 nsresult GetEdgeLeft(double *aEdgeLeft);
2334 nsresult SetEdgeLeft(double aEdgeLeft);
2335 nsresult GetEdgeBottom(double *aEdgeBottom);
2336 nsresult SetEdgeBottom(double aEdgeBottom);
2337 nsresult GetEdgeRight(double *aEdgeRight);
2338 nsresult SetEdgeRight(double aEdgeRight);
2339 nsresult GetMarginTop(double *aMarginTop);
2340 nsresult SetMarginTop(double aMarginTop);
2341 nsresult GetMarginLeft(double *aMarginLeft);
2342 nsresult SetMarginLeft(double aMarginLeft);
2343 nsresult GetMarginBottom(double *aMarginBottom);
2344 nsresult SetMarginBottom(double aMarginBottom);
2345 nsresult GetMarginRight(double *aMarginRight);
2346 nsresult SetMarginRight(double aMarginRight);
2347 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
2348 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
2349 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
2350 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
2351 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
2352 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
2353 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
2354 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
2355 nsresult GetScaling(double *aScaling);
2356 nsresult SetScaling(double aScaling);
2357 nsresult GetPrintBGColors(bool *aPrintBGColors);
2358 nsresult SetPrintBGColors(bool aPrintBGColors);
2359 nsresult GetPrintBGImages(bool *aPrintBGImages);
2360 nsresult SetPrintBGImages(bool aPrintBGImages);
2361 nsresult GetPrintRange(int16_t *aPrintRange);
2362 nsresult SetPrintRange(int16_t aPrintRange);
2363 nsresult GetTitle(PRUnichar **aTitle);
2364 nsresult SetTitle(const PRUnichar *aTitle);
2365 nsresult GetDocURL(PRUnichar **aDocURL);
2366 nsresult SetDocURL(const PRUnichar *aDocURL);
2367 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
2368 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
2369 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
2370 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
2371 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
2372 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
2373 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
2374 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
2375 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
2376 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
2377 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
2378 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
2379 nsresult GetHowToEnableFrameUI(int16_t *aHowToEnableFrameUI);
2380 nsresult SetHowToEnableFrameUI(int16_t aHowToEnableFrameUI);
2381 nsresult GetIsCancelled(bool *aIsCancelled);
2382 nsresult SetIsCancelled(bool aIsCancelled);
2383 nsresult GetPrintFrameTypeUsage(int16_t *aPrintFrameTypeUsage);
2384 nsresult SetPrintFrameTypeUsage(int16_t aPrintFrameTypeUsage);
2385 nsresult GetPrintFrameType(int16_t *aPrintFrameType);
2386 nsresult SetPrintFrameType(int16_t aPrintFrameType);
2387 nsresult GetPrintSilent(bool *aPrintSilent);
2388 nsresult SetPrintSilent(bool aPrintSilent);
2389 nsresult GetShrinkToFit(bool *aShrinkToFit);
2390 nsresult SetShrinkToFit(bool aShrinkToFit);
2391 nsresult GetShowPrintProgress(bool *aShowPrintProgress);
2392 nsresult SetShowPrintProgress(bool aShowPrintProgress);
2393 nsresult GetPaperName(PRUnichar **aPaperName);
2394 nsresult SetPaperName(const PRUnichar *aPaperName);
2395 nsresult GetPaperSizeType(int16_t *aPaperSizeType);
2396 nsresult SetPaperSizeType(int16_t aPaperSizeType);
2397 nsresult GetPaperData(int16_t *aPaperData);
2398 nsresult SetPaperData(int16_t aPaperData);
2399 nsresult GetPaperWidth(double *aPaperWidth);
2400 nsresult SetPaperWidth(double aPaperWidth);
2401 nsresult GetPaperHeight(double *aPaperHeight);
2402 nsresult SetPaperHeight(double aPaperHeight);
2403 nsresult GetPaperSizeUnit(int16_t *aPaperSizeUnit);
2404 nsresult SetPaperSizeUnit(int16_t aPaperSizeUnit);
2405 nsresult GetPlexName(PRUnichar **aPlexName);
2406 nsresult SetPlexName(const PRUnichar *aPlexName);
2407 nsresult GetColorspace(PRUnichar **aColorspace);
2408 nsresult SetColorspace(const PRUnichar *aColorspace);
2409 nsresult GetResolutionName(PRUnichar **aResolutionName);
2410 nsresult SetResolutionName(const PRUnichar aResolutionName);
2411 nsresult GetDownloadFonts(bool *aDownloadFonts);
2412 nsresult SetDownloadFonts(bool aDownloadFonts);
2413 nsresult GetPrintReversed(bool *aPrintReversed);
2414 nsresult SetPrintReversed(bool aPrintReversed);
2415 nsresult GetPrintInColor(bool *aPrintInColor);
2416 nsresult SetPrintInColor(bool aPrintInColor);
2417 nsresult GetOrientation(int32_t *aOrientation);
2418 nsresult SetOrientation(int32_t aOrientation);
2419 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
2420 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
2421 nsresult GetNumCopies(int32_t *aNumCopies);
2422 nsresult SetNumCopies(int32_t aNumCopies);
2423 nsresult GetPrinterName(PRUnichar **aPrinterName);
2424 nsresult SetPrinterName(const PRUnichar *aPrinterName);
2425 nsresult GetPrintToFile(bool *aPrintToFile);
2426 nsresult SetPrintToFile(bool aPrintToFile);
2427 nsresult GetToFileName(PRUnichar **aToFileName);
2428 nsresult SetToFileName(const PRUnichar *aToFileName);
2429 nsresult GetOutputFormat(int16_t *aOutputFormat);
2430 nsresult SetOutputFormat(int16_t aOutputFormat);
2431 nsresult GetPrintPageDelay(int32_t *aPrintPageDelay);
2432 nsresult SetPrintPageDelay(int32_t aPrintPageDelay);
2433 nsresult GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter);
2434 nsresult SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter);
2435 nsresult GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs);
2436 nsresult SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs);
2437 nsresult SetMarginInTwips(nsIntMargin *aMargin);
2438 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
2439 nsresult GetMarginInTwips(nsIntMargin *aMargin);
2440 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
2441 nsresult SetupSilentPrinting();
2442 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2443 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2444 nsresult GetPageRanges(void * /*nsTArray<int32_t>&*/ aPages);
2448 object,
2449 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
2450 local
2452 interface nsIWebBrowserPrint : nsISupports
2454 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
2455 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
2456 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
2457 nsresult GetDoingPrint(bool *aDoingPrint);
2458 nsresult GetDoingPrintPreview(bool *aDoingPrintPreview);
2459 nsresult GetIsFramesetDocument(bool *aIsFramesetDocument);
2460 nsresult GetIsFramesetFrameSelected(bool *aIsFramesetFrameSelected);
2461 nsresult GetIsIFrameSelected(bool *aIsIFrameSelected);
2462 nsresult GetIsRangeSelection(bool *aIsRangeSelection);
2463 nsresult GetPrintPreviewNumPages(int32_t *aPrintPreviewNumPages);
2464 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
2465 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
2466 nsIWebProgressListener *aWPListener);
2467 nsresult PrintPreviewNavigate(int16_t aNavType, int32_t aPageNum);
2468 nsresult Cancel();
2469 nsresult EnumerateDocumentNames(uint32_t *aCount, PRUnichar ***aResult);
2470 nsresult ExitPrintPreview();
2474 object,
2475 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
2476 local
2478 interface nsIScrollable : nsISupports
2480 enum {
2481 ScrollOrientation_X = 1,
2482 ScrollOrientation_Y = 2
2485 enum {
2486 Scrollbar_Auto = 1,
2487 Scrollbar_Never = 2,
2488 Scrollbar_Always = 3
2491 nsresult GetCurScrollPos(int32_t scrollOrientation, int32_t *curPos);
2492 nsresult SetCurScrollPos(int32_t scrollOrientation, int32_t curPos);
2493 nsresult SetCurScrollPosEx(int32_t curHorizontalPos, int32_t curVerticalPos);
2494 nsresult GetScrollRange(int32_t scrollOrientation, int32_t *minPos, int32_t *maxPos);
2495 nsresult SetScrollRange(int32_t scrollOrientation, int32_t minPos, int32_t maxPos);
2496 nsresult SetScrollRangeEx(int32_t minHorizontalPos, int32_t maxHorizontalPos,
2497 int32_t minVerticalPos, int32_t maxVerticalPos);
2498 nsresult GetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t *scrollbarPref);
2499 nsresult SetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t scrollbarPref);
2500 nsresult GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible);
2504 object,
2505 uuid(272a5020-64f5-485c-a8c4-44b2882ae0a2),
2506 local
2508 interface nsIFile : nsISupports
2510 typedef struct {
2511 /* Currently not needed */
2512 char dummy;
2513 } PRFileDesc, PRLibrary, widl_FILE;
2514 #define FILE widl_FILE
2516 nsresult Append(const nsAString *node);
2517 nsresult AppendNative(const nsAString *node);
2518 nsresult Normalize();
2519 nsresult Create(uint32_t type, uint32_t permission);
2520 nsresult GetLeafName(nsAString *aLeafName);
2521 nsresult SetLeafName(const nsAString *aLeafName);
2522 nsresult GetNativeLeafName(nsAString *aLeafName);
2523 nsresult SetNativeLeafName(const nsAString *aLeafName);
2524 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2525 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2526 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2527 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2528 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2529 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2530 nsresult Remove(bool recursive);
2531 nsresult GetPermissions(uint32_t *aPermissions);
2532 nsresult SetPermissions(uint32_t pPermissions);
2533 nsresult GetPermissionsOfLink(uint32_t *aPermissions);
2534 nsresult SetPermissionsOfLink(uint32_t pPermissions);
2535 nsresult GetLastModifiedTime(PRTime *aLastModifiedTime);
2536 nsresult SetLastModifiedTime(PRTime aLastModifiedTime);
2537 nsresult GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink);
2538 nsresult SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink);
2539 nsresult GetFileSize(int64_t *aFileSize);
2540 nsresult SetFileSize(int64_t aFileSize);
2541 nsresult GetFileSizeOfLink(int64_t *aFileSizeOfLink);
2542 nsresult GetTarget(nsAString *aTarget);
2543 nsresult GetNativeTarget(nsACString *aNativeTarget);
2544 nsresult GetPath(nsAString *aPath);
2545 nsresult GetNativePath(nsACString *aNativePath);
2546 nsresult Exists(bool *_retval);
2547 nsresult IsWritable(bool *_retval);
2548 nsresult IsReadable(bool *_retval);
2549 nsresult IsExecutable(bool *_retval);
2550 nsresult IsHidden(bool *_retval);
2551 nsresult IsDirectory(bool *_retval);
2552 nsresult IsFile(bool *_retval);
2553 nsresult IsSymlink(bool *_retval);
2554 nsresult IsSpecial(bool *_retval);
2555 nsresult CreateUnique(uint32_t type, uint32_t permission);
2556 nsresult Clone(nsIFile **_retval);
2557 nsresult Equals(nsIFile *inFile, bool *_retval);
2558 nsresult Contains(nsIFile *inFile, bool recir, bool *_retval);
2559 nsresult GetParent(nsIFile **aParent);
2560 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2561 nsresult InitWithPath(const nsAString *filePath);
2562 nsresult InitWithNativePath(const nsACString *filePath);
2563 nsresult InitWithFile(nsIFile *aFile);
2564 nsresult GetFollowLinks(bool *aFollowLinks);
2565 nsresult SetFollowLinks(bool aFollowLinks);
2566 nsresult OpenNSPRFileDesc(int32_t flags, int32_t mode, PRFileDesc **_retval);
2567 nsresult OpenANSIFileDesc(const char *mode, FILE **_retval);
2568 nsresult Load(PRLibrary **_retval);
2569 nsresult GetDiskSpaceAvailable(int64_t *aDiskSpaceAvailable);
2570 nsresult AppendRelativePath(const nsAString *relativeFilePath);
2571 nsresult AppendRelativeNativePath(const nsACString *relativeFilePath);
2572 nsresult GetPersistentDescriptor(nsACString *aPersistentDescriptor);
2573 nsresult SetPersistentDescriptor(const nsACString *aPersistentDescriptor);
2574 nsresult Reveal();
2575 nsresult Launch();
2576 nsresult GetRelativeDescriptor(nsIFile *fromFile, nsACString *_retval);
2577 nsresult SetRelativeDescriptor(nsIFile *fromFile, const nsACString *relativeDesc);
2581 object,
2582 uuid(1d940426-5fe5-42c3-84ae-a300f2d9ebd5),
2583 local
2585 interface nsIComponentManager : nsISupports
2587 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
2588 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
2589 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
2590 void **result);
2591 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
2592 nsIIDRef aIID, void **result);
2593 nsresult AddBootstrappedManifestLocation(nsIFile *aLocation);
2594 nsresult RemoveBootstrappedManifestLocation(nsIFile *aLocation);
2598 object,
2599 uuid(7df46a54-d8b0-448e-903c-4341a1b2499c),
2600 local
2602 interface nsIPrefBranch : nsISupports
2604 nsresult GetRoot(char **aRoot);
2605 nsresult GetPrefType(const char *aPrefName, int32_t *_retval);
2606 nsresult GetBoolPref(const char *aPrefName, bool *_retval);
2607 nsresult SetBoolPref(const char *aPrefName, bool aValue);
2608 nsresult GetFloatPref(const char *aPrefName, float *_retval);
2609 nsresult GetCharPref(const char *aPrefName, char **_retval);
2610 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2611 nsresult GetIntPref(const char *aPrefName, int32_t *_retval);
2612 nsresult SetIntPref(const char *aPrefName, int32_t aValue);
2613 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2614 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2615 nsresult ClearUserPref(const char *aPrefName);
2616 nsresult LockPref(const char *aPrefName);
2617 nsresult PrefHasUserValue(const char *aPrefName, bool *_retval);
2618 nsresult PrefIsLocked(const char *aPrefName, bool *_retval);
2619 nsresult UnlockPref(const char *aPrefName);
2620 nsresult DeleteBranch(const char *aStartingAt);
2621 nsresult GetChildList(const char *aStartingAt, uint32_t *aCount, char ***aChildArray);
2622 nsresult ResetBranch(const char *aStartingAt);
2623 nsresult AddObserver(const char *aDomain, nsIObserver *aObserver, bool aHoldWeak);
2624 nsresult RemoveObserver(const char *aDomain, nsIObserver *aObserver);
2628 object,
2629 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2630 local
2632 interface nsIDirectoryServiceProvider : nsISupports
2634 nsresult GetFile(const char *prop, bool *persistent, nsIFile **_retval);
2638 object,
2639 uuid(2f977d4b-5485-11d4-87e2-0010a4e75ef2),
2640 local
2642 interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
2644 nsresult GetFiles(const char *prop, nsISimpleEnumerator **_retval);
2648 object,
2649 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2650 local
2652 interface nsIProtocolHandler : nsISupports
2654 nsresult GetScheme(nsACString *aScheme);
2655 nsresult GetDefaultPort(int32_t *aDefaultPort);
2656 nsresult GetProtocolFlags(uint32_t *aProtocolFlags);
2657 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2658 nsIURI *aBaseURI, nsIURI **_retval);
2659 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2660 nsresult AllowPort(int32_t port, const char *scheme, bool *_retval);
2664 object,
2665 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2666 local
2668 interface nsIExternalProtocolHandler : nsIProtocolHandler
2670 nsresult ExternalAppExistsForScheme(const nsACString *scheme, bool *_retval);
2674 object,
2675 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2676 local
2678 interface nsIIOService : nsISupports
2680 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2681 nsresult GetProtocolFlags(const char *aScheme, uint32_t *_retval);
2682 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2683 nsIURI **_retval);
2684 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2685 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2686 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2687 nsIChannel **_retval);
2688 nsresult GetOffline(bool *aOffline);
2689 nsresult SetOffline(bool aOffline);
2690 nsresult AllowPort(int32_t aPort, const char *aScheme, bool *_retval);
2691 nsresult ExtractScheme(const nsACString *urlString, nsACString *_retval);
2695 object,
2696 uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2697 local,
2699 interface nsINetUtil : nsISupports
2701 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2702 bool *aHadCharset, nsACString *_retval);
2703 nsresult ProtocolHasFlags(nsIURI *aURI, uint32_t aFlag, bool *_retval);
2704 nsresult URIChainHasFlags(nsIURI *aURI, uint32_t aFlags, bool *_retval);
2705 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2706 nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2707 nsresult EscapeString(const nsACString *aString, uint32_t aEscapeType, nsACString *_retval);
2708 nsresult EscapeURL(const nsACString *aStr, uint32_t aFlags, nsACString *_retval);
2709 nsresult UnescapeString(const nsACString *aStr, uint32_t aFlags, nsACString *_retval);
2710 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2711 int32_t *aCharsetStart, int32_t *aCharsetEnd, bool *_retval);
2715 object,
2716 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2717 local
2719 interface nsIWebBrowserFocus : nsISupports
2721 nsresult Activate();
2722 nsresult Deactivate();
2723 nsresult SetFocusAtFirstElement();
2724 nsresult SetFocusAtLastElement();
2725 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2726 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2727 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2728 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2732 object,
2733 uuid(e8c414c4-dc38-4ba3-ab4e-ec4cbbe22907),
2734 local
2736 interface nsIWebBrowserChrome : nsISupports
2738 nsresult SetStatus(uint32_t statusType, const PRUnichar *status);
2739 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2740 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2741 nsresult GetChromeFlags(uint32_t *aChromeFlags);
2742 nsresult SetChromeFlags(uint32_t aChromeFlags);
2743 nsresult DestroyBrowserWindow();
2744 nsresult SizeBrowserTo(int32_t aCX, int32_t aCY);
2745 nsresult ShowAsModal();
2746 nsresult IsWindowModal(bool *_retval);
2747 nsresult ExitModalEventLoop(nsresult aStatus);
2751 object,
2752 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2753 local
2755 interface nsIDOMEventListener : nsISupports
2757 nsresult HandleEvent(nsIDOMEvent *event);
2761 object,
2762 uuid(8e375931-298d-4d0a-9cb4-5668f0cdc5a8),
2763 local
2765 interface nsIDOMEventTarget : nsISupports
2767 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture, bool wantsUntrusted, uint8_t _argc);
2768 nsresult AddSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture, bool aWantsUntrusted, uint8_t _argc);
2769 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture);
2770 nsresult RemoveSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture);
2771 nsresult DispatchEvent(nsIDOMEvent *evt, bool *_retval);
2773 /* Followed by methods we should try to avoid using */
2777 object,
2778 uuid(270c945b-8a65-4170-bc0b-4ec1443cd39f),
2779 local
2781 interface nsIDOMEvent : nsISupports
2783 nsresult GetType(nsAString *aType);
2784 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2785 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2786 nsresult GetEventPhase(uint16_t *aEventPhase);
2787 nsresult GetBubbles(bool *aBubbles);
2788 nsresult GetCancelable(bool *aCancelable);
2789 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2790 nsresult StopPropagation();
2791 nsresult PreventDefault();
2792 nsresult InitEvent(const nsAString *eventTypeArg, bool canBubbleArg, bool cancelableArg);
2793 nsresult GetDefaultPrevented(bool *aDefaultPrevented);
2794 nsresult StopImmediatePropagation();
2795 nsresult GetOriginalTarget(nsIDOMEventTarget **aOriginalTarget);
2796 nsresult GetExplicitOriginalTarget(nsIDOMEventTarget * *aExplicitOriginalTarget);
2797 nsresult PreventBubble();
2798 nsresult PreventCapture();
2799 nsresult GetPreventDefault(bool *_retval);
2800 nsresult GetIsTrusted(bool *aIsTrusted);
2801 nsresult DuplicatePrivateData();
2802 nsresult SetTarget(nsIDOMEventTarget *aTarget);
2803 bool IsDispatchStopped();
2804 /*nsEvent*/ void *GetInternalNSEvent();
2805 nsresult SetTrusted(bool aTrusted);
2806 void Serialize(/*IPC::Message*/ void *aMsg, bool aSerializeInterfaceType);
2807 bool Deserialize(const /*IPC::Message*/ void *aMsg, void **aIter);
2811 object,
2812 uuid(ed36f965-173c-4101-a615-63b44f51ed90),
2813 local
2815 interface nsIDOMWindowUtils : nsISupports
2817 nsresult GetImageAnimationMode(uint16_t *aImageAnimationMode);
2818 nsresult SetImageAnimationMode(uint16_t aImageAnimationMode);
2819 nsresult GetDocCharsetIsForced(bool *aDocCharsetIsForced);
2820 nsresult GetCursorType(int16_t *_retval);
2821 nsresult GetDocumentMetadata(const nsAString *aName, nsAString *_retval);
2822 nsresult Redraw(uint32_t aCount, uint32_t *_retval);
2823 nsresult SetCSSViewport(float aWidthPx, float aHeightPx);
2824 nsresult GetViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight, double *aDefaultZoom, bool *aAllowZoom,
2825 double *aMinZoom, double *aMaxZoom, uint32_t *aWidth, uint32_t *aHeight, bool *aAutoSize);
2826 nsresult SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, nsIDOMElement *aElement);
2827 nsresult SetResolution(float aXResolution, float aYResolution);
2828 nsresult GetIsFirstPaint(bool *aIsFirstPaint);
2829 nsresult SetIsFirstPaint(bool aIsFirstPaint);
2830 nsresult SendMouseEvent(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
2831 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg);
2832 nsresult SendTouchEvent(const nsAString *aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs,
2833 uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers,
2834 bool aIgnoreRootScrollFrame, bool *_retval);
2835 nsresult SendMouseEventToWindow(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
2836 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg);
2837 nsresult SendWheelEvent(float aX, float aY, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aDeltaMode,
2838 int32_t aModifiers, int32_t aLineOrPageDeltaX, int32_t aLineOrPageDeltaY, uint32_t aOptions);
2839 nsresult SendKeyEvent(const nsAString *aType, int32_t aKeyCode, int32_t aCharCode, int32_t aModifiers,
2840 uint32_t aAdditionalFlags, bool *_retval);
2841 nsresult SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags,
2842 const nsAString *aCharacters, const nsAString *aUnmodifiedCharacters);
2843 nsresult SendNativeMouseEvent(int32_t aScreenX, int32_t aScreenY, int32_t aNativeMessage, int32_t aModifierFlags,
2844 nsIDOMElement *aElement);
2845 nsresult SendNativeMouseScrollEvent(int32_t aScreenX, int32_t aScreenY, uint32_t aNativeMessage, double aDeltaX,
2846 double aDeltaY, double aDeltaZ, uint32_t aModifierFlags, uint32_t aAdditionalFlags, nsIDOMElement *aElement);
2847 nsresult ActivateNativeMenuItemAt(const nsAString *indexString);
2848 nsresult ForceUpdateNativeMenuAt(const nsAString *indexString);
2849 nsresult Focus(nsIDOMElement *aElement);
2850 nsresult GarbageCollect(nsICycleCollectorListener *aListener, int32_t aExtraForgetSkippableCalls);
2851 nsresult CycleCollect(nsICycleCollectorListener *aListener, int32_t aExtraForgetSkippableCalls);
2852 nsresult SendSimpleGestureEvent(const nsAString *aType, float aX, float aY, uint32_t aDirection, double aDelta,
2853 int32_t aModifiers, uint32_t aClickCount);
2854 nsresult ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMElement **_retval);
2855 nsresult NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize,
2856 bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMNodeList **_retval);
2857 nsresult CompareCanvases(nsIDOMHTMLCanvasElement *aCanvas1, nsIDOMHTMLCanvasElement *aCanvas2,
2858 uint32_t *aMaxDifference, uint32_t *_retval);
2859 nsresult GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending);
2860 nsresult SuppressEventHandling(bool aSuppress);
2861 nsresult ClearMozAfterPaintEvents();
2862 nsresult DisableNonTestMouseEvents(bool aDisable);
2863 nsresult GetScrollXY(bool aFlushLayout, int32_t *aScrollX, int32_t *aScrollY);
2864 nsresult GetRootBounds(nsIDOMClientRect **_retval);
2865 nsresult GetIMEIsOpen(bool *aIMEIsOpen);
2866 nsresult GetIMEStatus(uint32_t *aIMEStatus);
2867 nsresult GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel);
2868 nsresult GetFullZoom(float *aFullZoom);
2869 nsresult DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval);
2870 nsresult GetClassName(const /*JS::Value*/ void *aObject, JSContext *cx, char **_retval);
2871 nsresult SendContentCommandEvent(const nsAString *aType, nsITransferable *aTransferable);
2872 nsresult SendCompositionEvent(const nsAString *aType, const nsAString *aData, const nsAString *aLocale);
2873 nsresult SendTextEvent(const nsAString *aCompositionString, int32_t aFirstClauseLength, uint32_t aFirstClauseAttr,
2874 int32_t aSecondClauseLength, uint32_t aSecondClauseAttr, int32_t aThirdClauseLength, uint32_t aThirdClauseAttr,
2875 int32_t aCaretStart, int32_t aCaretLength);
2876 nsresult SendQueryContentEvent(uint32_t aType, uint32_t aOffset, uint32_t aLength, int32_t aX, int32_t aY,
2877 nsIQueryContentEventResult **_retval);
2878 nsresult RemoteFrameFullscreenChanged(nsIDOMElement *aFrameElement, const nsAString *aNewOrigin);
2879 nsresult RemoteFrameFullscreenReverted();
2880 nsresult ExitFullscreen();
2881 nsresult SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, bool aReverse, bool *_retval);
2882 nsresult SelectAtPoint(float aX, float aY, uint32_t aSelectBehavior, bool *_retval);
2883 nsresult GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString *aPseudoElement,
2884 const nsAString *aPropertyName, nsAString *_retval);
2885 nsresult GetParent(const /*JS::Value*/ void *obj, JSContext *cx, /*JS::Value*/ void *_retval);
2886 nsresult GetOuterWindowID(uint64_t *aOuterWindowID);
2887 nsresult GetCurrentInnerWindowID(uint64_t *aCurrentInnerWindowID);
2888 nsresult EnterModalState();
2889 nsresult LeaveModalState();
2890 nsresult EnterModalStateWithWindow(nsIDOMWindow **_retval);
2891 nsresult LeaveModalStateWithWindow(nsIDOMWindow *aWindow);
2892 nsresult IsInModalState(bool *_retval);
2893 nsresult SuspendTimeouts();
2894 nsresult ResumeTimeouts();
2895 nsresult GetLayerManagerType(nsAString *aLayerManagerType);
2896 nsresult StartFrameTimeRecording();
2897 nsresult StopFrameTimeRecording(uint32_t *frameCount, float **frameTime);
2898 nsresult BeginTabSwitch();
2899 nsresult GetDisplayDPI(float *aDisplayDPI);
2900 nsresult GetOuterWindowWithId(uint64_t aOuterWindowID, nsIDOMWindow **_retval);
2901 nsresult RenderDocument(const void /*nsRect*/ *aRect, uint32_t aFlags, int /*nscolor*/ aBackgroundColor,
2902 void /*gfxContext*/ *aThebesContext);
2903 nsresult AdvanceTimeAndRefresh(int64_t aMilliseconds);
2904 nsresult RestoreNormalRefresh();
2905 nsresult ComputeAnimationDistance(nsIDOMElement *element, const nsAString *property, const nsAString *value1,
2906 const nsAString *value2, double *_retval);
2907 nsresult WrapDOMFile(nsIFile *aFile, nsIDOMFile **_retval);
2908 nsresult GetFocusedInputType(char **aFocusedInputType);
2909 nsresult FindElementWithViewId(long /*nsViewID*/ aId, nsIDOMElement **_retval);
2910 nsresult LeafLayersPartitionWindow(bool *_retval);
2911 nsresult GetMayHaveTouchEventListeners(bool *aMayHaveTouchEventListeners);
2912 nsresult CheckAndClearPaintedState(nsIDOMElement *aElement, bool *_retval);
2913 nsresult GetFile(const nsAString *aName, const /*JS::Value*/ void *aBlobParts, const /*JS::Value*/ void *aParameters,
2914 JSContext* cx, uint8_t _argc, nsIDOMFile **_retval);
2915 nsresult GetBlob(const /*JS::Value*/ void *aBlobParts, const /*JS::Value*/ void *aParameters, JSContext *cx,
2916 uint8_t _argc, nsIDOMBlob * _retval);
2917 nsresult GetFileId(const /*JS::Value*/ void *aFile, JSContext *cx, int64_t *_retval);
2918 nsresult GetFileReferences(const nsAString *aDatabaseName, int64_t aId, int32_t *aRefCnt, int32_t *aDBRefCnt,
2919 int32_t *aSliceRefCnt, bool *_retval);
2920 nsresult IsIncrementalGCEnabled(JSContext *cx, bool *_retval);
2921 nsresult StartPCCountProfiling(JSContext *cx);
2922 nsresult StopPCCountProfiling(JSContext *cx);
2923 nsresult PurgePCCounts(JSContext *cx);
2924 nsresult GetPCCountScriptCount(JSContext *cx, int32_t *_retval);
2925 nsresult GetPCCountScriptSummary(int32_t script, JSContext *cx, nsAString *_retval);
2926 nsresult GetPCCountScriptContents(int32_t script, JSContext *cx, nsAString *_retval);
2927 nsresult GetPaintingSuppressed(bool *aPaintingSuppressed);
2928 nsresult GetPlugins(JSContext *cx, /*JS::Value*/ void *aPlugins);
2929 nsresult SetScrollPositionClampingScrollPortSize(float aWidth, float aHeight);
2930 nsresult PreventFurtherDialogs();
2931 nsresult LoadSheet(nsIURI *sheetURI, uint32_t type);
2932 nsresult RemoveSheet(nsIURI *sheetURI, uint32_t type);
2933 nsresult GetIsHandlingUserInput(bool *aIsHandlingUserInput);
2934 nsresult AllowScriptsToClose();
2937 cpp_quote("#define CONTEXT_NONE 0x00")
2938 cpp_quote("#define CONTEXT_LINK 0x01")
2939 cpp_quote("#define CONTEXT_IMAGE 0x02")
2940 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2941 cpp_quote("#define CONTEXT_TEXT 0x08")
2942 cpp_quote("#define CONTEXT_INPUT 0x10")
2943 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2946 object,
2947 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2948 local
2950 interface nsIContextMenuListener : nsISupports
2952 nsresult OnShowContextMenu(uint32_t aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2956 object,
2957 uuid(415453e6-132a-4902-9a99-cc480f0311b6),
2958 local
2960 interface nsIDOMUIEvent : nsIDOMEvent
2962 nsresult GetView(nsIDOMWindow **aView);
2963 nsresult GetDetail(int32_t *aDetail);
2964 nsresult InitUIEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
2965 nsIDOMWindow *viewArg, int32_t detailArg);
2966 nsresult GetLayerX(int32_t *aLayerX);
2967 nsresult GetLayerY(int32_t *aLayerY);
2968 nsresult GetPageX(int32_t *aPageX);
2969 nsresult GetPageY(int32_t *aPageY);
2970 nsresult GetWhich(uint32_t *aWhich);
2971 nsresult GetRangeParent(nsIDOMNode **aRangeParent);
2972 nsresult GetRangeOffset(int32_t *aRangeOffset);
2973 nsresult GetCancelBubble(bool *aCancelBubble);
2974 nsresult SetCancelBubble(bool aCancelBubble);
2975 nsresult GetIsChar(bool *aIsChar);
2979 object,
2980 uuid(796c3436-5f89-4145-be3a-49808c09fdc6),
2981 local
2983 interface nsIDOMMouseEvent : nsIDOMUIEvent
2985 nsresult GetScreenX(int32_t *aScreenX);
2986 nsresult GetScreenY(int32_t *aScreenY);
2987 nsresult GetMozMovementX(int32_t *aMozMovementX);
2988 nsresult GetMozMovementY(int32_t *aMozMovementY);
2989 nsresult GetClientX(int32_t *aClientX);
2990 nsresult GetClientY(int32_t *aClientY);
2991 nsresult GetCtrlKey(bool *aCtrlKey);
2992 nsresult GetShiftKey(bool *aShiftKey);
2993 nsresult GetAltKey(bool *aAltKey);
2994 nsresult GetMetaKey(bool *aMetaKey);
2995 nsresult GetButton(uint16_t *aButton);
2996 nsresult GetButtons(uint16_t *aButtons);
2997 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2998 nsresult InitMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
2999 nsIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg,
3000 int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg,
3001 bool shiftKeyArg, bool metaKeyArg, uint16_t buttonArg,
3002 nsIDOMEventTarget *relatedTargetArg);
3003 nsresult GetMozPressure(float *aMozPressure);
3004 nsresult GetMozInputSource(uint16_t *aMozInputSource);
3005 nsresult InitNSMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
3006 nsIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg,
3007 int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg,
3008 bool metaKeyArg, uint16_t buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure,
3009 uint16_t inputSourceArg);
3010 nsresult GetModifierState(const nsAString *keyArg, bool *_retval);
3014 object,
3015 uuid(5d116380-8432-48cb-a717-200f04c39d2f),
3016 local
3018 interface nsIDOMKeyEvent : nsIDOMUIEvent
3020 nsresult GetCharCode(uint32_t *aCharCode);
3021 nsresult GetKeyCode(uint32_t *aKeyCode);
3022 nsresult GetAltKey(bool *aAltKey);
3023 nsresult GetCtrlKey(bool *aCtrlKey);
3024 nsresult GetShiftKey(bool *aShiftKey);
3025 nsresult GetMetaKey(bool *aMetaKey);
3026 nsresult InitKeyEvent(const nsAString *typeArg, bool canBubbleArg,
3027 bool cancelableArg, nsIDOMWindow *viewArg, bool ctrlKeyArg,
3028 bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, uint32_t keyCodeArg,
3029 uint32_t charCodeArg);
3030 nsresult GetModifierState(const nsAString *keyArg, bool *_retval);
3031 nsresult GetLocation(uint32_t *aLocation);
3035 object,
3036 uuid(0b976267-4aaa-4f36-a2d4-27b5ca8d73bb),
3037 local
3039 interface nsIEmbeddingSiteWindow : nsISupports
3041 nsresult SetDimensions(uint32_t flags, int32_t x, int32_t y, int32_t cx, int32_t cy);
3042 nsresult GetDimensions(uint32_t flags, int32_t *x, int32_t *y, int32_t *cx, int32_t *cy);
3043 nsresult SetFocus();
3044 nsresult GetVisibility(bool *aVisibility);
3045 nsresult SetVisibility(bool aVisibility);
3046 nsresult GetTitle(PRUnichar **aTitle);
3047 nsresult SetTitle(const PRUnichar *aTitle);
3048 nsresult GetSiteWindow(void **aSiteWindow);
3049 nsresult Blur();
3053 object,
3054 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
3055 local
3057 interface nsIComponentRegistrar : nsISupports
3059 nsresult AutoRegister(nsIFile *aSpec);
3060 nsresult AutoUnregister(nsIFile *aSpec);
3061 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
3062 const char *aContractID, nsIFactory *aFactory);
3063 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
3064 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
3065 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
3066 const char *aType);
3067 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
3068 nsresult IsCIDRegistered(const nsCID *aClass, bool *_retval);
3069 nsresult IsContractIDRegistered(const char *aContractID, bool *_retval);
3070 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
3071 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
3072 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
3073 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
3077 object,
3078 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
3079 local
3081 interface nsIPromptService : nsISupports
3083 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3084 const PRUnichar *aText);
3085 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3086 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState);
3087 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3088 const PRUnichar *aText, bool *_retval);
3089 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3090 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState,
3091 bool *_retval);
3092 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3093 const PRUnichar *aText, uint32_t aButtonFlags, const PRUnichar *aButton0Title,
3094 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
3095 const PRUnichar *aCheckMsg, bool *aCheckState, int32_t *_retval);
3096 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3097 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
3098 bool *aCheckState, bool *_retval);
3099 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3100 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
3101 const PRUnichar *aCheckMsg, bool *aCheckState, bool *_retval);
3102 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3103 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
3104 bool *aCheckState, bool *_retval);
3105 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
3106 const PRUnichar *aText, uint32_t aCount, const PRUnichar **aSelectList,
3107 int32_t *aOutSelection, bool *_retval);
3111 object,
3112 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
3113 local
3115 interface nsITooltipTextProvider : nsISupports
3117 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, bool *_retval);
3121 object,
3122 uuid(24f3f4da-18a4-448d-876d-7360fefac029),
3123 local
3125 interface nsIEditingSession : nsISupports
3127 nsresult GetEditorStatus(uint32_t *aEditorStatus);
3128 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
3129 bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive);
3130 nsresult WindowIsEditable(nsIDOMWindow *window, bool *_retval);
3131 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
3132 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
3133 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
3134 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
3135 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
3136 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
3137 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
3138 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
3139 nsresult GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled);
3143 object,
3144 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
3145 local
3147 interface nsICommandParams : nsISupports
3149 nsresult GetValueType(const char *name, int16_t *_retval);
3150 nsresult GetBooleanValue(const char *name, bool *_retval);
3151 nsresult GetLongValue(const char *name, int32_t *_retval);
3152 nsresult GetDoubleValue(const char *name, double *_retval);
3153 nsresult GetStringValue(const char *name, nsAString *_retval);
3154 nsresult GetCStringValue(const char *name, char **_retval);
3155 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
3156 nsresult SetBooleanValue(const char *name, bool value);
3157 nsresult SetLongValue(const char *name, int32_t value);
3158 nsresult SetDoubleValue(const char *name, double value);
3159 nsresult SetStringValue(const char *name, const nsAString *value);
3160 nsresult SetCStringValue(const char *name, const char *value);
3161 nsresult SetISupportsValue(const char *name, nsISupports *value);
3162 nsresult RemoveValue(const char *name);
3163 nsresult HasMoreElements(bool *_retval);
3164 nsresult First();
3165 nsresult GetNext(char **_retval);
3169 object,
3170 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
3171 local
3173 interface nsICommandManager : nsISupports
3175 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
3176 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
3177 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, bool *_retval);
3178 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, bool *_retval);
3179 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
3180 nsICommandParams *aCommandParams);
3181 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
3182 nsIDOMWindow *aTargetWindow);
3186 object,
3187 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
3188 local
3190 interface nsIControllerContext : nsISupports
3192 nsresult Init(nsIControllerCommandTable *aCommandTable);
3193 nsresult SetCommandContext(nsISupports *aCommandContext);
3197 object,
3198 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
3199 local
3201 interface nsIController : nsISupports
3203 nsresult IsCommandEnabled(const char *command, bool *_retval);
3204 nsresult SupportsCommand(const char *command, bool *_retval);
3205 nsresult DoCommand(const char *command);
3206 nsresult OnEvent(const char *eventName);
3210 object,
3211 uuid(e2985850-81ca-4b5d-b0f3-e395d50d8564),
3212 local
3214 interface nsIContent : nsISupports
3216 /* This is not a real interface declaration. It's too internal for us. */
3220 object,
3221 uuid(0e1324c9-c997-447e-bcd9-a657802991e4),
3222 local
3224 interface nsIDocument : nsISupports
3226 /* This is not a real interface declaration. It's too internal for us. */
3230 object,
3231 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
3232 local
3234 interface nsIContentSerializer : nsISupports
3236 nsresult Init(uint32_t flags, uint32_t aWrapColumn, const char *aCharSet, bool aIsCopying,
3237 bool aIsWholeDocument);
3238 nsresult AppendText(nsIContent *aText, int32_t aStartOffset, int32_t aEndOffset, nsAString *aStr);
3239 nsresult AppendCDATASection(nsIContent *aCDATASection, int32_t aStartOffset,
3240 int32_t aEndOffset, nsAString *aStr);
3241 nsresult AppendProcessingInstruction(nsIContent *aPI, int32_t aStartOffset,
3242 int32_t aEndOffset, nsAString *aStr);
3243 nsresult AppendComment(nsIContent *aComment, int32_t aStartOffset, int32_t aEndOffset,
3244 nsAString *aStr);
3245 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
3246 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
3247 nsAString *aStr);
3248 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
3249 nsresult Flush(nsAString *aStr);
3250 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
3254 object,
3255 uuid(12efa18c-920a-47cd-94a1-4052f245f76c),
3256 local
3258 interface nsIEditor : nsISupports
3260 typedef void *nsIContentPtr;
3262 nsresult GetSelection([out] nsISelection *_retval);
3263 nsresult Init([in] nsIDOMDocument *doc, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] uint32_t aFlags);
3264 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] bool aSuppressTransaction);
3265 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] bool aSuppressTransaction);
3266 nsresult PostCreate();
3267 nsresult PreDestroy();
3268 nsresult GetFlags([out] uint32_t *_retval);
3269 nsresult SetFlags([in] uint32_t val);
3270 nsresult GetContentsMIMEType([out] char **_retval);
3271 nsresult SetContentsMIMEType([in] const char *val);
3272 nsresult GetIsDocumentEditable([out] bool *_retval);
3273 nsresult GetIsSelectionEditable(bool *aIsSelectionEditable);
3274 nsresult GetDocument([out] nsIDOMDocument **_retval);
3275 nsresult GetRootElement([out] nsIDOMElement **_retval);
3276 nsresult GetSelectionController([out] nsISelectionController **_retval);
3277 nsresult DeleteSelection(int16_t action, int16_t aStripWrappers);
3278 nsresult GetDocumentIsEmpty([out] bool *_retval);
3279 nsresult GetDocumentModified([out] bool *_retval);
3280 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
3281 nsresult SetDocumentCharacterSet([in] const nsACString *val);
3282 nsresult ResetModificationCount();
3283 nsresult GetModificationCount([out] int32_t *_retval);
3284 nsresult IncrementModificationCount([in] int32_t aModCount);
3285 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
3286 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
3287 nsresult DoTransaction([in] nsITransaction *txn);
3288 nsresult EnableUndo([in] bool enable);
3289 nsresult GetNumberOfUndoItems(int32_t *aNumberOfUndoItems);
3290 nsresult GetNumberOfRedoItems(int32_t *aNumberOfRedoItems);
3291 nsresult Undo([in] uint32_t count);
3292 nsresult CanUndo([out] bool *isEnabled, [out] bool *canUndo);
3293 nsresult Redo([in] uint32_t count);
3294 nsresult CanRedo([out] bool *isEnabled, [out] bool *canRedo);
3295 nsresult BeginTransaction();
3296 nsresult EndTransaction();
3297 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
3298 nsresult EndPlaceHolderTransaction();
3299 nsresult ShouldTxnSetSelection([out] bool *_retval);
3300 nsresult SetShouldTxnSetSelection([in] bool should);
3301 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
3302 nsresult SyncRealTimeSpell();
3303 nsresult SetSpellcheckUserOverride(bool enable);
3304 nsresult Cut();
3305 nsresult CanCut([out] bool *_retval);
3306 nsresult Copy();
3307 nsresult CanCopy([out] bool *_retval);
3308 nsresult Paste([in] int32_t aSelectionType);
3309 nsresult PasteTransferable(nsITransferable *aTransferable);
3310 nsresult CanPaste([in] int32_t aSelectionType, [out] bool *_retval);
3311 nsresult CanPasteTransferable(nsITransferable *aTransferable, bool *_retval);
3312 nsresult SelectAll();
3313 nsresult BeginningOfDocument();
3314 nsresult EndOfDocument();
3315 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
3316 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, bool *_retval);
3317 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
3318 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
3319 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
3320 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] int32_t position, [out] nsIDOMNode **_retval);
3321 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] int32_t aPosition);
3322 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] int32_t offset, [out] nsIDOMNode **newLeftNode);
3323 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
3324 nsresult DeleteNode([in] nsIDOMNode *child);
3325 bool OutputsMozDirty();
3326 nsresult MarkNodeDirty([in] nsIDOMNode *node);
3327 nsresult SwitchTextDirection();
3328 nsresult OutputToString([in] nsAString formatType, [in] uint32_t flags, [out] nsAString *_retval);
3329 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] uint32_t flags);
3330 nsresult SetEditorObserver(void /* EditActionListener*/ *observer);
3331 nsresult RemoveEditorObserver();
3332 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
3333 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
3334 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
3335 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
3336 nsresult DumpContentTree();
3337 nsresult DebugDumpContent();
3338 nsresult DebugUnitTests([out] int32_t *outNumTests, [out] int32_t *outNumTestsFailed);
3339 bool IsModifiableNode(nsIDOMNode *aNode);
3340 nsresult GetLastKeypressEventTrusted(bool *aLastKeypressEventTrusted);
3341 nsresult SetSuppressDispatchingInputEvent(bool aSuppressDispatchingInputEvent);
3345 object,
3346 uuid(833f30de-94c7-4630-a852-2300ef329d7b),
3347 local
3349 interface nsIHTMLEditor : nsISupports
3351 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3352 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3353 nsresult RemoveAllDefaultProperties();
3354 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3355 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll);
3356 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll, [out] nsAString *_retval);
3357 nsresult RemoveAllInlineProperties();
3358 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
3359 nsresult IncreaseFontSize();
3360 nsresult DecreaseFontSize();
3361 nsresult NodeIsBlock([in] nsIDOMNode *node, bool *_retval);
3362 nsresult InsertHTML([in] nsAString *aInputString);
3363 nsresult PasteNoFormatting([in] int32_t aSelectionType);
3364 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
3365 nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] int32_t aDestinationOffset, [in] bool aDeleteSelection);
3366 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] bool aDeleteSelection);
3367 nsresult SetDocumentTitle([in] nsAString *aTitle);
3368 nsresult UpdateBaseURL();
3369 nsresult SelectElement([in] nsIDOMElement *aElement);
3370 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
3371 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
3372 nsresult GetParagraphState([out] bool *aMixed, [out] nsAString *_retval);
3373 nsresult GetFontFaceState([out] bool *aMixed, [out] nsAString *_retval);
3374 nsresult GetFontColorState([out] bool *aMixed, [out] nsAString *_retval);
3375 nsresult GetBackgroundColorState([out] bool *aMixed, [out] nsAString *_retval);
3376 nsresult GetHighlightColorState([out] bool *aMixed, [out] nsAString *_retval);
3377 nsresult GetListState([out] bool *aMixed, [out] bool *aOL, [out] bool *aUL, [out] bool *aDL);
3378 nsresult GetListItemState([out] bool *aMixed, [out] bool *aLI, [out] bool *aDT, [out] bool *aDD);
3379 nsresult GetAlignment([out] bool *aMixed, [out] int16_t *aAlign);
3380 nsresult GetIndentState([out] bool *aCanIndent, [out] bool *aCanOutdent);
3381 nsresult MakeOrChangeList([in] nsAString *aListType, [in] bool entireList, [in] nsAString *aBulletType);
3382 nsresult RemoveList([in] nsAString *aListType);
3383 nsresult Indent([in] nsAString *aIndent);
3384 nsresult Align([in] nsAString *aAlign);
3385 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
3386 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3387 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
3388 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
3389 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3390 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
3391 nsresult SetBackgroundColor([in] nsAString *aColor);
3392 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
3393 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
3394 nsresult GetIsCSSEnabled([out] bool *_retval);
3395 nsresult SetIsCSSEnabled([in] bool prb);
3396 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
3397 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
3398 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] bool aIsCreatedHidden, [out] nsIDOMElement **_retval);
3399 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
3400 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
3401 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] bool *_retval);
3402 nsresult GetReturnInParagraphCreatesNewParagraph([out] bool *_retval);
3403 nsresult SetReturnInParagraphCreatesNewParagraph([in] bool prb);
3404 nsresult BreakIsVisible(nsIDOMNode *aNode, bool *_retval);
3405 void /*Element*/ *GetActiveEditingHost();
3409 object,
3410 uuid(318ce516-3f7a-41f6-8f3d-3661650f7a46),
3411 local
3413 interface nsIDocShell : nsISupports
3415 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, uint32_t aLoadFlags, bool firstParty);
3416 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
3417 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
3418 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, uint32_t aFlags, const PRUnichar *aWindowTarget,
3419 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, uint32_t aLoadFlags,
3420 nsISHEntry *aSHEntry, bool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
3421 nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, bool aReplace, JSContext *cx);
3422 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
3423 nsresult PrepareForNewContentModel();
3424 nsresult SetCurrentURI(nsIURI *aURI);
3425 nsresult FirePageHideNotification(bool isUnload);
3426 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
3427 nsresult GetPresShell(nsIPresShell **aPresShell);
3428 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
3429 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
3430 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
3431 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
3432 nsresult GetAllowPlugins(bool *aAllowPlugins);
3433 nsresult SetAllowPlugins(bool aAllowPlugins);
3434 nsresult GetAllowJavascript(bool *aAllowJavascript);
3435 nsresult SetAllowJavascript(bool aAllowJavascript);
3436 nsresult GetDisableNoScript(bool *aDisableNoScript);
3437 nsresult SetDisableNoScript(bool aDisableNoScript);
3438 nsresult GetAllowMetaRedirects(bool *aAllowMetaRedirects);
3439 nsresult SetAllowMetaRedirects(bool aAllowMetaRedirects);
3440 nsresult GetAllowSubframes(bool *aAllowSubframes);
3441 nsresult SetAllowSubframes(bool aAllowSubframes);
3442 nsresult GetAllowImages(bool *aAllowImages);
3443 nsresult SetAllowImages(bool aAllowImages);
3444 nsresult GetAllowDNSPrefetch(bool *aAllowDNSPrefetch);
3445 nsresult SetAllowDNSPrefetch(bool aAllowDNSPrefetch);
3446 nsresult GetAllowWindowControl(bool *aAllowWindowControl);
3447 nsresult SetAllowWindowControl(bool aAllowWindowControl);
3448 nsresult GetDocShellEnumerator(int32_t aItemType, int32_t aDirection, nsISimpleEnumerator **_retval);
3449 nsresult GetAppType(uint32_t *aAppType);
3450 nsresult SetAppType(uint32_t aAppType);
3451 nsresult GetAllowAuth(bool *aAllowAuth);
3452 nsresult SetAllowAuth(bool aAllowAuth);
3453 nsresult GetZoom(float *aZoom);
3454 nsresult SetZoom(float aZoom);
3455 nsresult GetMarginWidth(int32_t *aMarginWidth);
3456 nsresult SetMarginWidth(int32_t aMarginWidth);
3457 nsresult GetMarginHeight(int32_t *aMarginHeight);
3458 nsresult SetMarginHeight(int32_t aMarginHeight);
3459 nsresult TabToTreeOwner(bool forward, bool *tookFocus);
3460 nsresult GetBusyFlags(uint32_t *aBusyFlags);
3461 nsresult GetLoadType(uint32_t *aLoadType);
3462 nsresult SetLoadType(uint32_t aLoadType);
3463 nsresult IsBeingDestroyed(bool *_retval);
3464 nsresult GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler);
3465 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
3466 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
3467 nsresult GetShouldSaveLayoutState(bool *aShouldSaveLayoutState);
3468 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
3469 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
3470 nsresult SuspendRefreshURIs();
3471 nsresult ResumeRefreshURIs();
3472 nsresult BeginRestore(nsIContentViewer *viewer, bool top);
3473 nsresult FinishRestore();
3474 nsresult GetRestoringDocument(bool *aRestoringDocument);
3475 nsresult GetUseErrorPages(bool *aUseErrorPages);
3476 nsresult SetUseErrorPages(bool aUseErrorPages);
3477 nsresult GetPreviousTransIndex(int32_t *aPreviousTransIndex);
3478 nsresult GetLoadedTransIndex(int32_t *aLoadedTransIndex);
3479 nsresult HistoryPurged(int32_t numEntries);
3480 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
3481 bool create, nsIDOMStorage **_retval);
3482 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
3483 nsresult CloneSessionStoragesTo(nsIDocShell *docShell);
3484 nsresult ClearSessionStorages();
3485 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
3486 nsresult SetChildOffset(uint32_t offset);
3487 nsresult GetIsInUnload(bool *aIsInUnload);
3488 nsresult GetChannelIsUnsafe(bool *aChannelIsUnsafe);
3489 void DetachEditorFromWindow();
3490 nsresult GetIsOffScreenBrowser(bool *aIsOffScreenBrowser);
3491 nsresult SetIsOffScreenBrowser(bool aIsOffScreenBrowser);
3492 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
3493 nsresult GetCanExecuteScripts(bool *aCanExecuteScripts);
3494 nsresult GetIsActive(bool *aIsActive);
3495 nsresult SetIsActive(bool aIsActive);
3496 nsresult GetHistoryID(uint64_t *aHistoryID);
3497 nsresult GetIsAppTab(bool *aIsAppTab);
3498 nsresult SetIsAppTab(bool aIsAppTab);
3499 nsresult CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal);
3500 nsresult GetCharset(char **aCharset);
3501 nsresult SetCharset(const char * aCharset);
3502 nsresult GetForcedCharset(nsIAtom **aForcedCharset);
3503 nsresult SetForcedCharset(nsIAtom *aForcedCharset);
3504 nsresult GetParentCharset(nsIAtom **aParentCharset);
3505 nsresult SetParentCharset(nsIAtom *aParentCharset);
3506 nsresult GetParentCharsetSource(int32_t *aParentCharsetSource);
3507 nsresult SetParentCharsetSource(int32_t aParentCharsetSource);
3508 nsresult AddWeakPrivacyTransitionObserver(nsIPrivacyTransitionObserver *obs);
3509 nsresult GetIsBrowserElement(bool *aIsBrowserElement);
3510 nsresult GetIsApp(bool *aIsApp);
3511 nsresult GetIsBrowserOrApp(bool *aIsBrowserOrApp);
3512 nsresult GetIsInBrowserElement(bool *aIsInBrowserElement);
3513 nsresult GetIsInBrowserOrApp(bool *aIsInBrowserOrApp);
3514 nsresult SetIsApp(uint32_t ownAppId);
3515 nsresult SetIsBrowserInsideApp(uint32_t containingAppId);
3516 nsresult GetAppId(uint32_t *aAppId);
3517 nsresult GetSameTypeParentIgnoreBrowserAndAppBoundaries(nsIDocShell **_retval);
3518 nsresult GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled);
3519 nsresult GetSandboxFlags(uint32_t *aSandboxFlags);
3520 nsresult SetSandboxFlags(uint32_t aSandboxFlags);
3521 bool PluginsAllowedInCurrentDoc();
3522 nsresult GetFullscreenAllowed(bool *aFullscreenAllowed);
3523 nsresult SetFullscreenAllowed(bool allowed);
3527 object,
3528 uuid(16fe5e3e-eadc-4312-9d44-b6bedd6b5474),
3529 local
3531 interface nsIMutationObserver : nsISupports
3533 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
3534 void /*CharacterDataChangeInfo*/ *aInfo);
3535 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
3536 void /*CharacterDataChangeInfo*/ *aInfo);
3537 void AttributeWillChange(nsIDocument *aDocument, nsIContent *aContent, int32_t aNameSpaceID,
3538 nsIAtom *aAttribute, int32_t aModType);
3539 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, int32_t aNameSpaceID,
3540 nsIAtom *aAttribute, int32_t aModType);
3541 void AttributeSetToCurrentValue(nsIDocument *aDocument, /*mozilla::dom::Element*/ void *aElement,
3542 int32_t aNameSpaceID, nsIAtom *aAttribute);
3543 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aFirstNewContent,
3544 int32_t aNewIndexInContainer);
3545 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
3546 int32_t aIndexInContainer);
3547 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
3548 int32_t aIndexInContainer, nsIContent *aPreviousSibling);
3549 void NodeWillBeDestroyed(const nsINode *aNode);
3550 void ParentChainChanged(nsIContent *aContent);
3554 object,
3555 uuid(2c4ad90a-740e-4212-ba3f-feacda4b929e),
3556 local
3558 interface nsIParser : nsISupports
3560 typedef int nsDTDMode;
3561 typedef int eParserCommands;
3563 /* From nsParserBase: */
3564 bool IsParserEnabled();
3565 nsresult GetChannel(nsIChannel **aChannel);
3567 void SetContentSink(nsIContentSink *aSink);
3568 nsIContentSink *GetContentSink();
3569 void GetCommand(nsACString *aCommand);
3570 void SetCommand2(const char *aCommand);
3571 void SetCommand(eParserCommands aParserCommand);
3572 void SetDocumentCharset(const nsACString *aCharset, int32_t aSource);
3573 void GetDocumentCharset(nsACString *oCharset, int32_t *oSource);
3574 nsresult GetDTD(nsIDTD **aDTD);
3575 nsIStreamListener *GetStreamListener();
3576 nsresult ContinueInterruptedParsing();
3577 void BlockParser();
3578 void UnblockParser();
3579 void ContinueInterruptedParsingAsync();
3580 bool IsComplete();
3581 nsresult Parse(nsIURI *aURL, nsIRequestObserver *aListener, void *aKey, nsDTDMode aMode);
3582 nsresult Terminate();
3583 nsresult ParseFragment(const nsAString *aSourceBuffer, void /*nsTArray<nsString>*/ *aTagStack);
3584 nsresult BuildModel();
3585 nsresult CancelParsingEvents();
3586 void Reset();
3587 bool IsInsertionPointDefined();
3588 void BeginEvaluatingParserInsertedScript();
3589 void EndEvaluatingParserInsertedScript();
3590 void MarkAsNotScriptCreated(const char *aCommand);
3591 bool IsScriptCreated();
3595 object,
3596 uuid(900bc4bc-8b6c-4cba-82fa-568a80fffd3e),
3597 local
3599 interface nsIDocumentObserver : nsIMutationObserver
3601 typedef uint32_t nsUpdateType;
3603 typedef struct {
3604 uint64_t mStates;
3605 } nsEventStates;
3607 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
3608 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
3609 void BeginLoad(nsIDocument *aDocument);
3610 void EndLoad(nsIDocument *aDocument);
3611 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent, nsEventStates *aStateMask);
3612 void DocumentStatesChanged(nsIDocument *aDocument, nsEventStates *aStateMask);
3613 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, bool aDocumentSheet);
3614 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, bool aDocumentSheet);
3615 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
3616 bool aApplicable);
3617 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
3618 nsIStyleRule *aNewStyleRule);
3619 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
3620 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
3621 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
3622 void AttemptToExecuteScript(nsIContent *aContent, nsIParser *aParser, bool *aBlock);
3626 object,
3627 uuid(c61eac14-5f7a-4481-965e-7eaa6effa85f),
3628 local
3630 interface nsCycleCollectionISupports {}
3633 object,
3634 uuid(3682dd99-8560-44f4-9b8f-ccce9d7b96fb),
3635 local
3637 interface nsIContentUtils : nsISupports
3639 bool IsSafeToRunScript();
3640 nsresult AddDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
3641 nsresult RemoveDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
3642 nsresult AddMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
3643 nsresult RemoveMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
3644 nsresult AddScriptRunner(nsIRunnable *aRunnable);
3645 JSContext *GetContextFromDocument(nsIDocument *aDocument);
3649 object,
3650 uuid(8f672000-bab9-4c60-aaaf-2673c4e2a4c6),
3651 local
3653 interface nsIPluginInstance : nsISupports
3655 nsresult GetDOMElement(nsIDOMElement **aDOMElement);