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