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