forked from jonmmorgan/wxwebconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathns_generic.idl
executable file
·3976 lines (3096 loc) · 135 KB
/
ns_generic.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
///////////////////////////////////////////////////////////////////////////////
// Name: nsall.idl
// Purpose: wxwebconnect: embedded web browser control library
// Author: Benjamin I. Williams, Peter Fritz
// Modified by:
// Created: 2006-10-08
// RCS-ID:
// Copyright: (C) Copyright 2006-2010, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1
///////////////////////////////////////////////////////////////////////////////
// To generate an .h file from this .idl file, run the following command
// xpidl -m header nsall.idl
///////////////////////////////////////////////////////////////////////////////
// nsrootidl
///////////////////////////////////////////////////////////////////////////////
%{C++
#if 0
%}
typedef unsigned long nsresult;
typedef unsigned long nsrefcnt;
typedef unsigned long PRUint32;
typedef long PRInt32;
typedef long long PRInt64;
typedef unsigned long long PRTime;
typedef PRInt32 PRBool;
[ref, nsid] native nsIIDRef(nsIID);
[ref, nsid] native nsCIDRef(nsCID);
[ref, utf8string] native AUTF8String(ignored);
[ref, astring] native AString(ignored);
[ref, cstring] native ACString(ignored);
[ref, domstring] native DOMString(ignored);
[nsid] native nsIID(nsIID);
[ref, nsid] native nsIDRef(nsID);
//[ref, nsid] native nsIIDRef(nsIID);
[ptr, nsid] native nsIDPtr(nsID);
[ptr, nsid] native nsIIDPtr(nsIID);
[ptr] native nsQIResult(void);
[nsid] native nsCID(nsCID);
//[ref, nsid] native nsCIDRef(nsCID);
[ptr, nsid] native nsCIDPtr(nsCID);
[ptr] native voidPtr(void);
[ref] native voidPtrRef(void*);
[ptr] native charPtr(char);
[ref] native PRBoolRef(PRBool);
%{C++
#endif
%}
///////////////////////////////////////////////////////////////////////////////
// nsISupports
///////////////////////////////////////////////////////////////////////////////
[scriptable, uuid(00000000-0000-0000-c000-000000000046)]
interface nsISupports
{
void QueryInterface(in nsIIDRef iid,
[iid_is(iid), retval] out nsQIResult result);
[noscript, notxpcom] nsrefcnt AddRef();
[noscript, notxpcom] nsrefcnt Release();
};
///////////////////////////////////////////////////////////////////////////////
// nsISimpleEnumerator
///////////////////////////////////////////////////////////////////////////////
[scriptable, uuid(d1899240-f9d2-11d2-bdd6-000064657374)]
interface nsISimpleEnumerator : nsISupports
{
boolean hasMoreElements();
nsISupports getNext();
};
///////////////////////////////////////////////////////////////////////////////
// nsIFactory
///////////////////////////////////////////////////////////////////////////////
[scriptable, object, uuid(00000001-0000-0000-c000-000000000046)]
interface nsIFactory : nsISupports
{
void createInstance(in nsISupports outer,
in nsIIDRef iid,
[iid_is(iid),retval] out nsQIResult result);
void lockFactory(in boolean lock);
};
///////////////////////////////////////////////////////////////////////////////
// nsIInterfaceRequestor
///////////////////////////////////////////////////////////////////////////////
[scriptable, uuid(033a1470-8b2a-11d3-af88-00a024ffc08c)]
interface nsIInterfaceRequestor : nsISupports
{
void getInterface(in nsIIDRef iid,
[iid_is(iid), retval] out nsQIResult result);
/*
This error is already present on http://developer.mozilla.org/xpcom/api/.
On http://www.xulplanet.com the function reads:
void getInterface (nsIIDRef uuid, out nsQIResult* result)
*/
};
///////////////////////////////////////////////////////////////////////////////
// nsIWeakReference
///////////////////////////////////////////////////////////////////////////////
[scriptable, uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf)]
interface nsIWeakReference : nsISupports
{
void QueryReferent(in nsIIDRef iid,
[iid_is(iid), retval] out nsQIResult result);
};
[scriptable, uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf)]
interface nsISupportsWeakReference : nsISupports
{
nsIWeakReference GetWeakReference();
};
///////////////////////////////////////////////////////////////////////////////
// nsIFile
///////////////////////////////////////////////////////////////////////////////
interface nsISimpleEnumerator;
[scriptable, uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)]
interface nsIFile : nsISupports
{
const unsigned long NORMAL_FILE_TYPE = 0;
const unsigned long DIRECTORY_TYPE = 1;
void append(in AString node);
[noscript] void appendNative(in ACString node);
void normalize();
void create(in PRUint32 type, in PRUint32 permissions);
attribute AString leafName;
[noscript] attribute ACString nativeLeafName;
void copyTo(in nsIFile parent_dir, in AString name);
[noscript] void copyToNative(in nsIFile parent_dir, in ACString name);
void copyToFollowingLinks(in nsIFile parent_dir, in AString name);
[noscript] void copyToFollowingLinksNative(in nsIFile parent_dir,
in ACString name);
void moveTo(in nsIFile parent_dir, in AString name);
[noscript] void moveToNative(in nsIFile parent_dir, in ACString name);
void remove(in boolean recursive);
attribute unsigned long permissions;
attribute unsigned long permissionsOfLink;
attribute PRInt64 lastModifiedTime;
attribute PRInt64 lastModifiedTimeOfLink;
attribute PRInt64 fileSize;
readonly attribute PRInt64 fileSizeOfLink;
readonly attribute AString target;
[noscript] readonly attribute ACString nativeTarget;
readonly attribute AString path;
[noscript] readonly attribute ACString nativePath;
boolean exists();
boolean isWritable();
boolean isReadable();
boolean isExecutable();
boolean isHidden();
boolean isDirectory();
boolean isFile();
boolean isSymlink();
boolean isSpecial();
void createUnique(in PRUint32 type, in PRUint32 permissions);
nsIFile clone();
boolean equals(in nsIFile file);
boolean contains(in nsIFile file, in boolean recurse);
readonly attribute nsIFile parent;
readonly attribute nsISimpleEnumerator directoryEntries;
};
///////////////////////////////////////////////////////////////////////////////
// nsILocalFile
///////////////////////////////////////////////////////////////////////////////
%{C++
struct PRFileDesc;
struct PRLibrary;
%}
[ptr] native PRFileDescStar(PRFileDesc);
[ptr] native PRLibraryStar(PRLibrary);
[ptr] native FILEStar(FILE);
[scriptable, uuid(aa610f20-a889-11d3-8c81-000064657374)]
interface nsILocalFile : nsIFile
{
void initWithPath(in AString file_path);
[noscript] void initWithNativePath(in ACString file_path);
void initWithFile(in nsILocalFile file);
attribute boolean followLinks;
[noscript] PRFileDescStar openNSPRFileDesc(in long flags, in long mode);
[noscript] FILEStar openANSIFileDesc(in string mode);
[noscript] PRLibraryStar load();
void appendRelativePath(in AString rel_path);
[noscript] void appendRelativeNativePath(in ACString rel_path);
attribute ACString persistentDescriptor;
void reveal();
void launch();
ACString getRelativeDescriptor(in nsILocalFile from_file);
void setRelativeDescriptor(in nsILocalFile from_file, in ACString rel_desc);
};
///////////////////////////////////////////////////////////////////////////////
// nsIBadCertListener
///////////////////////////////////////////////////////////////////////////////
interface nsIInterfaceRequestor;
interface nsIInterfaceRequestor;
[scriptable, uuid(f0980f60-ee3d-11d4-998b-00b0d02354a0)]
interface nsIX509Cert : nsISupports
{
// to be filled out later
};
[scriptable, uuid(cfede939-def1-49be-81ed-d401b3a07d1c)]
interface nsISSLStatus : nsISupports
{
readonly attribute nsIX509Cert serverCert;
readonly attribute string cipherName;
readonly attribute unsigned long keyLength;
readonly attribute unsigned long secretKeyLength;
readonly attribute boolean isDomainMismatch;
readonly attribute boolean isNotValidAtThisTime;
readonly attribute boolean isUntrusted;
};
[scriptable, uuid(2c3d268c-ad82-49f3-99aa-e9ffddd7a0dc)]
interface nsIBadCertListener2 : nsISupports
{
boolean notifyCertProblem(in nsIInterfaceRequestor socket_info,
in nsISSLStatus status,
in AUTF8String target_site);
};
[scriptable, uuid(a5ae8b05-a76e-408f-b0ba-02a831265749)]
interface nsIRecentBadCertsService : nsISupports
{
nsISSLStatus getRecentBadCert(in AString host_name_with_port);
void addBadCert(in AString host_name_with_port,
in nsISSLStatus status);
};
[scriptable, uuid(31738d2a-77d3-4359-84c9-4be2f38fb8c5)]
interface nsICertOverrideService : nsISupports
{
const short ERROR_UNTRUSTED = 1;
const short ERROR_MISMATCH = 2;
const short ERROR_TIME = 4;
void rememberValidityOverride(
in ACString host_name,
in PRInt32 port,
in nsIX509Cert cert,
in PRUint32 override_bits,
in boolean temporary);
boolean hasMatchingOverride(
in ACString host_name,
in PRInt32 port,
in nsIX509Cert cert,
out PRUint32 override_bits,
out boolean is_temporary);
boolean getValidityOverride(
in ACString host_name,
in PRInt32 port,
out ACString hash_alg,
out ACString fingerprint,
out PRUint32 override_bits,
out boolean is_temporary);
void clearValidityOverride(
in ACString host_name,
in PRInt32 port);
void getAllOverrideHostsWithPorts(
out PRUint32 count,
[array, size_is(count)] out wstring hosts_with_ports_array);
PRUint32 isCertUsedForOverrides(
in nsIX509Cert cert,
in boolean check_temporaries,
in boolean check_permanents);
};
///////////////////////////////////////////////////////////////////////////////
// nsIBaseWindow
///////////////////////////////////////////////////////////////////////////////
typedef voidPtr nativeWindow;
[ptr] native nsIWidget(nsIWidget);
%{ C++
class nsIWidget;
%}
[scriptable, uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)]
interface nsIBaseWindow : nsISupports
{
[noscript] void initWindow(in nativeWindow parentNativeWindow,
in nsIWidget parentWidget,
in long x,
in long y,
in long cx,
in long cy);
void create();
void destroy();
void setPosition(in long x, in long y);
void getPosition(out long x, out long y);
void setSize(in long cx, in long cy, in boolean repaint);
void getSize(out long cx, out long cy);
void setPositionAndSize(in long x,
in long y,
in long cx,
in long cy,
in boolean repaint);
void getPositionAndSize(out long x,
out long y,
out long cx,
out long cy);
void repaint(in boolean force);
[noscript] attribute nsIWidget parentWidget;
attribute nativeWindow parentNativeWindow;
attribute boolean visibility;
attribute boolean enabled;
attribute boolean blurSuppression;
[noscript] readonly attribute nsIWidget mainWidget;
void setFocus();
attribute wstring title;
};
///////////////////////////////////////////////////////////////////////////////
// nsICancelable
///////////////////////////////////////////////////////////////////////////////
[scriptable, object, uuid(d94ac0a0-bb18-46b8-844e-84159064b0bd)]
interface nsICancelable : nsISupports
{
void cancel(in nsresult reason);
};
///////////////////////////////////////////////////////////////////////////////
// nsIRequest
///////////////////////////////////////////////////////////////////////////////
interface nsILoadGroup;
typedef unsigned long nsLoadFlags;
[scriptable, uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe)]
interface nsIRequest : nsISupports
{
const unsigned long LOAD_NORMAL = 0;
const unsigned long LOAD_BACKGROUND = 1;
const unsigned long INHIBIT_CACHING = 128;
const unsigned long INHIBIT_PERSISTENT_CACHING = 256;
const unsigned long LOAD_BYPASS_CACHE = 512;
const unsigned long LOAD_FROM_CACHE = 1024;
const unsigned long VALIDATE_ALWAYS = 2048;
const unsigned long VALIDATE_NEVER = 4096;
const unsigned long VALIDATE_ONCE_PER_SESSION = 8192;
readonly attribute AUTF8String name;
boolean isPending();
readonly attribute nsresult status;
void cancel(in nsresult status);
void suspend();
void resume();
attribute nsILoadGroup loadGroup;
attribute nsLoadFlags loadFlags;
};
///////////////////////////////////////////////////////////////////////////////
// nsIURI
///////////////////////////////////////////////////////////////////////////////
[scriptable, uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)]
interface nsIURI : nsISupports
{
attribute AUTF8String spec;
readonly attribute AUTF8String prePath;
attribute ACString scheme;
attribute AUTF8String userPass;
attribute AUTF8String username;
attribute AUTF8String password;
attribute AUTF8String hostPort;
attribute AUTF8String host;
attribute long port;
attribute AUTF8String path;
boolean equals(in nsIURI other);
boolean schemeIs(in string scheme);
nsIURI clone();
AUTF8String resolve(in AUTF8String relative_path);
readonly attribute ACString asciiSpec;
readonly attribute ACString asciiHost;
readonly attribute ACString originCharset;
};
///////////////////////////////////////////////////////////////////////////////
// nsIURIFixup
///////////////////////////////////////////////////////////////////////////////
[scriptable, uuid(773081ac-9f81-4bdb-9e7a-5e87b4361f09)]
interface nsIURIFixup : nsISupports
{
const unsigned long FIXUP_FLAG_NONE = 0;
const unsigned long FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP = 1;
const unsigned long FIXUP_FLAGS_MAKE_ALTERNATE_URI = 2;
nsIURI createExposableURI(in nsIURI uri);
nsIURI createFixupURI(in AUTF8String aURIText, in unsigned long fixup_flags);
nsIURI keywordToURI(in AUTF8String keyword);
};
///////////////////////////////////////////////////////////////////////////////
// nsIChannel
///////////////////////////////////////////////////////////////////////////////
interface nsIInterfaceRequestor;
interface nsIInputStream;
interface nsIStreamListener;
[scriptable, uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)]
interface nsIChannel : nsIRequest
{
const unsigned long LOAD_DOCUMENT_URI = 65536;
const unsigned long LOAD_RETARGETED_DOCUMENT_URI = 131072;
const unsigned long LOAD_REPLACE = 262144;
const unsigned long LOAD_INITIAL_DOCUMENT_URI = 524288;
const unsigned long LOAD_TARGETED = 1048576;
attribute nsIURI originalURI;
readonly attribute nsIURI URI;
attribute nsISupports owner;
attribute nsIInterfaceRequestor notificationCallbacks;
readonly attribute nsISupports securityInfo;
attribute ACString contentType;
attribute ACString contentCharset;
attribute long contentLength;
nsIInputStream open();
void asyncOpen(in nsIStreamListener listener, in nsISupports xcontext);
};
///////////////////////////////////////////////////////////////////////////////
// nsIClipboardCommands
///////////////////////////////////////////////////////////////////////////////
[scriptable, uuid(b8100c90-73be-11d2-92a5-00105a1b0d64)]
interface nsIClipboardCommands : nsISupports
{
boolean canCutSelection();
boolean canCopySelection();
boolean canCopyLinkLocation();
boolean canCopyImageLocation();
boolean canCopyImageContents();
boolean canPaste();
void cutSelection();
void copySelection();
void copyLinkLocation();
void copyImageLocation();
void copyImageContents();
void paste();
void selectAll();
void selectNone();
};
///////////////////////////////////////////////////////////////////////////////
// nsIComponentManager
///////////////////////////////////////////////////////////////////////////////
[scriptable, uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae)]
interface nsIComponentManager : nsISupports
{
void getClassObject(in nsCIDRef class_id,
in nsIIDRef iid,
[iid_is(iid),retval] out nsQIResult result);
void getClassObjectByContractID(
in string contract_id,
in nsIIDRef iid,
[iid_is(iid),retval] out nsQIResult result);
void createInstance(in nsCIDRef class_id,
in nsISupports delegate,
in nsIIDRef iid,
[iid_is(iid),retval] out nsQIResult result);
void createInstanceByContractID(
in string contract_id,
in nsISupports delegate,
in nsIIDRef iid,
[iid_is(iid),retval] out nsQIResult result);
};
///////////////////////////////////////////////////////////////////////////////
// nsIComponentRegistrar
///////////////////////////////////////////////////////////////////////////////
interface nsIFactory;
interface nsISimpleEnumerator;
[scriptable, uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)]
interface nsIComponentRegistrar : nsISupports
{
void autoRegister(in nsIFile spec);
void autoUnregister(in nsIFile spec);
void registerFactory(in nsCIDRef class_id,
in string class_name,
in string contract_id,
in nsIFactory factory);
void unregisterFactory(
in nsCIDRef class_id,
in nsIFactory factory);
void registerFactoryLocation(
in nsCIDRef class_id,
in string class_name,
in string contract_id,
in nsIFile file,
in string loader_str,
in string type);
void unregisterFactoryLocation(
in nsCIDRef class_id,
in nsIFile file);
boolean isCIDRegistered(in nsCIDRef class_id);
boolean isContractIDRegistered(in string contract_id);
nsISimpleEnumerator enumerateCIDs();
nsISimpleEnumerator enumerateContractIDs();
string CIDToContractID(in nsCIDRef class_id);
nsCIDPtr contractIDToCID(in string contract_id);
};
///////////////////////////////////////////////////////////////////////////////
// nsIContextMenuListener2
///////////////////////////////////////////////////////////////////////////////
interface nsIContextMenuInfo;
interface nsIDOMEvent;
interface nsIDOMNode;
interface imgIContainer;
[scriptable, uuid(7fb719b3-d804-4964-9596-77cf924ee314)]
interface nsIContextMenuListener2 : nsISupports
{
void onShowContextMenu(in unsigned long context_flags,
in nsIContextMenuInfo utils);
};
[scriptable, uuid(2f977d56-5485-11d4-87e2-0010a4e75ef2)]
interface nsIContextMenuInfo : nsISupports
{
readonly attribute nsIDOMEvent mouseEvent;
readonly attribute nsIDOMNode targetNode;
readonly attribute AString associatedLink;
readonly attribute imgIContainer imageContainer;
readonly attribute nsIURI imageSrc;
readonly attribute imgIContainer backgroundImageContainer;
readonly attribute nsIURI backgroundImageSrc;
};
///////////////////////////////////////////////////////////////////////////////
// nsIDirectoryService
///////////////////////////////////////////////////////////////////////////////
interface nsISimpleEnumerator;
[scriptable, uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c)]
interface nsIDirectoryServiceProvider : nsISupports
{
nsIFile getFile(in string property, out boolean persistent);
};
[scriptable, uuid(2f977d4b-5485-11d4-87e2-0010a4e75ef2)]
interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
{
nsISimpleEnumerator getFiles(in string property);
};
[scriptable, uuid(57a66a60-d43a-11d3-8cc2-00609792278c)]
interface nsIDirectoryService : nsISupports
{
void init();
void registerProvider(in nsIDirectoryServiceProvider provider);
void unregisterProvider(in nsIDirectoryServiceProvider provider);
};
///////////////////////////////////////////////////////////////////////////////
// nsIDocShellTreeItem
///////////////////////////////////////////////////////////////////////////////
interface nsIDocShellTreeOwner;
interface nsIDocShellTreeItem;
[scriptable, uuid(37f1ab73-f224-44b1-82f0-d2834ab1cec0)]
interface nsIDocShellTreeNode : nsISupports
{
readonly attribute long childCount;
void addChild(in nsIDocShellTreeItem child);
void removeChild(in nsIDocShellTreeItem child);
nsIDocShellTreeItem getChildAt(in long index);
nsIDocShellTreeItem findChildWithName(in wstring name,
in boolean recurse,
in boolean same_type,
in nsIDocShellTreeItem requestor,
in nsIDocShellTreeItem original_requestor);
};
[scriptable, uuid(09b54ec1-d98a-49a9-bc95-3219e8b55089)]
interface nsIDocShellTreeItem : nsIDocShellTreeNode
{
attribute wstring name;
boolean nameEquals(in wstring name);
const long typeChrome = 0;
const long typeContent = 1;
const long typeContentWrapper = 2;
const long typeChromeWrapper = 3;
const long typeAll = 2147483647;
attribute long itemType;
readonly attribute nsIDocShellTreeItem parent;
readonly attribute nsIDocShellTreeItem sameTypeParent;
readonly attribute nsIDocShellTreeItem rootTreeItem;
readonly attribute nsIDocShellTreeItem sameTypeRootTreeItem;
nsIDocShellTreeItem findItemWithName(in wstring name,
in nsISupports requestor,
in nsIDocShellTreeItem original_requestor);
readonly attribute nsIDocShellTreeOwner treeOwner;
[noscript] void setTreeOwner(in nsIDocShellTreeOwner tree_owner);
};
///////////////////////////////////////////////////////////////////////////////
// nsIDOMNode
///////////////////////////////////////////////////////////////////////////////
interface nsIDOMNodeList;
interface nsIDOMNamedNodeMap;
interface nsIDOMDocument;
interface DOMException;
[scriptable, uuid(a6cf907c-15b3-11d2-932e-00805f8add32)]
interface nsIDOMNode : nsISupports
{
const unsigned short ELEMENT_NODE = 1;
const unsigned short ATTRIBUTE_NODE = 2;
const unsigned short TEXT_NODE = 3;
const unsigned short CDATA_SECTION_NODE = 4;
const unsigned short ENTITY_REFERENCE_NODE = 5;
const unsigned short ENTITY_NODE = 6;
const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
const unsigned short COMMENT_NODE = 8;
const unsigned short DOCUMENT_NODE = 9;
const unsigned short DOCUMENT_TYPE_NODE = 10;
const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
const unsigned short NOTATION_NODE = 12;
readonly attribute DOMString nodeName;
attribute DOMString nodeValue;
readonly attribute unsigned short nodeType;
readonly attribute nsIDOMNode parentNode;
readonly attribute nsIDOMNodeList childNodes;
readonly attribute nsIDOMNode firstChild;
readonly attribute nsIDOMNode lastChild;
readonly attribute nsIDOMNode previousSibling;
readonly attribute nsIDOMNode nextSibling;
readonly attribute nsIDOMNamedNodeMap attributes;
readonly attribute nsIDOMDocument ownerDocument;
nsIDOMNode insertBefore(in nsIDOMNode new_child, in nsIDOMNode ref_child) raises(DOMException);
nsIDOMNode replaceChild(in nsIDOMNode new_child, in nsIDOMNode old_child) raises(DOMException);
nsIDOMNode removeChild(in nsIDOMNode old_child) raises(DOMException);
nsIDOMNode appendChild(in nsIDOMNode new_child) raises(DOMException);
boolean hasChildNodes();
nsIDOMNode cloneNode(in boolean deep);
void normalize();
boolean isSupported(in DOMString feature, in DOMString version);
readonly attribute DOMString namespaceURI;
attribute DOMString prefix;
readonly attribute DOMString localName;
boolean hasAttributes();
};
///////////////////////////////////////////////////////////////////////////////
// nsIDOM3Node
///////////////////////////////////////////////////////////////////////////////
interface nsIDOMNode;
interface DOMException;
interface nsIVariant;
interface nsIDOMUserDataHandler;
[scriptable, uuid(29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f)]
interface nsIDOM3Node : nsISupports
{
const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
readonly attribute DOMString baseURI;
unsigned short compareDocumentPosition(in nsIDOMNode other) raises(DOMException);
attribute DOMString textContent;
boolean isSameNode(in nsIDOMNode other);
DOMString lookupPrefix(in DOMString namespaceURI);
boolean isDefaultNamespace(in DOMString namespaceURI);
DOMString lookupNamespaceURI(in DOMString prefix);
boolean isEqualNode(in nsIDOMNode arg);
nsISupports getFeature(in DOMString feature, in DOMString version);
nsIVariant setUserData(in DOMString key, in nsIVariant data, in nsIDOMUserDataHandler handler);
nsIVariant getUserData(in DOMString key);
};
///////////////////////////////////////////////////////////////////////////////
// nsIDOMAttr
///////////////////////////////////////////////////////////////////////////////
interface nsIDOMElement;
[scriptable, uuid(a6cf9070-15b3-11d2-932e-00805f8add32)]
interface nsIDOMAttr : nsIDOMNode
{
readonly attribute DOMString name;
readonly attribute boolean specified;
attribute DOMString value;
readonly attribute nsIDOMElement ownerElement;
};
///////////////////////////////////////////////////////////////////////////////
// nsIDOMElement
///////////////////////////////////////////////////////////////////////////////
interface nsIDOMAttr;
interface DOMException;
[scriptable, uuid(a6cf9078-15b3-11d2-932e-00805f8add32)]
interface nsIDOMElement : nsIDOMNode
{
readonly attribute DOMString tagName;
DOMString getAttribute(in DOMString name);
void setAttribute(in DOMString name,
in DOMString value) raises(DOMException);
void removeAttribute(in DOMString name) raises(DOMException);
nsIDOMAttr getAttributeNode(in DOMString name);
nsIDOMAttr setAttributeNode(in nsIDOMAttr new_attr) raises(DOMException);
nsIDOMAttr removeAttributeNode(in nsIDOMAttr old_attr) raises(DOMException);
nsIDOMNodeList getElementsByTagName(in DOMString name);
DOMString getAttributeNS(in DOMString namespace_uri,
in DOMString local_name);
void setAttributeNS(in DOMString namespace_uri,
in DOMString qualified_name,
in DOMString value) raises(DOMException);
void removeAttributeNS(in DOMString namespace_uri,
in DOMString local_name) raises(DOMException);
nsIDOMAttr getAttributeNodeNS(in DOMString namespace_uri,
in DOMString local_name);
nsIDOMAttr setAttributeNodeNS(in nsIDOMAttr newAttr) raises(DOMException);
nsIDOMNodeList getElementsByTagNameNS(in DOMString namespace_uri,
in DOMString local_name);
boolean hasAttribute(in DOMString name);
boolean hasAttributeNS(in DOMString namespace_uri,
in DOMString local_name);
};
///////////////////////////////////////////////////////////////////////////////
// nsIDOMCharacterData
///////////////////////////////////////////////////////////////////////////////
[scriptable, uuid(a6cf9072-15b3-11d2-932e-00805f8add32)]
interface nsIDOMCharacterData : nsIDOMNode
{
attribute DOMString data;
readonly attribute unsigned long length;
DOMString substringData(in unsigned long offset,
in unsigned long count)
raises(DOMException);
void appendData(in DOMString arg)
raises(DOMException);
void insertData(in unsigned long offset,
in DOMString arg)
raises(DOMException);
void deleteData(in unsigned long offset,
in unsigned long count)
raises(DOMException);
void replaceData(in unsigned long offset,
in unsigned long count,
in DOMString arg)
raises(DOMException);
};
///////////////////////////////////////////////////////////////////////////////
// nsIDOMDocument
///////////////////////////////////////////////////////////////////////////////
interface nsIDOMText;
interface nsIDOMDocumentType;
interface nsIDOMDOMImplementation;
interface nsIDOMElement;
interface nsIDOMDocumentFragment;
interface nsIDOMComment;