Finish the Wine sync. These components are not just rc file changes
[reactos.git] / reactos / dll / win32 / mshtml / nsiface.idl
1 /*
2 * Copyright 2005-2007 Jacek Caban for CodeWeavers
3 *
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.
8 *
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.
13 *
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
17 */
18
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.
24 */
25
26 cpp_quote("#define GECKO_VERSION \"1.0.0\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
28
29 import "wtypes.idl";
30
31 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
32 cpp_quote("#undef GetForm")
33 cpp_quote("#undef SetPort")
34 cpp_quote("#endif")
35
36 typedef HRESULT nsresult;
37 typedef ULONG nsrefcnt;
38
39 typedef IID nsID;
40 typedef IID nsIID;
41 typedef nsIID nsCID;
42 typedef REFIID nsIIDRef;
43 typedef nsIIDRef nsCIDRef;
44
45 typedef void** nsQIResult;
46 typedef WCHAR PRUnichar;
47 typedef ULONG PRUint32;
48 typedef LONG PRInt32;
49 typedef WORD PRUint16;
50 typedef INT16 PRInt16;
51 typedef BYTE PRUint8;
52 typedef BOOL PRBool;
53 typedef LARGE_INTEGER PRInt64;
54 typedef ULARGE_INTEGER PRUint64;
55 typedef PRUint64 DOMTimeStamp;
56 typedef PRUint32 nsLoadFlags;
57
58 typedef struct {
59 void *v;
60 void *d1;
61 PRUint32 d2;
62 void *d3;
63 } nsCStringContainer;
64
65 typedef struct {
66 void *v;
67 void *d1;
68 PRUint32 d2;
69 void *d3;
70 } nsStringContainer;
71
72 typedef nsCStringContainer nsACString;
73 typedef nsStringContainer nsAString;
74
75 interface nsIWebBrowserChrome;
76 interface nsILoadGroup;
77 interface nsIDOMNode;
78 interface nsIDOMDocument;
79 interface nsIDOMEvent;
80 interface nsIEditor;
81 interface nsISelectionController;
82 interface nsITransactionManager;
83 interface nsITransaction;
84 interface nsIInlineSpellChecker;
85 interface nsIOutputStream;
86 interface nsIEditorObserver;
87 interface nsIEditActionListener;
88 interface nsIDocumentStateListener;
89 interface nsIDOMCSSStyleSheet;
90 interface nsIDOMDocumentView;
91 interface nsIDocumentObserver;
92 interface nsIDOMWindow;
93
94 interface IMoniker;
95
96 [
97 object,
98 uuid(00000000-0000-0000-c000-000000000046),
99 local
100 ]
101 interface nsISupports
102 {
103 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
104 nsrefcnt AddRef();
105 nsrefcnt Release();
106 }
107
108 /* Currently we don't need a full declaration of these interfaces */
109 typedef nsISupports nsISHistory;
110 typedef nsISupports nsIWidget;
111 typedef nsISupports nsIHttpHeaderVisitor;
112 typedef nsISupports nsIDOMBarProp;
113 typedef nsISupports nsIPrompt;
114 typedef nsISupports nsIAuthPrompt;
115 typedef nsISupports nsIDOMNamedNodeMap;
116 typedef nsISupports nsIDOMAttr;
117 typedef nsISupports nsIDOMDocumentType;
118 typedef nsISupports nsIDOMDOMImplementation;
119 typedef nsISupports nsIDOMCDATASection;
120 typedef nsISupports nsIDOMProcessingInstruction;
121 typedef nsISupports nsIDOMEntityReference;
122 typedef nsISupports nsIWebProgressListener;
123 typedef nsISupports nsIDOMCSSValue;
124 typedef nsISupports nsIPrintSession;
125 typedef nsISupports nsIControllerCommandTable;
126 typedef nsISupports nsIPrincipal;
127 typedef nsISupports nsIAtom;
128 typedef nsISupports nsISupportsArray;
129 typedef nsISupports nsIContentFilter;
130 typedef nsISupports nsIDOMMediaList;
131 typedef nsISupports nsIDOMHTMLTableCaptionElement;
132 typedef nsISupports nsIDOMHTMLTableSectionElement;
133 typedef nsISupports nsIDOMClientRectList;
134 typedef nsISupports nsIDOMLocation;
135 typedef nsISupports nsIDocument;
136 typedef nsISupports nsIContent;
137 typedef nsISupports nsINode;
138 typedef nsISupports nsIStyleSheet;
139 typedef nsISupports nsIStyleRule;
140 typedef nsISupports nsIVariant;
141 typedef nsISupports nsIDOMUserDataHandler;
142 typedef nsISupports nsIDocShellLoadInfo;
143 typedef nsISupports nsISHEntry;
144 typedef nsISupports nsIPresShell;
145 typedef nsISupports nsIContentViewer;
146 typedef nsISupports nsIDocumentCharsetInfo;
147 typedef nsISupports nsILayoutHistoryState;
148 typedef nsISupports nsISecureBrowserUI;
149 typedef nsISupports nsIDOMStorage;
150
151 [
152 object,
153 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
154 local
155 /* FROZEN */
156 ]
157 interface nsIServiceManager : nsISupports
158 {
159 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
160 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
161 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
162 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
163 }
164
165 [
166 object,
167 uuid(00000001-0000-0000-c000-000000000046),
168 local
169 /* FROZEN */
170 ]
171 interface nsIFactory : nsISupports
172 {
173 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
174 nsresult LockFactory(PRBool lock);
175 }
176
177 [
178 object,
179 uuid(db242e01-e4d9-11d2-9dde-000064657374),
180 local
181 /* FROZEN */
182 ]
183 interface nsIObserver : nsISupports
184 {
185 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
186 }
187
188 [
189 object,
190 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
191 local
192 /* FROZEN */
193 ]
194 interface nsIComponentManager : nsISupports
195 {
196 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
197 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
198 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
199 nsQIResult result);
200 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
201 nsIIDRef aIID, nsQIResult result);
202 }
203
204 [
205 object,
206 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
207 local
208 /* FROZEN */
209 ]
210 interface nsIMemory : nsISupports
211 {
212 void *Alloc(/*size_t*/ int size);
213 void *Realloc(void *_ptr, /*size_t*/ int newSize);
214 void Free(void *_ptr);
215 nsresult HeapMinimize(PRBool immediate);
216 nsresult IsLowMemory(PRBool *_retval);
217 }
218
219 [
220 object,
221 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
222 local
223 /* FROZEN */
224 ]
225 interface nsIWeakReference : nsISupports
226 {
227 nsresult QueryReferent(const nsIID *riid, void **result);
228 }
229
230 [
231 object,
232 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
233 local
234 /* FROZEN */
235 ]
236 interface nsISupportsWeakReference : nsISupports
237 {
238 nsresult GetWeakReference(nsIWeakReference **_retval);
239 }
240
241 [
242 object,
243 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
244 local
245 /* FROZEN */
246 ]
247 interface nsIInterfaceRequestor : nsISupports
248 {
249 nsresult GetInterface(const nsIID *riid, void **result);
250 }
251
252 [
253 object,
254 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
255 local
256 /* NOT_FROZEN */
257 ]
258 interface nsIRunnable : nsISupports
259 {
260 nsresult Run();
261 }
262
263 [
264 object,
265 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
266 local
267 /* FROZEN */
268 ]
269 interface nsISimpleEnumerator : nsISupports
270 {
271 nsresult HasMoreElements(PRBool *_retval);
272 nsresult GetNext(nsISupports **_retval);
273 }
274
275 [
276 object,
277 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
278 local
279 /* FROZEN */
280 ]
281 interface nsIInputStream : nsISupports
282 {
283 nsresult Close();
284 nsresult Available(PRUint32 *_retval);
285 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
286 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
287 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
288 PRUint32 aCount, PRUint32 *aWriteCount),
289 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
290 nsresult IsNonBlocking(PRBool *_retval);
291 }
292
293 [
294 object,
295 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
296 local
297 /* FROZEN */
298 ]
299 interface nsIURI : nsISupports
300 {
301 nsresult GetSpec(nsACString *aSpec);
302 nsresult SetSpec(const nsACString *aSpec);
303 nsresult GetPrePath(nsACString *aPrePath);
304 nsresult GetScheme(nsACString *aScheme);
305 nsresult SetScheme(const nsACString *aScheme);
306 nsresult GetUserPass(nsACString *aUserPass);
307 nsresult SetUserPass(const nsACString *aUserPass);
308 nsresult GetUsername(nsACString *aUsername);
309 nsresult SetUsername(const nsACString *aUsername);
310 nsresult GetPassword(nsACString *aPassword);
311 nsresult SetPassword(const nsACString *aPassword);
312 nsresult GetHostPort(nsACString *aHostPort);
313 nsresult SetHostPort(const nsACString *aHostPort);
314 nsresult GetHost(nsACString *aHost);
315 nsresult SetHost(const nsACString *aHost);
316 nsresult GetPort(PRInt32 *aPort);
317 nsresult SetPort(PRInt32 aPort);
318 nsresult GetPath(nsACString *aPath);
319 nsresult SetPath(const nsACString *aPath);
320 nsresult Equals(nsIURI *other, PRBool *_retval);
321 nsresult SchemeIs(const char *scheme, PRBool *_retval);
322 nsresult Clone(nsIURI **_retval);
323 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
324 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
325 nsresult GetAsciiHost(nsACString *aAsciiHost);
326 nsresult GetOriginCharset(nsACString *aOriginCharset);
327 }
328
329 [
330 object,
331 uuid(d6116970-8034-11d3-9399-00104ba0fd40),
332 local
333 /* FROZEN */
334 ]
335 interface nsIURL : nsIURI
336 {
337 nsresult GetFilePath(nsACString *aFilePath);
338 nsresult SetFilePath(const nsACString *aFilePath);
339 nsresult GetParam(nsACString *aParam);
340 nsresult SetParam(const nsACString *aParam);
341 nsresult GetQuery(nsACString *aQuery);
342 nsresult SetQuery(const nsACString *aQuery);
343 nsresult GetRef(nsACString *aRef);
344 nsresult SetRef(const nsACString *aRef);
345 nsresult GetDirectory(nsACString *aDirectory);
346 nsresult SetDirectory(const nsACString *aDirectory);
347 nsresult GetFileName(nsACString *aFileName);
348 nsresult SetFileName(const nsACString *aFileName);
349 nsresult GetFileBaseName(nsACString *aFileBaseName);
350 nsresult SetFileBaseName(const nsACString *aFileBaseName);
351 nsresult GetFileExtension(nsACString *aFileExtension);
352 nsresult SetFileExtension(const nsACString *aFileExtension);
353 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
354 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
355 }
356
357 [
358 object,
359 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
360 local
361 /* FROZEN */
362 ]
363 interface nsIRequest : nsISupports
364 {
365 nsresult GetName(nsACString *aName);
366 nsresult IsPending(PRBool *_retval);
367 nsresult GetStatus(nsresult *aStatus);
368 nsresult Cancel(nsresult aStatus);
369 nsresult Suspend();
370 nsresult Resume();
371 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
372 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
373 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
374 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
375 }
376
377 [
378 object,
379 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
380 local
381 /* FROZEN */
382 ]
383 interface nsIRequestObserver : nsISupports
384 {
385 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
386 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
387 }
388
389 [
390 object,
391 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
392 local
393 /* FROZEN */
394 ]
395 interface nsIStreamListener : nsIRequestObserver
396 {
397 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
398 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
399 }
400
401 [
402 object,
403 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
404 local
405 /* FROZEN */
406 ]
407 interface nsILoadGroup : nsIRequest
408 {
409 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
410 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
411 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
412 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
413 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
414 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
415 nsresult GetRequests(nsISimpleEnumerator **aRequests);
416 nsresult GetActiveCount(PRUint32 *aActiveCount);
417 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
418 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
419 }
420
421 [
422 object,
423 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
424 local
425 /* FROZEN */
426 ]
427 interface nsIChannel : nsIRequest
428 {
429 nsresult GetOriginalURI(nsIURI **aOriginalURI);
430 nsresult SetOriginalURI(nsIURI *aOriginalURI);
431 nsresult GetURI(nsIURI **aURI);
432 nsresult GetOwner(nsISupports **aOwner);
433 nsresult SetOwner(nsISupports *aOwner);
434 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
435 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
436 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
437 nsresult GetContentType(nsACString *aContentType);
438 nsresult SetContentType(const nsACString *aContentType);
439 nsresult GetContentCharset(nsACString *aContentCharset);
440 nsresult SetContentCharset(const nsACString *aContentCharset);
441 nsresult GetContentLength(PRInt32 *aContentLength);
442 nsresult SetContentLength(PRInt32 aContentLength);
443 nsresult Open(nsIInputStream **_retval);
444 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
445 }
446
447 [
448 object,
449 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
450 local
451 /* FROZEN */
452 ]
453 interface nsIHttpChannel : nsIChannel
454 {
455 nsresult GetRequestMethod(nsACString *aRequestMethod);
456 nsresult SetRequestMethod(const nsACString *aRequestMethod);
457 nsresult GetReferrer(nsIURI **aReferrer);
458 nsresult SetReferrer(nsIURI *aReferrer);
459 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
460 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
461 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
462 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
463 nsresult SetAllowPipelining(PRBool aAllowPipelining);
464 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
465 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
466 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
467 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
468 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
469 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
470 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
471 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
472 nsresult IsNoStoreResponse(PRBool *_retval);
473 nsresult IsNoCacheResponse(PRBool *_retval);
474 }
475
476 [
477 object,
478 uuid(0eb66361-faaa-4e52-8c7e-6c25f11f8e3c),
479 local
480 /* NOT_FROZEN */
481 ]
482 interface nsIHttpChannelInternal : nsISupports
483 {
484 nsresult GetDocumentURI(nsIURI **aDocumentURI);
485 nsresult SetDocumentURI(nsIURI *aDocumentURI);
486 nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
487 nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
488 nsresult SetCookie(const char *aCookieHeader);
489 nsresult SetupFallbackChannel(const char *aFallbackKey);
490 nsresult GetForceAllowThirdPartyCookie(PRBool *aForceAllowThirdPartyCookie);
491 nsresult SetForceAllowThirdPartyCookie(PRBool aForceAllowThirdPartyCookie);
492 }
493
494 [
495 object,
496 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
497 local
498 /* FROZEN */
499 ]
500 interface nsIUploadChannel : nsISupports
501 {
502 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
503 PRInt32 aContentLength);
504 nsresult GetUploadStream(nsIInputStream **aUploadStream);
505 }
506
507 [
508 object,
509 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
510 local
511 /* FROZEN */
512 ]
513 interface nsIDOMCSSRule : nsISupports
514 {
515 nsresult GetType(PRUint16 *aType);
516 nsresult GetCssText(nsAString *aCssText);
517 nsresult SetCssText(const nsAString *aCssText);
518 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
519 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
520 }
521
522 [
523 object,
524 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
525 local
526 /* FROZEN */
527 ]
528 interface nsIDOMCSSStyleDeclaration : nsISupports
529 {
530 nsresult GetCssText(nsAString *aCssText);
531 nsresult SetCssText(const nsAString *aCssText);
532 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
533 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
534 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
535 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
536 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
537 const nsAString *priority);
538 nsresult GetLength(PRUint32 *aLength);
539 nsresult Item(PRUint32 index, nsAString *_retval);
540 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
541 }
542
543 [
544 object,
545 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
546 local
547 /* FROZEN */
548 ]
549 interface nsIDOMCSSRuleList : nsISupports
550 {
551 nsresult GetLength(PRUint32 *aLength);
552 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
553 }
554
555 [
556 object,
557 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
558 local
559 /* FROZEN */
560 ]
561 interface nsIDOMStyleSheet : nsISupports
562 {
563 nsresult GetType(nsAString *aType);
564 nsresult GetDisabled(PRBool *aDisabled);
565 nsresult SetDisabled(PRBool aDisabled);
566 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
567 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
568 nsresult GetHref(nsAString *aHref);
569 nsresult GetTitle(nsAString *aTitle);
570 nsresult GetMedia(nsIDOMMediaList **aMedia);
571 }
572
573 [
574 object,
575 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
576 local
577 /* FROZEN */
578 ]
579 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
580 {
581 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
582 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
583 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
584 nsresult DeleteRule(PRUint32 index);
585 }
586
587 [
588 object,
589 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
590 local
591 /* FROZEN */
592 ]
593 interface nsIDOMStyleSheetList : nsISupports
594 {
595 nsresult GetLength(PRUint32 *aLength);
596 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
597 }
598
599 [
600 object,
601 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
602 local
603 /* FROZEN */
604 ]
605 interface nsIDOMNodeList : nsISupports
606 {
607 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
608 nsresult GetLength(PRUint32 *aLength);
609 }
610
611 [
612 object,
613 uuid(29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f),
614 local
615 /* NOT_FROZEN */
616 ]
617 interface nsIDOM3Node : nsISupports
618 {
619 enum NSDOCPOSITION {
620 DISCONNECTED = 1,
621 PRECEDING = 2,
622 FOLLOWING = 4,
623 CONTAINS = 8,
624 CONTAINED_BY = 16,
625 IMPLEMENTATION_SPECIFIC = 32
626 };
627
628 nsresult GetBaseURI(nsAString *aBaseURI);
629 nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
630 nsresult GetTextContent(nsAString *aTextContent);
631 nsresult SetTextContent(const nsAString *aTextContent);
632 nsresult IsSameNode(nsIDOMNode *other, PRBool *_retval);
633 nsresult LookupPrefix(const nsAString *namespaceURI, PRBool *_retval);
634 nsresult IsDefaultNamespace(const nsAString *namespaceURI, PRBool *_retval);
635 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval);
636 nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
637 nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval);
638 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
639 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
640 }
641
642 [
643 object,
644 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
645 local
646 /* FROZEN */
647 ]
648 interface nsIDOMNode : nsISupports
649 {
650 enum NSNODETYPE {
651 ELEMENT_NODE = 1,
652 ATTRIBUTE_NODE = 2,
653 TEXT_NODE = 3,
654 CDATA_SELECTION_NODE = 4,
655 ENTITY_REFERENCE_NODE = 5,
656 ENTITY_NODE = 6,
657 PROCESSING_INSTRUCTION_NODE = 7,
658 COMMENT_NODE = 8,
659 DOCUMENT_NODE = 9,
660 DOCUMENT_TYPE_NODE = 10,
661 DOCUMENT_FRAGMENT_NODE = 11,
662 NOTATION_NODE = 12
663 };
664
665 nsresult GetNodeName(nsAString *aNodeName);
666 nsresult GetNodeValue(nsAString *aNodeValue);
667 nsresult SetNodeValue(const nsAString *aNodeValue);
668 nsresult GetNodeType(PRUint16 *aNodeType);
669 nsresult GetParentNode(nsIDOMNode **aParentNode);
670 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
671 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
672 nsresult GetLastChild(nsIDOMNode **aLastChild);
673 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
674 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
675 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
676 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
677 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
678 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
679 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
680 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
681 nsresult HasChildNodes(PRBool *_retval);
682 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
683 nsresult Normalize();
684 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
685 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
686 nsresult GetPrefix(nsAString *aPrefix);
687 nsresult SetPrefix(const nsAString *aPrefix);
688 nsresult GetLocalName(nsAString *aLocalName);
689 nsresult HasAttributes(PRBool *_retval);
690 }
691
692 [
693 object,
694 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
695 local
696 /* FROZEN */
697 ]
698 interface nsIDOMElement : nsIDOMNode
699 {
700 nsresult GetTagName(nsAString *aTagName);
701 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
702 nsresult SetAttribute(const nsAString *name, const nsAString *value);
703 nsresult RemoveAttribute(const nsAString *name);
704 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
705 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
706 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
707 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
708 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
709 nsAString *_retval);
710 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
711 const nsAString *value);
712 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
713 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
714 nsIDOMAttr **_retval);
715 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
716 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
717 nsIDOMNodeList **_retval);
718 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
719 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
720 PRBool *_retval);
721 }
722
723 [
724 object,
725 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
726 local
727 /* FROZEN */
728 ]
729 interface nsIDOMElementCSSInlineStyle : nsISupports
730 {
731 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
732 }
733
734 [
735 object,
736 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
737 local
738 /* NOT_FROZEN */
739 ]
740 interface nsIDOMClientRect : nsISupports
741 {
742 nsresult GetLeft(float *aLeft);
743 nsresult GetTop(float *aTop);
744 nsresult GetRight(float *aRight);
745 nsresult GetBottom(float *aBottom);
746 nsresult GetWidth(float *aWidth);
747 nsresult GetHeight(float *aHeight);
748 }
749
750 [
751 object,
752 uuid(f0aef489-18c5-4de6-99d5-58b3758b098c),
753 local
754 /* NOT_FROZEN */
755 ]
756 interface nsIDOMNSElement : nsISupports
757 {
758 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
759 nsresult GetClientRects(nsIDOMClientRectList **_retval);
760 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
761 nsresult GetScrollTop(PRInt32 *aScrollTop);
762 nsresult SetScrollTop(PRInt32 aScrollTop);
763 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
764 nsresult SetScrollLeft(PRInt32 aScrollLeft);
765 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
766 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
767 nsresult GetClientTop(PRInt32 *aClientTop);
768 nsresult GetClientLeft(PRInt32 *aClientLeft);
769 nsresult GetClientHeight(PRInt32 *aClientHeight);
770 nsresult GetClientWidth(PRInt32 *aClientWidth);
771 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
772 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
773 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
774 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
775 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
776 nsresult GetChildren(nsIDOMNodeList **aChildren);
777 }
778
779 cpp_quote("#undef GetClassName")
780
781 [
782 object,
783 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
784 local
785 /* FROZEN */
786 ]
787 interface nsIDOMHTMLElement : nsIDOMElement
788 {
789 nsresult GetId(nsAString *aId);
790 nsresult SetId(const nsAString *aId);
791 nsresult GetTitle(nsAString *aTitle);
792 nsresult SetTitle(const nsAString *aTitle);
793 nsresult GetLang(nsAString *aLang);
794 nsresult SetLang(const nsAString *aLang);
795 nsresult GetDir(nsAString *aDir);
796 nsresult SetDir(const nsAString *aDir);
797 nsresult GetClassName(nsAString *aClassName);
798 nsresult SetClassName(const nsAString *aClassName);
799 }
800
801 [
802 object,
803 uuid(7f142f9a-fba7-4949-93d6-cf08a974ac51),
804 local
805 /* NOT_FROZEN */
806 ]
807 interface nsIDOMNSHTMLElement : nsISupports
808 {
809 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
810 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
811 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
812 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
813 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
814 nsresult GetInnerHTML(nsAString *aInnerHTML);
815 nsresult SetInnerHTML(const nsAString *aInnerHTML);
816 nsresult GetTabIndex(PRInt32 *aTabIndex);
817 nsresult SetTabIndex(PRInt32 aTabIndex);
818 nsresult GetContentEditable(nsAString *aContentEditable);
819 nsresult SetContentEditable(const nsAString *aContentEditable);
820 nsresult GetDraggable(PRBool *aDraggable);
821 nsresult SetDraggable(PRBool aDraggable);
822 nsresult Blur();
823 nsresult Focus();
824 nsresult ScrollIntoView(PRBool top);
825 nsresult GetSpellcheck(PRBool *aSpellcheck);
826 nsresult SetSpellcheck(PRBool aSpellcheck);
827 }
828
829 [
830 object,
831 uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
832 local
833 /* FROZEN */
834 ]
835 interface nsIDOMHTMLCollection : nsISupports
836 {
837 nsresult GetLength(PRUint32 *aLength);
838 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
839 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
840 }
841
842 [
843 object,
844 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
845 local
846 /* FROZEN */
847 ]
848 interface nsIDOMCharacterData : nsIDOMNode
849 {
850 nsresult GetData(nsAString *aData);
851 nsresult SetData(const nsAString *aData);
852 nsresult GetLength(PRUint32 *aLength);
853 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
854 nsresult AppendData(const nsAString *arg);
855 nsresult InsertData(PRUint32 offset, const nsAString *arg);
856 nsresult DeleteData(PRUint32 offset, PRUint32 count);
857 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
858 }
859
860 [
861 object,
862 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
863 local
864 /* FROZEN */
865 ]
866 interface nsIDOMText : nsIDOMCharacterData
867 {
868 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
869 }
870
871 [
872 object,
873 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
874 local
875 /* FROZEN */
876 ]
877 interface nsIDOMComment : nsIDOMCharacterData
878 {
879 }
880
881 [
882 object,
883 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
884 local
885 /* FROZEN */
886 ]
887 interface nsIDOMDocumentFragment : nsIDOMNode
888 {
889 }
890
891 [
892 object,
893 uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
894 local
895 /* FROZEN */
896 ]
897 interface nsIDOMAbstractView : nsISupports
898 {
899 nsresult GetDocument(nsIDOMDocumentView **aDocument);
900 }
901
902 [
903 object,
904 uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
905 local
906 /* NOT_FROZEN */
907 ]
908 interface nsIDOMViewCSS : nsIDOMAbstractView
909 {
910 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
911 }
912
913 [
914 object,
915 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
916 local
917 /* FROZEN */
918 ]
919 interface nsIDOMDocument : nsIDOMNode
920 {
921 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
922 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
923 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
924 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
925 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
926 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
927 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
928 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
929 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
930 nsIDOMProcessingInstruction **_retval);
931 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
932 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
933 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
934 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
935 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
936 nsIDOMElement **_retval);
937 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
938 nsIDOMAttr **_retval);
939 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
940 nsIDOMNodeList **_retval);
941 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
942 }
943
944 [
945 object,
946 uuid(09a439ad-4079-46d5-a050-4d7015d1a108),
947 local
948 /* NOT_FROZEN */
949 ]
950 interface nsIDOMNSDocument : nsISupports
951 {
952 nsresult GetCharacterSet(nsAString *aCharacterSet);
953 nsresult GetDir(nsAString *aDir);
954 nsresult SetDir(const nsAString *aDir);
955 nsresult GetLocation(nsIDOMLocation **aLocation);
956 nsresult GetTitle(nsAString *aTitle);
957 nsresult SetTitle(const nsAString *aTitle);
958 nsresult GetContentType(nsAString *aContentType);
959 nsresult GetReadyState(nsAString *aReadyState);
960 nsresult GetLastModified(nsAString *aLastModified);
961 nsresult GetReferrer(nsAString *aReferrer);
962 nsresult HasFocus(PRBool *_retval);
963 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
964 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
965 nsresult ElementFromPoint(PRInt32 x, PRInt32 y, nsIDOMElement **_retval);
966
967 /* Wine extensions */
968 nsresult WineAddObserver(nsIDocumentObserver *aObserver);
969 nsresult WineRemoveObserver(nsIDocumentObserver *aObserver);
970 nsresult WineAddScriptRunner(nsIRunnable *aRunnable);
971 }
972
973 [
974 object,
975 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
976 local
977 /* FROZEN */
978 ]
979 interface nsIDOMHTMLDocument : nsIDOMDocument
980 {
981 nsresult GetTitle(nsAString *aTitle);
982 nsresult SetTitle(const nsAString *aTitle);
983 nsresult GetReferrer(nsAString *aReferrer);
984 nsresult GetDomain(nsAString *aDomain);
985 nsresult GetURL(nsAString *aURL);
986 nsresult GetBody(nsIDOMHTMLElement **aBody);
987 nsresult SetBody(nsIDOMHTMLElement *aBody);
988 nsresult GetImages(nsIDOMHTMLCollection **aImages);
989 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
990 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
991 nsresult GetForms(nsIDOMHTMLCollection **aForms);
992 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
993 nsresult GetCookie(nsAString *aCookie);
994 nsresult SetCookie(const nsAString *aCookie);
995 nsresult Open();
996 nsresult Close();
997 nsresult Write(const nsAString *text);
998 nsresult Writeln(const nsAString *text);
999 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
1000 }
1001
1002 [
1003 object,
1004 uuid(79beb289-3644-4b54-9432-9fb993945629),
1005 local
1006 /* NOT_FROZEN */
1007 ]
1008 interface nsIDOMNSHTMLDocument : nsISupports
1009 {
1010 nsresult GetWidth(PRInt32 *aWidth);
1011 nsresult GetHeight(PRInt32 *aHeight);
1012 nsresult GetAlinkColor(nsAString *aAlinkColor);
1013 nsresult SetAlinkColor(const nsAString *aAlinkColor);
1014 nsresult GetLinkColor(nsAString *aLinkColor);
1015 nsresult SetLinkColor(const nsAString *aLinkColor);
1016 nsresult GetVlinkColor(nsAString *aVlinkColor);
1017 nsresult SetVlinkColor(const nsAString *aVlinkColor);
1018 nsresult GetBgColor(nsAString *aBgColor);
1019 nsresult SetBgColor(const nsAString *aBgColor);
1020 nsresult GetFgColor(nsAString *aFgColor);
1021 nsresult SetFgColor(const nsAString *aFgColor);
1022 nsresult GetDomain(nsAString *aDomain);
1023 nsresult SetDomain(const nsAString *aDomain);
1024 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1025 nsresult GetSelection(nsAString *_retval);
1026 nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
1027 nsresult Write();
1028 nsresult Writeln();
1029 nsresult Clear();
1030 nsresult CaptureEvents(PRInt32 eventFlags);
1031 nsresult ReleaseEvents(PRInt32 eventFlags);
1032 nsresult RouteEvent(nsIDOMEvent *evt);
1033 nsresult GetCompatMode(nsAString *aCompatMode);
1034 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1035 nsresult GetDesignMode(nsAString *aDesignMode);
1036 nsresult SetDesignMode(const nsAString *aDesignMode);
1037 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
1038 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
1039 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
1040 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
1041 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
1042 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
1043 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
1044 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1045 }
1046
1047 [
1048 object,
1049 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
1050 local
1051 /* FROZEN */
1052 ]
1053 interface nsIDOMDocumentStyle : nsISupports
1054 {
1055 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1056 }
1057
1058 [
1059 object,
1060 uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
1061 local
1062 /* FROZEN */
1063 ]
1064 interface nsIDOMDocumentView : nsISupports
1065 {
1066 nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
1067 }
1068
1069 [
1070 object,
1071 uuid(46b91d66-28e2-11d4-ab1e-0010830123b4),
1072 local
1073 /* FROZEN */
1074 ]
1075 interface nsIDOMDocumentEvent : nsISupports
1076 {
1077 cpp_quote("#undef CreateEvent")
1078 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1079 }
1080
1081 [
1082 object,
1083 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
1084 local
1085 /* FROZEN */
1086 ]
1087 interface nsIDOMRange : nsISupports
1088 {
1089 enum {
1090 NS_START_TO_START,
1091 NS_START_TO_END,
1092 NS_END_TO_END,
1093 NS_END_TO_START
1094 };
1095
1096 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1097 nsresult GetStartOffset(PRInt32 *aStartOffset);
1098 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1099 nsresult GetEndOffset(PRInt32 *aEndOffset);
1100 nsresult GetCollapsed(PRBool *aCollapsed);
1101 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1102 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1103 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1104 nsresult SetStartBefore(nsIDOMNode *refNode);
1105 nsresult SetStartAfter(nsIDOMNode *refNode);
1106 nsresult SetEndBefore(nsIDOMNode *refNode);
1107 nsresult SetEndAfter(nsIDOMNode *refNode);
1108 nsresult Collapse(PRBool toStart);
1109 nsresult SelectNode(nsIDOMNode *refNode);
1110 nsresult SelectNodeContents(nsIDOMNode *refNode);
1111 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1112 nsresult DeleteContents();
1113 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1114 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1115 nsresult InsertNode(nsIDOMNode *newNode);
1116 nsresult SurroundContents(nsIDOMNode *newParent);
1117 nsresult CloneRange(nsIDOMRange **_retval);
1118 nsresult ToString(nsAString *_retval);
1119 nsresult Detach();
1120 }
1121
1122 [
1123 object,
1124 uuid(59188642-23b4-41d6-bde1-302c3906d1f0),
1125 local
1126 /* NOT_FROZEN */
1127 ]
1128 interface nsIDOMNSRange : nsISupports
1129 {
1130 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1131 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1132 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1133 }
1134
1135
1136 [
1137 object,
1138 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1139 local
1140 /* FROZEN */
1141 ]
1142 interface nsIDOMDocumentRange : nsISupports
1143 {
1144 nsresult CreateRange(nsIDOMRange **_retval);
1145 }
1146
1147 [
1148 object,
1149 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1150 local
1151 /* FROZEN */
1152 ]
1153 interface nsISelection : nsISupports
1154 {
1155 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1156 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1157 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1158 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1159 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1160 nsresult GetRangeCount(PRInt32 *aRangeCount);
1161 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1162 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1163 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1164 nsresult CollapseToStart();
1165 nsresult CollapseToEnd();
1166 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1167 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1168 nsresult AddRange(nsIDOMRange *range);
1169 nsresult RemoveRange(nsIDOMRange *range);
1170 nsresult RemoveAllRanges();
1171 nsresult DeleteFromDocument();
1172 nsresult SelectionLanguageChange(PRBool langRTL);
1173 nsresult ToString(PRUnichar **_retval);
1174 }
1175
1176 [
1177 object,
1178 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1179 local
1180 /* FROZEN */
1181 ]
1182 interface nsIDOMWindowCollection : nsISupports
1183 {
1184 nsresult GetLength(PRUint32 *aLength);
1185 nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1186 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1187 }
1188
1189 [
1190 object,
1191 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1192 local
1193 /* FROZEN */
1194 ]
1195 interface nsIDOMWindow : nsISupports
1196 {
1197 nsresult GetDocument(nsIDOMDocument **aDocument);
1198 nsresult GetParent(nsIDOMWindow **aParent);
1199 nsresult GetTop(nsIDOMWindow **aTop);
1200 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1201 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1202 nsresult GetName(nsAString *aName);
1203 nsresult SetName(const nsAString *aName);
1204 nsresult GetTextZoom(float *aTextZoom);
1205 nsresult SetTextZoom(float aTextZoom);
1206 nsresult GetScrollX(PRInt32 *aScrollX);
1207 nsresult GetScrollY(PRInt32 *aScrollY);
1208 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1209 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1210 nsresult GetSelection(nsISelection **_retval);
1211 nsresult ScrollByLines(PRInt32 numLines);
1212 nsresult ScrollByPages(PRInt32 numPages);
1213 nsresult SizeToContent();
1214 }
1215
1216 [
1217 object,
1218 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1219 local
1220 /* FROZEN */
1221 ]
1222 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1223 {
1224 nsresult GetALink(nsAString *aALink);
1225 nsresult SetALink(const nsAString *aALink);
1226 nsresult GetBackground(nsAString *aBackground);
1227 nsresult SetBackground(const nsAString *aBackground);
1228 nsresult GetBgColor(nsAString *aBgColor);
1229 nsresult SetBgColor(const nsAString *aBgColor);
1230 nsresult GetLink(nsAString *aLink);
1231 nsresult SetLink(const nsAString *aLink);
1232 nsresult GetText(nsAString *aText);
1233 nsresult SetText(const nsAString *aText);
1234 nsresult GetVLink(nsAString *aVLink);
1235 nsresult SetVLink(const nsAString *aVLink);
1236 }
1237
1238 [
1239 object,
1240 uuid(a6cf908f-15b3-11d2-932e-00805f8add32),
1241 local
1242 /* FROZEN */
1243 ]
1244 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1245 {
1246 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1247 nsresult GetLength(PRInt32 *aLength);
1248 nsresult GetName(nsAString *aName);
1249 nsresult SetName(const nsAString *aName);
1250 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1251 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1252 nsresult GetAction(nsAString *aAction);
1253 nsresult SetAction(const nsAString *aAction);
1254 nsresult GetEnctype(nsAString *aEnctype);
1255 nsresult SetEnctype(const nsAString *aEnctype);
1256 nsresult GetMethod(nsAString *aMethod);
1257 nsresult SetMethod(const nsAString *aMethod);
1258 nsresult GetTarget(nsAString *aTarget);
1259 nsresult SetTarget(const nsAString *aTarget);
1260 nsresult Submit();
1261 nsresult Reset();
1262 }
1263
1264 [
1265 object,
1266 uuid(a6cf9093-15b3-11d2-932e-00805f8add32),
1267 local
1268 /* FROZEN */
1269 ]
1270 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1271 {
1272 nsresult GetDefaultValue(nsAString *aDefaultValue);
1273 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1274 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1275 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1276 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1277 nsresult GetAccept(nsAString *aAccept);
1278 nsresult SetAccept(const nsAString *aAccept);
1279 nsresult GetAccessKey(nsAString *aAccessKey);
1280 nsresult SetAccessKey(const nsAString *aAccessKey);
1281 nsresult GetAlign(nsAString *aAlign);
1282 nsresult SetAlign(const nsAString *aAlign);
1283 nsresult GetAlt(nsAString *aAlt);
1284 nsresult SetAlt(const nsAString *aAlt);
1285 nsresult GetChecked(PRBool *aChecked);
1286 nsresult SetChecked(PRBool aChecked);
1287 nsresult GetDisabled(PRBool *aDisabled);
1288 nsresult SetDisabled(PRBool aDisabled);
1289 nsresult GetMaxLength(PRInt32 *aMaxLength);
1290 nsresult SetMaxLength(PRInt32 aMaxLength);
1291 nsresult GetName(nsAString *aName);
1292 nsresult SetName(const nsAString *aName);
1293 nsresult GetReadOnly(PRBool *aReadOnly);
1294 nsresult SetReadOnly(PRBool aReadOnly);
1295 nsresult GetSize(PRUint32 *aSize);
1296 nsresult SetSize(PRUint32 aSize);
1297 nsresult GetSrc(nsAString *aSrc);
1298 nsresult SetSrc(const nsAString *aSrc);
1299 nsresult GetTabIndex(PRInt32 *aTabIndex);
1300 nsresult SetTabIndex(PRInt32 aTabIndex);
1301 nsresult GetType(nsAString *aType);
1302 nsresult SetType(const nsAString *aType);
1303 nsresult GetUseMap(nsAString *aUseMap);
1304 nsresult SetUseMap(const nsAString *aUseMap);
1305 nsresult GetValue(nsAString *aValue);
1306 nsresult SetValue(const nsAString *aValue);
1307 nsresult Blur();
1308 nsresult Focus();
1309 nsresult Select();
1310 nsresult Click();
1311 }
1312
1313 [
1314 object,
1315 uuid(a6cf9092-15b3-11d2-932e-00805f8add32),
1316 local
1317 /* FROZEN */
1318 ]
1319 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1320 {
1321 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1322 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1323 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1324 nsresult GetText(nsAString *aText);
1325 nsresult GetIndex(PRInt32 *aIndex);
1326 nsresult GetDisabled(PRBool *aDisabled);
1327 nsresult SetDisabled(PRBool aDisabled);
1328 nsresult GetLabel(nsAString *aLabel);
1329 nsresult SetLabel(const nsAString *aLabel);
1330 nsresult GetSelected(PRBool *aSelected);
1331 nsresult SetSelected(PRBool aSelected);
1332 nsresult GetValue(nsAString *aValue);
1333 nsresult SetValue(const nsAString *aValue);
1334 }
1335
1336 [
1337 object,
1338 uuid(bce0213c-f70f-488f-b93f-688acca55d63),
1339 local
1340 /* FROZEN */
1341 ]
1342 interface nsIDOMHTMLOptionsCollection : nsISupports
1343 {
1344 nsresult GetLength(PRUint32 *aLength);
1345 nsresult SetLength(PRUint32 aLength);
1346 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1347 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1348 }
1349
1350 [
1351 object,
1352 uuid(a6cf9090-15b3-11d2-932e-00805f8add32),
1353 local
1354 /* FROZEN */
1355 ]
1356 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1357 {
1358 nsresult GetType(nsAString *aType);
1359 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1360 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1361 nsresult GetValue(nsAString *aValue);
1362 nsresult SetValue(const nsAString *aValue);
1363 nsresult GetLength(PRUint32 *aLength);
1364 nsresult SetLength(PRUint32 aLength);
1365 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1366 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1367 nsresult GetDisabled(PRBool *aDisabled);
1368 nsresult SetDisabled(PRBool aDisabled);
1369 nsresult GetMultiple(PRBool *aMultiple);
1370 nsresult SetMultiple(PRBool aMultiple);
1371 nsresult GetName(nsAString *aName);
1372 nsresult SetName(const nsAString *aName);
1373 nsresult GetSize(PRInt32 *aSize);
1374 nsresult SetSize(PRInt32 aSize);
1375 nsresult GetTabIndex(PRInt32 *aTabIndex);
1376 nsresult SetTabIndex(PRInt32 aTabIndex);
1377 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1378 nsresult Remove(PRInt32 index);
1379 nsresult Blur();
1380 nsresult Focus();
1381 }
1382
1383 [
1384 object,
1385 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1386 local
1387 /* FROZEN */
1388 ]
1389 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1390 {
1391 nsresult GetDefaultValue(nsAString *aDefaultValue);
1392 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1393 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1394 nsresult GetAccessKey(nsAString *aAccessKey);
1395 nsresult SetAccessKey(const nsAString *aAccessKey);
1396 nsresult GetCols(PRInt32 *aCols);
1397 nsresult SetCols(PRInt32 aCols);
1398 nsresult GetDisabled(PRBool *aDisabled);
1399 nsresult SetDisabled(PRBool aDisabled);
1400 nsresult GetName(nsAString *aName);
1401 nsresult SetName(const nsAString *aName);
1402 nsresult GetReadOnly(PRBool *aReadOnly);
1403 nsresult SetReadOnly(PRBool aReadOnly);
1404 nsresult GetRows(PRInt32 *aRows);
1405 nsresult SetRows(PRInt32 aRows);
1406 nsresult GetTabIndex(PRInt32 *aTabIndex);
1407 nsresult SetTabIndex(PRInt32 aTabIndex);
1408 nsresult GetType(nsAString *aType);
1409 nsresult GetValue(nsAString *aValue);
1410 nsresult SetValue(const nsAString *aValue);
1411 nsresult Blur();
1412 nsresult Focus();
1413 nsresult Select();
1414 }
1415
1416 [
1417 object,
1418 uuid(a6cf90b1-15b3-11d2-932e-00805f8add32),
1419 local
1420 /* FROZEN */
1421 ]
1422 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1423 {
1424 nsresult GetText(nsAString *aText);
1425 nsresult SetText(const nsAString *aText);
1426 nsresult GetHtmlFor(nsAString *aHtmlFor);
1427 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1428 nsresult GetEvent(nsAString *aEvent);
1429 nsresult SetEvent(const nsAString *aEvent);
1430 nsresult GetCharset(nsAString *aCharset);
1431 nsresult SetCharset(const nsAString *aCharset);
1432 nsresult GetDefer(PRBool *aDefer);
1433 nsresult SetDefer(PRBool aDefer);
1434 nsresult GetSrc(nsAString *aSrc);
1435 nsresult SetSrc(const nsAString *aSrc);
1436 nsresult GetType(nsAString *aType);
1437 nsresult SetType(const nsAString *aType);
1438 }
1439
1440 [
1441 object,
1442 uuid(a6cf90ab-15b3-11d2-932e-00805f8add32),
1443 local
1444 /* FROZEN */
1445 ]
1446 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1447 {
1448 nsresult GetName(nsAString *aName);
1449 nsresult SetName(const nsAString *aName);
1450 nsresult GetAlign(nsAString *aAlign);
1451 nsresult SetAlign(const nsAString *aAlign);
1452 nsresult GetAlt(nsAString *aAlt);
1453 nsresult SetAlt(const nsAString *aAlt);
1454 nsresult GetBorder(nsAString *aBorder);
1455 nsresult SetBorder(const nsAString *aBorder);
1456 nsresult GetHeight(PRInt32 *aHeight);
1457 nsresult SetHeight(PRInt32 aHeight);
1458 nsresult GetHspace(PRInt32 *aHspace);
1459 nsresult SetHspace(PRInt32 aHspace);
1460 nsresult GetIsMap(PRBool *aIsMap);
1461 nsresult SetIsMap(PRBool aIsMap);
1462 nsresult GetLongDesc(nsAString *aLongDesc);
1463 nsresult SetLongDesc(const nsAString *aLongDesc);
1464 nsresult GetSrc(nsAString *aSrc);
1465 nsresult SetSrc(const nsAString *aSrc);
1466 nsresult GetUseMap(nsAString *aUseMap);
1467 nsresult SetUseMap(const nsAString *aUseMap);
1468 nsresult GetVspace(PRInt32 *aVspace);
1469 nsresult SetVspace(PRInt32 aVspace);
1470 nsresult GetWidth(PRInt32 *aWidth);
1471 nsresult SetWidth(PRInt32 aWidth);
1472 }
1473
1474 [
1475 object,
1476 uuid(a6cf90aa-15b3-11d2-932e-00805f8add32),
1477 local
1478 /* FROZEN */
1479 ]
1480 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1481 {
1482 nsresult GetAccessKey(nsAString *aAccessKey);
1483 nsresult SetAccessKey(const nsAString *aAccessKey);
1484 nsresult GetCharset(nsAString *aCharset);
1485 nsresult SetCharset(const nsAString *aCharset);
1486 nsresult GetCoords(nsAString *aCoords);
1487 nsresult SetCoords(const nsAString *aCoords);
1488 nsresult GetHref(nsAString *aHref);
1489 nsresult SetHref(const nsAString *aHref);
1490 nsresult GetHreflang(nsAString *aHreflang);
1491 nsresult SetHreflang(const nsAString *aHreflang);
1492 nsresult GetName(nsAString *aName);
1493 nsresult SetName(const nsAString *aName);
1494 nsresult GetRel(nsAString *aRel);
1495 nsresult SetRel(const nsAString *aRel);
1496 nsresult GetRev(nsAString *aRev);
1497 nsresult SetRev(const nsAString *aRev);
1498 nsresult GetShape(nsAString *aShape);
1499 nsresult SetShape(const nsAString *aShape);
1500 nsresult GetTabIndex(PRInt32 *aTabIndex);
1501 nsresult SetTabIndex(PRInt32 aTabIndex);
1502 nsresult GetTarget(nsAString *aTarget);
1503 nsresult SetTarget(const nsAString *aTarget);
1504 nsresult GetType(nsAString *aType);
1505 nsresult SetType(const nsAString *aType);
1506 nsresult Blur();
1507 nsresult Focus();
1508 }
1509
1510 [
1511 object,
1512 uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1513 local
1514 /* FROZEN */
1515 ]
1516 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1517 {
1518 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1519 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1520 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1521 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1522 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1523 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1524 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1525 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1526 nsresult GetAlign(nsAString *aAlign);
1527 nsresult SetAlign(const nsAString *aAlign);
1528 nsresult GetBgColor(nsAString *aBgColor);
1529 nsresult SetBgColor(const nsAString *aBgColor);
1530 nsresult GetBorder(nsAString *aBorder);
1531 nsresult SetBorder(const nsAString *aBorder);
1532 nsresult GetCellPadding(nsAString *aCellPadding);
1533 nsresult SetCellPadding(const nsAString *aCellPadding);
1534 nsresult GetCellSpacing(nsAString *aCellSpacing);
1535 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1536 nsresult GetFrame(nsAString *aFrame);
1537 nsresult SetFrame(const nsAString *aFrame);
1538 nsresult GetRules(nsAString *aRules);
1539 nsresult SetRules(const nsAString *aRules);
1540 nsresult GetSummary(nsAString *aSummary);
1541 nsresult SetSummary(const nsAString *aSummary);
1542 nsresult GetWidth(nsAString *aWidth);
1543 nsresult SetWidth(const nsAString *aWidth);
1544 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1545 nsresult DeleteTHead();
1546 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1547 nsresult DeleteTFoot();
1548 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1549 nsresult DeleteCaption();
1550 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1551 nsresult DeleteRow(PRInt32 index);
1552 }
1553
1554 [
1555 object,
1556 uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1557 local
1558 /* FROZEN */
1559 ]
1560 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1561 {
1562 nsresult GetRowIndex(PRInt32 *aRowIndex);
1563 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1564 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1565 nsresult GetAlign(nsAString *aAlign);
1566 nsresult SetAlign(const nsAString *aAlign);
1567 nsresult GetBgColor(nsAString *aBgColor);
1568 nsresult SetBgColor(const nsAString *aBgColor);
1569 nsresult GetCh(nsAString *aCh);
1570 nsresult SetCh(const nsAString *aCh);
1571 nsresult GetChOff(nsAString *aChOff);
1572 nsresult SetChOff(const nsAString *aChOff);
1573 nsresult GetVAlign(nsAString *aVAlign);
1574 nsresult SetVAlign(const nsAString *aVAlign);
1575 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1576 nsresult DeleteCell(PRInt32 index);
1577 }
1578
1579 [
1580 object,
1581 uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1582 local
1583 /* FROZEN */
1584 ]
1585 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1586 {
1587 nsresult GetAlign(nsAString *aAlign);
1588 nsresult SetAlign(const nsAString *aAlign);
1589 nsresult GetFrameBorder(nsAString *aFrameBorder);
1590 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1591 nsresult GetHeight(nsAString *aHeight);
1592 nsresult SetHeight(const nsAString *aHeight);
1593 nsresult GetLongDesc(nsAString *aLongDesc);
1594 nsresult SetLongDesc(const nsAString *aLongDesc);
1595 nsresult GetMarginHeight(nsAString *aMarginHeight);
1596 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1597 nsresult GetMarginWidth(nsAString *aMarginWidth);
1598 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1599 nsresult GetName(nsAString *aName);
1600 nsresult SetName(const nsAString *aName);
1601 nsresult GetScrolling(nsAString *aScrolling);
1602 nsresult SetScrolling(const nsAString *aScrolling);
1603 nsresult GetSrc(nsAString *aSrc);
1604 nsresult SetSrc(const nsAString *aSrc);
1605 nsresult GetWidth(nsAString *aWidth);
1606 nsresult SetWidth(const nsAString *aWidth);
1607 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1608 }
1609
1610 [
1611 object,
1612 uuid(a6cf90b9-15b3-11d2-932e-00805f8add32),
1613 local
1614 /* FROZEN */
1615 ]
1616 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
1617 {
1618 nsresult GetFrameBorder(nsAString *aFrameBorder);
1619 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1620 nsresult GetLongDesc(nsAString *aLongDesc);
1621 nsresult SetLongDesc(const nsAString *aLongDesc);
1622 nsresult GetMarginHeight(nsAString *aMarginHeight);
1623 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1624 nsresult GetMarginWidth(nsAString *aMarginWidth);
1625 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1626 nsresult GetName(nsAString *aName);
1627 nsresult SetName(const nsAString *aName);
1628 nsresult GetNoResize(PRBool *aNoResize);
1629 nsresult SetNoResize(PRBool aNoResize);
1630 nsresult GetScrolling(nsAString *aScrolling);
1631 nsresult SetScrolling(const nsAString *aScrolling);
1632 nsresult GetSrc(nsAString *aSrc);
1633 nsresult SetSrc(const nsAString *aSrc);
1634 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1635 }
1636
1637 [
1638 object,
1639 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1640 local
1641 /* FROZEN */
1642 ]
1643 interface nsIURIContentListener : nsISupports
1644 {
1645 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1646 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1647 nsIStreamListener **aContentHandler, PRBool *_retval);
1648 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1649 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1650 char **aDesiredContentType, PRBool *_retval);
1651 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1652 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1653 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1654 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1655 }
1656
1657 [
1658 object,
1659 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1660 local
1661 /* FROZEN */
1662 ]
1663 interface nsITooltipListener : nsISupports
1664 {
1665 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1666 nsresult OnHideTooltip();
1667 }
1668
1669 [
1670 object,
1671 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c),
1672 local
1673 /* FROZEN */
1674 ]
1675 interface nsIWebBrowser : nsISupports
1676 {
1677 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1678 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1679 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1680 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1681 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1682 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1683 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1684 }
1685
1686 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1687 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1688
1689 [
1690 object,
1691 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1692 local
1693 /* FROZEN */
1694 ]
1695 interface nsIWebBrowserSetup : nsISupports
1696 {
1697 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1698 }
1699
1700 typedef void* nativeWindow;
1701
1702 [
1703 object,
1704 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1705 local
1706 /* NOT_FROZEN */
1707 ]
1708 interface nsIBaseWindow : nsISupports
1709 {
1710 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1711 PRInt32 y, PRInt32 cx, PRInt32 cy);
1712 nsresult Create();
1713 nsresult Destroy();
1714 nsresult SetPosition(PRInt32 x, PRInt32 y);
1715 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1716 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1717 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1718 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1719 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1720 nsresult Repaint(PRBool force);
1721 nsresult GetParentWidget(nsIWidget **aParentWidget);
1722 nsresult SetParentWidget(nsIWidget *aParentWidget);
1723 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1724 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1725 nsresult GetVisibility(PRBool *aVisibility);
1726 nsresult SetVisibility(PRBool aVisibility);
1727 nsresult GetEnabled(PRBool *aEnabled);
1728 nsresult SetEnabled(PRBool aEnabled);
1729 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1730 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1731 nsresult GetMainWidget(nsIWidget **aMainWidget);
1732 nsresult SetFocus();
1733 nsresult GetTitle(PRUnichar **aTitle);
1734 nsresult SetTitle(const PRUnichar *aTitle);
1735 }
1736
1737 cpp_quote("#define LOAD_FLAGS_NONE 0x00000")
1738 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1739
1740 [
1741 object,
1742 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1743 local
1744 /* NOT_FROZEN */
1745 ]
1746 interface nsIWebNavigation : nsISupports
1747 {
1748 nsresult GetCanGoBack(PRBool *aCanGoBack);
1749 nsresult GetCanGoForward(PRBool *aCanGoForward);
1750 nsresult GoBack();
1751 nsresult GoForward();
1752 nsresult GotoIndex(PRInt32 index);
1753 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1754 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1755 nsresult Reload(PRUint32 aReloadFlags);
1756 nsresult Stop(PRUint32 aStopFlags);
1757 nsresult GetDocument(nsIDOMDocument **aDocument);
1758 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1759 nsresult GetReferringURI(nsIURI **aReferringURI);
1760 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1761 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1762 }
1763
1764 [
1765 object,
1766 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1767 local
1768 /* FROZEN */
1769 ]
1770 interface nsIWebProgress : nsISupports
1771 {
1772 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1773 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1774 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1775 nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1776 }
1777
1778 [
1779 object,
1780 uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1781 local
1782 /* NOT_FROZEN */
1783 ]
1784 interface nsIPrintSettings : nsISupports
1785 {
1786 typedef struct { char dummy; } nsIntMargin;
1787
1788 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1789 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1790 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1791 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1792 nsresult Clone(nsIPrintSettings **_retval);
1793 nsresult Assign(nsIPrintSettings *aPS);
1794 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1795 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1796 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1797 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1798 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1799 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1800 nsresult GetEdgeTop(double *aEdgeTop);
1801 nsresult SetEdgeTop(double aEdgeTop);
1802 nsresult GetEdgeLeft(double *aEdgeLeft);
1803 nsresult SetEdgeLeft(double aEdgeLeft);
1804 nsresult GetEdgeBottom(double *aEdgeBottom);
1805 nsresult SetEdgeBottom(double aEdgeBottom);
1806 nsresult GetEdgeRight(double *aEdgeRight);
1807 nsresult SetEdgeRight(double aEdgeRight);
1808 nsresult GetMarginTop(double *aMarginTop);
1809 nsresult SetMarginTop(double aMarginTop);
1810 nsresult GetMarginLeft(double *aMarginLeft);
1811 nsresult SetMarginLeft(double aMarginLeft);
1812 nsresult GetMarginBottom(double *aMarginBottom);
1813 nsresult SetMarginBottom(double aMarginBottom);
1814 nsresult GetMarginRight(double *aMarginRight);
1815 nsresult SetMarginRight(double aMarginRight);
1816 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1817 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1818 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1819 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1820 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1821 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1822 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1823 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1824 nsresult GetScaling(double *aScaling);
1825 nsresult SetScaling(double aScaling);
1826 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1827 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1828 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1829 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1830 nsresult GetPrintRange(PRInt16 *aPrintRange);
1831 nsresult SetPrintRange(PRInt16 aPrintRange);
1832 nsresult GetTitle(PRUnichar **aTitle);
1833 nsresult SetTitle(const PRUnichar *aTitle);
1834 nsresult GetDocURL(PRUnichar **aDocURL);
1835 nsresult SetDocURL(const PRUnichar *aDocURL);
1836 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1837 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1838 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1839 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1840 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1841 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1842 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1843 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1844 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1845 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1846 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1847 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1848 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1849 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1850 nsresult GetIsCancelled(PRBool *aIsCancelled);
1851 nsresult SetIsCancelled(PRBool aIsCancelled);
1852 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1853 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1854 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1855 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1856 nsresult GetPrintSilent(PRBool *aPrintSilent);
1857 nsresult SetPrintSilent(PRBool aPrintSilent);
1858 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1859 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1860 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1861 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1862 nsresult GetPaperName(PRUnichar **aPaperName);
1863 nsresult SetPaperName(const PRUnichar *aPaperName);
1864 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1865 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1866 nsresult GetPaperData(PRInt16 *aPaperData);
1867 nsresult SetPaperData(PRInt16 aPaperData);
1868 nsresult GetPaperWidth(double *aPaperWidth);
1869 nsresult SetPaperWidth(double aPaperWidth);
1870 nsresult GetPaperHeight(double *aPaperHeight);
1871 nsresult SetPaperHeight(double aPaperHeight);
1872 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1873 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1874 nsresult GetPlexName(PRUnichar **aPlexName);
1875 nsresult SetPlexName(const PRUnichar *aPlexName);
1876 nsresult GetColorspace(PRUnichar **aColorspace);
1877 nsresult SetColorspace(const PRUnichar *aColorspace);
1878 nsresult GetResolutionName(PRUnichar **aResolutionName);
1879 nsresult SetResolutionName(const PRUnichar aResolutionName);
1880 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1881 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1882 nsresult GetPrintReversed(PRBool *aPrintReversed);
1883 nsresult SetPrintReversed(PRBool aPrintReversed);
1884 nsresult GetPrintInColor(PRBool *aPrintInColor);
1885 nsresult SetPrintInColor(PRBool aPrintInColor);
1886 nsresult GetOrientation(PRInt32 *aOrientation);
1887 nsresult SetOrientation(PRInt32 aOrientation);
1888 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1889 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1890 nsresult GetNumCopies(PRInt32 *aNumCopies);
1891 nsresult SetNumCopies(PRInt32 aNumCopies);
1892 nsresult GetPrinterName(PRUnichar **aPrinterName);
1893 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1894 nsresult GetPrintToFile(PRBool *aPrintToFile);
1895 nsresult SetPrintToFile(PRBool aPrintToFile);
1896 nsresult GetToFileName(PRUnichar **aToFileName);
1897 nsresult SetToFileName(const PRUnichar *aToFileName);
1898 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1899 nsresult SetOutputFormat(PRInt16 aOutputFormat);
1900 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1901 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1902 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1903 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1904 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1905 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1906 nsresult SetMarginInTwips(nsIntMargin *aMargin);
1907 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1908 nsresult GetMarginInTwips(nsIntMargin *aMargin);
1909 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
1910 nsresult SetupSilentPrinting();
1911 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1912 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1913 }
1914
1915 [
1916 object,
1917 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1918 local
1919 /* FROZEN */
1920 ]
1921 interface nsIWebBrowserPrint : nsISupports
1922 {
1923 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1924 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1925 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1926 nsresult GetDoingPrint(PRBool *aDoingPrint);
1927 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1928 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1929 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1930 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1931 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1932 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1933 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1934 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1935 nsIWebProgressListener *aWPListener);
1936 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1937 nsresult Cancel();
1938 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1939 nsresult ExitPrintPreview();
1940 }
1941
1942 [
1943 object,
1944 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1945 local
1946 /* NOT_FROZEN */
1947 ]
1948 interface nsIScrollable : nsISupports
1949 {
1950 enum {
1951 ScrollOrientation_X = 1,
1952 ScrollOrientation_Y = 2
1953 };
1954
1955 enum {
1956 Scrollbar_Auto = 1,
1957 Scrollbar_Never = 2,
1958 Scrollbar_Always = 3
1959 };
1960
1961 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1962 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1963 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1964 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1965 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1966 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1967 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1968 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1969 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1970 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1971 }
1972
1973 [
1974 object,
1975 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1976 local
1977 /* FROZEN */
1978 ]
1979 interface nsIFile : nsISupports
1980 {
1981 nsresult Append(const nsAString *node);
1982 nsresult AppendNative(const nsAString *node);
1983 nsresult Normalize();
1984 nsresult Create(PRUint32 type, PRUint32 permission);
1985 nsresult GetLeafName(nsAString *aLeafName);
1986 nsresult SetLeafName(const nsAString *aLeafName);
1987 nsresult GetNativeLeafName(nsAString *aLeafName);
1988 nsresult SetNativeLeafName(const nsAString *aLeafName);
1989 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1990 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1991 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1992 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1993 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1994 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1995 nsresult Remove(PRBool recursive);
1996 nsresult GetPermissions(PRUint32 *aPermissions);
1997 nsresult SetPermissions(PRUint32 pPermissions);
1998 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1999 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
2000 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
2001 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
2002 nsresult GetFileSize(PRInt64 *aFileSize);
2003 nsresult SetFileSize(PRInt64 aFileSize);
2004 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
2005 nsresult GetTarget(nsAString *aTarget);
2006 nsresult GetNativeTarget(nsACString *aNativeTarget);
2007 nsresult GetPath(nsAString *aPath);
2008 nsresult GetNativePath(nsACString *aNativePath);
2009 nsresult Exists(PRBool *_retval);
2010 nsresult IsWritable(PRBool *_retval);
2011 nsresult IsReadable(PRBool *_retval);
2012 nsresult IsExecutable(PRBool *_retval);
2013 nsresult IsHidden(PRBool *_retval);
2014 nsresult IsDirectory(PRBool *_retval);
2015 nsresult IsFile(PRBool *_retval);
2016 nsresult IsSymlink(PRBool *_retval);
2017 nsresult IsSpecial(PRBool *_retval);
2018 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2019 nsresult Clone(nsIFile **_retval);
2020 nsresult Equals(nsIFile *inFile, PRBool *_retval);
2021 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
2022 nsresult GetParent(nsIFile **aParent);
2023 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2024 }
2025
2026 [
2027 object,
2028 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
2029 local
2030 /* FROZEN */
2031 ]
2032 interface nsIPrefBranch : nsISupports
2033 {
2034 nsresult GetRoot(char **aRoot);
2035 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2036 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
2037 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
2038 nsresult GetCharPref(const char *aPrefName, char **_retval);
2039 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2040 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2041 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2042 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2043 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2044 nsresult ClearUserPref(const char *aPrefName);
2045 nsresult LockPref(const char *aPrefName);
2046 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
2047 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
2048 nsresult UnlockPref(const char *aPrefName);
2049 nsresult DeleteBranch(const char *aStartingAt);
2050 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2051 nsresult ResetBranch(const char *aStartingAt);
2052 }
2053
2054 [
2055 object,
2056 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2057 local
2058 /* FROZEN */
2059 ]
2060 interface nsIProtocolHandler : nsISupports
2061 {
2062 nsresult GetScheme(nsACString *aScheme);
2063 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2064 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2065 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2066 nsIURI *aBaseURI, nsIURI **_retval);
2067 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2068 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2069 }
2070
2071 [
2072 object,
2073 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2074 local
2075 /* NOT_FROZEN */
2076 ]
2077 interface nsIExternalProtocolHandler : nsIProtocolHandler
2078 {
2079 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2080 }
2081
2082 [
2083 object,
2084 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2085 local
2086 /* FROZEN */
2087 ]
2088 interface nsIIOService : nsISupports
2089 {
2090 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2091 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2092 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2093 nsIURI **_retval);
2094 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2095 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2096 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2097 nsIChannel **_retval);
2098 nsresult GetOffline(PRBool *aOffline);
2099 nsresult SetOffline(PRBool aOffline);
2100 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2101 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2102 }
2103
2104 [
2105 object,
2106 uuid(a50d5516-5c0a-4f08-b427-703ca0c44ac3),
2107 local,
2108 /* NOT_FROZEN */
2109 ]
2110 interface nsINetUtil : nsISupports
2111 {
2112 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2113 PRBool *aHadCharset, nsACString *_retval);
2114 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2115 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2116 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2117 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2118 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2119 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2120 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2121 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2122 }
2123
2124 [
2125 object,
2126 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2127 local
2128 /* FROZEN */
2129 ]
2130 interface nsIWebBrowserFocus : nsISupports
2131 {
2132 nsresult Activate();
2133 nsresult Deactivate();
2134 nsresult SetFocusAtFirstElement();
2135 nsresult SetFocusAtLastElement();
2136 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2137 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2138 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2139 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2140 }
2141
2142 [
2143 object,
2144 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2145 local
2146 /* FROZEN */
2147 ]
2148 interface nsIWebBrowserChrome : nsISupports
2149 {
2150 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2151 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2152 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2153 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2154 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2155 nsresult DestroyBrowserWindow();
2156 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2157 nsresult ShowAsModal();
2158 nsresult IsWindowModal(PRBool *_retval);
2159 nsresult ExitModalEventLoop(nsresult aStatus);
2160 }
2161
2162 [
2163 object,
2164 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2165 local
2166 /* FROZEN */
2167 ]
2168 interface nsIDOMEventListener : nsISupports
2169 {
2170 nsresult HandleEvent(nsIDOMEvent *event);
2171 }
2172
2173 [
2174 object,
2175 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2176 local
2177 /* FROZEN */
2178 ]
2179 interface nsIDOMEventTarget : nsISupports
2180 {
2181 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2182 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2183 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2184 }
2185
2186 [
2187 object,
2188 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
2189 local
2190 /* FROZEN */
2191 ]
2192 interface nsIDOMEvent : nsISupports
2193 {
2194 nsresult GetType(nsAString *aType);
2195 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2196 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2197 nsresult GetEventPhase(PRUint16 *aEventPhase);
2198 nsresult GetBubbles(PRBool *aBubbles);
2199 nsresult GetCancelable(PRBool *aCancelable);
2200 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2201 nsresult StopPropagation();
2202 nsresult PreventDefault();
2203 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2204 }
2205
2206 cpp_quote("#define CONTEXT_NONE 0x00")
2207 cpp_quote("#define CONTEXT_LINK 0x01")
2208 cpp_quote("#define CONTEXT_IMAGE 0x02")
2209 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2210 cpp_quote("#define CONTEXT_TEXT 0x08")
2211 cpp_quote("#define CONTEXT_INPUT 0x10")
2212 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2213
2214 [
2215 object,
2216 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2217 local
2218 /* FROZEN */
2219 ]
2220 interface nsIContextMenuListener : nsISupports
2221 {
2222 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2223 }
2224
2225 [
2226 object,
2227 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2228 local
2229 /* FROZEN */
2230 ]
2231 interface nsIDOMUIEvent : nsIDOMEvent
2232 {
2233 nsresult GetView(nsIDOMAbstractView **aView);
2234 nsresult GetDetail(PRInt32 *aDetail);
2235 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2236 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2237 }
2238
2239 [
2240 object,
2241 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2242 local
2243 /* FROZEN */
2244 ]
2245 interface nsIDOMMouseEvent : nsIDOMUIEvent
2246 {
2247 nsresult GetScreenX(PRInt32 *aScreenX);
2248 nsresult GetScreenY(PRInt32 *aScreenY);
2249 nsresult GetClientX(PRInt32 *aClientX);
2250 nsresult GetClientY(PRInt32 *aClientY);
2251 nsresult GetCtrlKey(PRBool *aCtrlKey);
2252 nsresult GetShiftKey(PRBool *aShiftKey);
2253 nsresult GetAltKey(PRBool *aAltKey);
2254 nsresult GetMetaKey(PRBool *aMetaKey);
2255 nsresult GetButton(PRUint16 *aButton);
2256 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2257 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2258 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2259 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2260 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2261 nsIDOMEventTarget *relatedTargetArg);
2262 }
2263
2264 [
2265 object,
2266 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2267 local
2268 /* NOT_FROZEN */
2269 ]
2270 interface nsIDOMKeyEvent : nsIDOMUIEvent
2271 {
2272 nsresult GetCharCode(PRUint32 *aCharCode);
2273 nsresult GetKeyCode(PRUint32 *aKeyCode);
2274 nsresult GetAltKey(PRBool *aAltKey);
2275 nsresult GetCtrlKey(PRBool *aCtrlKey);
2276 nsresult GetShiftKey(PRBool *aShiftKey);
2277 nsresult GetMetaKey(PRBool *aMetaKey);
2278 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2279 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2280 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2281 PRUint32 charCodeArg);
2282 }
2283
2284 [
2285 object,
2286 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2287 local
2288 /* FROZEN */
2289 ]
2290 interface nsIEmbeddingSiteWindow : nsISupports
2291 {
2292 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2293 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2294 nsresult SetFocus();
2295 nsresult GetVisibility(PRBool *aVisibility);
2296 nsresult SetVisibility(PRBool aVisibility);
2297 nsresult GetTitle(PRUnichar **aTitle);
2298 nsresult SetTitle(const PRUnichar *aTitle);
2299 nsresult GetSiteWindow(void **aSiteWindow);
2300 }
2301
2302 [
2303 object,
2304 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2305 local
2306 /* FROZEN */
2307 ]
2308 interface nsIComponentRegistrar : nsISupports
2309 {
2310 nsresult AutoRegister(nsIFile *aSpec);
2311 nsresult AutoUnregister(nsIFile *aSpec);
2312 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2313 const char *aContractID, nsIFactory *aFactory);
2314 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2315 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2316 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2317 const char *aType);
2318 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2319 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2320 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2321 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2322 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2323 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2324 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2325 }
2326
2327 [
2328 object,
2329 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2330 local
2331 /* FROZEN */
2332 ]
2333 interface nsIPromptService : nsISupports
2334 {
2335 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2336 const PRUnichar *aText);
2337 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2338 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2339 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2340 const PRUnichar *aText, PRBool *_retval);
2341 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2342 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2343 PRBool *_retval);
2344 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2345 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2346 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2347 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2348 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2349 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2350 PRBool *aCheckState, PRBool *_retval);
2351 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2352 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2353 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2354 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2355 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2356 PRBool *aCheckState, PRBool *_retval);
2357 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2358 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2359 PRInt32 *aOutSelection, PRBool *_retval);
2360 }
2361
2362 [
2363 object,
2364 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2365 local
2366 /* FROZEN */
2367 ]
2368 interface nsITooltipTextProvider : nsISupports
2369 {
2370 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2371 }
2372
2373 [
2374 object,
2375 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2376 local
2377 /* FROZEN */
2378 ]
2379 interface nsIProfile : nsISupports
2380 {
2381 nsresult GetProfileCount(PRInt32 *aProfileCount);
2382 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2383 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2384 nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2385 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2386 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2387 nsresult CreateNewProfile(const PRUnichar *profileName,
2388 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2389 PRBool useExistingDir);
2390 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2391 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2392 nsresult CloneProfile(const PRUnichar *profileName);
2393 }
2394
2395 [
2396 object,
2397 uuid(30465632-a777-44cc-90f9-8145475ef999),
2398 local
2399 /* FROZEN */
2400 ]
2401 interface nsIWindowCreator : nsISupports
2402 {
2403 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2404 nsIWebBrowserChrome **_retval);
2405 }
2406
2407 [
2408 object,
2409 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2410 local
2411 /* NOT_FROZEN */
2412 ]
2413 interface nsIWindowCreator2 : nsIWindowCreator
2414 {
2415 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2416 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2417 nsIWebBrowserChrome **_retval);
2418 }
2419
2420 [
2421 object,
2422 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2423 local
2424 /* FROZEN */
2425 ]
2426 interface nsIWindowWatcher : nsISupports
2427 {
2428 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2429 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2430 nsresult RegisterNotification(nsIObserver *aObserver);
2431 nsresult UnregisterNotification(nsIObserver *aObserver);
2432 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2433 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2434 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2435 nsresult SetWindowCreator(nsIWindowCreator *creator);
2436 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2437 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2438 nsIDOMWindow **_retval);
2439 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2440 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2441 }
2442
2443 [
2444 object,
2445 uuid(274cd32e-3675-47e1-9d8a-fc6504ded9ce),
2446 local
2447 /* NOT_FROZEN */
2448 ]
2449 interface nsIEditingSession : nsISupports
2450 {
2451 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2452 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2453 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2454 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2455 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2456 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2457 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2458 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2459 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2460 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2461 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2462 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2463 }
2464
2465 [
2466 object,
2467 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2468 local
2469 /* NOT_FROZEN */
2470 ]
2471 interface nsICommandParams : nsISupports
2472 {
2473 nsresult GetValueType(const char *name, PRInt16 *_retval);
2474 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2475 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2476 nsresult GetDoubleValue(const char *name, double *_retval);
2477 nsresult GetStringValue(const char *name, nsAString *_retval);
2478 nsresult GetCStringValue(const char *name, char **_retval);
2479 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2480 nsresult SetBooleanValue(const char *name, PRBool value);
2481 nsresult SetLongValue(const char *name, PRInt32 value);
2482 nsresult SetDoubleValue(const char *name, double value);
2483 nsresult SetStringValue(const char *name, const nsAString *value);
2484 nsresult SetCStringValue(const char *name, const char *value);
2485 nsresult SetISupportsValue(const char *name, nsISupports *value);
2486 nsresult RemoveValue(const char *name);
2487 nsresult HasMoreElements(PRBool *_retval);
2488 nsresult First();
2489 nsresult GetNext(char **_retval);
2490 }
2491
2492 [
2493 object,
2494 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2495 local
2496 /* NOT_FROZEN */
2497 ]
2498 interface nsICommandManager : nsISupports
2499 {
2500 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2501 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2502 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2503 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2504 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2505 nsICommandParams *aCommandParams);
2506 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2507 nsIDOMWindow *aTargetWindow);
2508 }
2509
2510 [
2511 object,
2512 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2513 local
2514 /* NOT_FROZEN */
2515 ]
2516 interface nsIControllerContext : nsISupports
2517 {
2518 nsresult Init(nsIControllerCommandTable *aCommandTable);
2519 nsresult SetCommandContext(nsISupports *aCommandContext);
2520 }
2521
2522 [
2523 object,
2524 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2525 local
2526 /* NOT_FROZEN */
2527 ]
2528 interface nsIController : nsISupports
2529 {
2530 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2531 nsresult SupportsCommand(const char *command, PRBool *_retval);
2532 nsresult DoCommand(const char *command);
2533 nsresult OnEvent(const char *eventName);
2534 }
2535
2536 [
2537 object,
2538 uuid(34769de0-30d0-4cef-894a-fcd8bb27c4b4),
2539 local
2540 /* NOT_FROZEN */
2541 ]
2542 interface nsIContentSerializer : nsISupports
2543 {
2544 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2545 PRBool aIsWholeDocument);
2546 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2547 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2548 PRInt32 aEndOffset, nsAString *aStr);
2549 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2550 PRInt32 aEndOffset, nsAString *aStr);
2551 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2552 nsAString *aStr);
2553 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2554 nsresult AppendElementStart(nsIDOMElement *aElement, nsIDOMElement *aOriginalElement,
2555 nsAString *aStr);
2556 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2557 nsresult Flush(nsAString *aStr);
2558 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2559 }
2560
2561 [
2562 object,
2563 uuid(96b60ba0-634a-41e4-928e-78ab0b3c4b46),
2564 local
2565 /* NOT_FROZEN */
2566 ]
2567 interface nsIEditor : nsISupports
2568 {
2569 typedef void *nsIPresShellPtr;
2570 typedef void *nsIContentPtr;
2571
2572 nsresult GetSelection([out] nsISelection *_retval);
2573 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2574 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2575 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2576 nsresult PostCreate();
2577 nsresult PreDestroy();
2578 nsresult GetFlags([out] PRUint32 *_retval);
2579 nsresult SetFlags([in] PRUint32 val);
2580 nsresult GetContentsMIMEType([out] char **_retval);
2581 nsresult SetContentsMIMEType([in] const char *val);
2582 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2583 nsresult GetDocument([out] nsIDOMDocument **_retval);
2584 nsresult GetRootElement([out] nsIDOMElement **_retval);
2585 nsresult GetSelectionController([out] nsISelectionController **_retval);
2586 nsresult DeleteSelection([in] PRInt16 action);
2587 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2588 nsresult GetDocumentModified([out] PRBool *_retval);
2589 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2590 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2591 nsresult ResetModificationCount();
2592 nsresult GetModificationCount([out] PRInt32 *_retval);
2593 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2594 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2595 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2596 nsresult DoTransaction([in] nsITransaction *txn);
2597 nsresult EnableUndo([in] PRBool enable);
2598 nsresult Undo([in] PRUint32 count);
2599 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2600 nsresult Redo([in] PRUint32 count);
2601 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2602 nsresult BeginTransaction();
2603 nsresult EndTransaction();
2604 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2605 nsresult EndPlaceHolderTransaction();
2606 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2607 nsresult SetShouldTxnSetSelection([in] PRBool should);
2608 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2609 nsresult SyncRealTimeSpell();
2610 nsresult SetSpellcheckUserOverride(PRBool enable);
2611 nsresult Cut();
2612 nsresult CanCut([out] PRBool *_retval);
2613 nsresult Copy();
2614 nsresult CanCopy([out] PRBool *_retval);
2615 nsresult Paste([in] PRInt32 aSelectionType);
2616 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2617 nsresult SelectAll();
2618 nsresult BeginningOfDocument();
2619 nsresult EndOfDocument();
2620 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2621 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2622 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2623 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2624 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2625 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2626 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2627 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2628 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2629 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2630 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2631 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2632 nsresult DeleteNode([in] nsIDOMNode *child);
2633 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2634 nsresult SwitchTextDirection();
2635 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2636 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2637 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2638 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2639 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2640 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2641 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2642 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2643 nsresult DumpContentTree();
2644 nsresult DebugDumpContent();
2645 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2646 PRBool IsModifiableNode(nsIDOMNode *aNode);
2647 }
2648
2649 [
2650 object,
2651 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2652 local
2653 /* NOT_FROZEN */
2654 ]
2655 interface nsIHTMLEditor : nsISupports
2656 {
2657 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2658 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2659 nsresult RemoveAllDefaultProperties();
2660 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2661 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2662 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2663 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2664 nsresult RemoveAllInlineProperties();
2665 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2666 nsresult IncreaseFontSize();
2667 nsresult DecreaseFontSize();
2668 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2669 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2670 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2671 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2672 nsresult InsertHTML([in] nsAString *aInputString);
2673 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2674 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2675 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);
2676 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2677 nsresult SetDocumentTitle([in] nsAString *aTitle);
2678 nsresult UpdateBaseURL();
2679 nsresult SelectElement([in] nsIDOMElement *aElement);
2680 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2681 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2682 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2683 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2684 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2685 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2686 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2687 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2688 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2689 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2690 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2691 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2692 nsresult RemoveList([in] nsAString *aListType);
2693 nsresult Indent([in] nsAString *aIndent);
2694 nsresult Align([in] nsAString *aAlign);
2695 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2696 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2697 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2698 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2699 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2700 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2701 nsresult SetBackgroundColor([in] nsAString *aColor);
2702 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2703 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2704 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2705 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2706 nsresult SetIsCSSEnabled([in] PRBool prb);
2707 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2708 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2709 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2710 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2711 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2712 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2713 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2714 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2715 }
2716
2717 [
2718 object,
2719 uuid(8adfb831-1053-4a19-884d-bcdad7277b4b),
2720 local
2721 /* NOT_FROZEN */
2722 ]
2723 interface nsIDocShell : nsISupports
2724 {
2725 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
2726 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
2727 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
2728 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
2729 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
2730 nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
2731 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
2732 nsresult PrepareForNewContentModel();
2733 nsresult SetCurrentURI(nsIURI *aURI);
2734 nsresult FirePageHideNotification(PRBool isUnload);
2735 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
2736 nsresult GetPresShell(nsIPresShell **aPresShell);
2737 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
2738 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
2739 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
2740 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
2741 nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
2742 nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
2743 nsresult GetAllowPlugins(PRBool *aAllowPlugins);
2744 nsresult SetAllowPlugins(PRBool aAllowPlugins);
2745 nsresult GetAllowJavascript(PRBool *aAllowJavascript);
2746 nsresult SetAllowJavascript(PRBool aAllowJavascript);
2747 nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
2748 nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
2749 nsresult GetAllowSubframes(PRBool *aAllowSubframes);
2750 nsresult SetAllowSubframes(PRBool aAllowSubframes);
2751 nsresult GetAllowImages(PRBool *aAllowImages);
2752 nsresult SetAllowImages(PRBool aAllowImages);
2753 nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
2754 nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
2755 nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
2756 nsresult GetAppType(PRUint32 *aAppType);
2757 nsresult SetAppType(PRUint32 aAppType);
2758 nsresult GetAllowAuth(PRBool *aAllowAuth);
2759 nsresult SetAllowAuth(PRBool aAllowAuth);
2760 nsresult GetZoom(float *aZoom);
2761 nsresult SetZoom(float aZoom);
2762 nsresult GetMarginWidth(PRInt32 *aMarginWidth);
2763 nsresult SetMarginWidth(PRInt32 aMarginWidth);
2764 nsresult GetMarginHeight(PRInt32 *aMarginHeight);
2765 nsresult SetMarginHeight(PRInt32 aMarginHeight);
2766 nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
2767 nsresult GetBusyFlags(PRUint32 *aBusyFlags);
2768 nsresult GetLoadType(PRUint32 *aLoadType);
2769 nsresult SetLoadType(PRUint32 aLoadType);
2770 nsresult IsBeingDestroyed(PRBool *_retval);
2771 nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
2772 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
2773 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
2774 nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
2775 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
2776 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
2777 nsresult SuspendRefreshURIs();
2778 nsresult ResumeRefreshURIs();
2779 nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
2780 nsresult FinishRestore();
2781 nsresult GetRestoringDocument(PRBool *aRestoringDocument);
2782 nsresult GetUseErrorPages(PRBool *aUseErrorPages);
2783 nsresult SetUseErrorPages(PRBool aUseErrorPages);
2784 nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
2785 nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
2786 nsresult HistoryPurged(PRInt32 numEntries);
2787 nsresult GetSessionStorageForURI(nsIURI *uri, nsIDOMStorage **_retval);
2788 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, PRBool create, nsIDOMStorage **_retval);
2789 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
2790 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
2791 nsresult SetChildOffset(PRUint32 offset);
2792 nsresult GetIsInUnload(PRBool *aIsInUnload);
2793 nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
2794 void DetachEditorFromWindow();
2795 nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
2796 nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
2797 }
2798
2799 [
2800 object,
2801 uuid(365d600b-868a-452a-8de8-f46fad8fee53),
2802 local
2803 /* NOT_FROZEN */
2804 ]
2805 interface nsIMutationObserver : nsISupports
2806 {
2807 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2808 void /*CharacterDataChangeInfo*/ *aInfo);
2809 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2810 void /*CharacterDataChangeInfo*/ *aInfo);
2811 void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2812 nsIAtom *aAttribute, PRInt32 aModType);
2813 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2814 nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask);
2815 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer);
2816 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2817 PRInt32 aIndexInContainer);
2818 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2819 PRInt32 aIndexInContainer);
2820 void NodeWillBeDestroyed(const nsINode *aNode);
2821 void ParentChainChanged(nsIContent *aContent);
2822 }
2823
2824 [
2825 object,
2826 uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2827 local
2828 /* NOT_FROZEN */
2829 ]
2830 interface nsIDocumentObserver : nsIMutationObserver
2831 {
2832 typedef int nsUpdateType;
2833
2834 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2835 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2836 void BeginLoad(nsIDocument *aDocument);
2837 void EndLoad(nsIDocument *aDocument);
2838 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2839 PRInt32 aStateMask);
2840 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2841 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2842 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2843 PRBool aApplicable);
2844 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2845 nsIStyleRule *aNewStyleRule);
2846 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2847 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2848 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2849 void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);
2850 }