1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsIDocShellTreeOwner.idl
3 : */
4 :
5 : #ifndef __gen_nsIDocShellTreeOwner_h__
6 : #define __gen_nsIDocShellTreeOwner_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIDocShellTreeItem; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDocShellTreeOwner */
21 : #define NS_IDOCSHELLTREEOWNER_IID_STR "932f9f93-8e21-4728-a527-cafc64b4d831"
22 :
23 : #define NS_IDOCSHELLTREEOWNER_IID \
24 : {0x932f9f93, 0x8e21, 0x4728, \
25 : { 0xa5, 0x27, 0xca, 0xfc, 0x64, 0xb4, 0xd8, 0x31 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDocShellTreeOwner : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCSHELLTREEOWNER_IID)
31 :
32 : /* nsIDocShellTreeItem findItemWithName (in wstring name, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor); */
33 : NS_SCRIPTABLE NS_IMETHOD FindItemWithName(const PRUnichar * name, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM) = 0;
34 :
35 : /* void contentShellAdded (in nsIDocShellTreeItem aContentShell, in boolean aPrimary, in boolean aTargetable, in AString aID); */
36 : NS_SCRIPTABLE NS_IMETHOD ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary, bool aTargetable, const nsAString & aID) = 0;
37 :
38 : /* void contentShellRemoved (in nsIDocShellTreeItem aContentShell); */
39 : NS_SCRIPTABLE NS_IMETHOD ContentShellRemoved(nsIDocShellTreeItem *aContentShell) = 0;
40 :
41 : /* readonly attribute nsIDocShellTreeItem primaryContentShell; */
42 : NS_SCRIPTABLE NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell) = 0;
43 :
44 : /* void sizeShellTo (in nsIDocShellTreeItem shell, in long cx, in long cy); */
45 : NS_SCRIPTABLE NS_IMETHOD SizeShellTo(nsIDocShellTreeItem *shell, PRInt32 cx, PRInt32 cy) = 0;
46 :
47 : /* void setPersistence (in boolean aPersistPosition, in boolean aPersistSize, in boolean aPersistSizeMode); */
48 : NS_SCRIPTABLE NS_IMETHOD SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode) = 0;
49 :
50 : /* void getPersistence (out boolean aPersistPosition, out boolean aPersistSize, out boolean aPersistSizeMode); */
51 : NS_SCRIPTABLE NS_IMETHOD GetPersistence(bool *aPersistPosition NS_OUTPARAM, bool *aPersistSize NS_OUTPARAM, bool *aPersistSizeMode NS_OUTPARAM) = 0;
52 :
53 : /* readonly attribute unsigned long targetableShellCount; */
54 : NS_SCRIPTABLE NS_IMETHOD GetTargetableShellCount(PRUint32 *aTargetableShellCount) = 0;
55 :
56 : };
57 :
58 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocShellTreeOwner, NS_IDOCSHELLTREEOWNER_IID)
59 :
60 : /* Use this macro when declaring classes that implement this interface. */
61 : #define NS_DECL_NSIDOCSHELLTREEOWNER \
62 : NS_SCRIPTABLE NS_IMETHOD FindItemWithName(const PRUnichar * name, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM); \
63 : NS_SCRIPTABLE NS_IMETHOD ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary, bool aTargetable, const nsAString & aID); \
64 : NS_SCRIPTABLE NS_IMETHOD ContentShellRemoved(nsIDocShellTreeItem *aContentShell); \
65 : NS_SCRIPTABLE NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell); \
66 : NS_SCRIPTABLE NS_IMETHOD SizeShellTo(nsIDocShellTreeItem *shell, PRInt32 cx, PRInt32 cy); \
67 : NS_SCRIPTABLE NS_IMETHOD SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode); \
68 : NS_SCRIPTABLE NS_IMETHOD GetPersistence(bool *aPersistPosition NS_OUTPARAM, bool *aPersistSize NS_OUTPARAM, bool *aPersistSizeMode NS_OUTPARAM); \
69 : NS_SCRIPTABLE NS_IMETHOD GetTargetableShellCount(PRUint32 *aTargetableShellCount);
70 :
71 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
72 : #define NS_FORWARD_NSIDOCSHELLTREEOWNER(_to) \
73 : NS_SCRIPTABLE NS_IMETHOD FindItemWithName(const PRUnichar * name, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM) { return _to FindItemWithName(name, aRequestor, aOriginalRequestor, _retval); } \
74 : NS_SCRIPTABLE NS_IMETHOD ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary, bool aTargetable, const nsAString & aID) { return _to ContentShellAdded(aContentShell, aPrimary, aTargetable, aID); } \
75 : NS_SCRIPTABLE NS_IMETHOD ContentShellRemoved(nsIDocShellTreeItem *aContentShell) { return _to ContentShellRemoved(aContentShell); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell) { return _to GetPrimaryContentShell(aPrimaryContentShell); } \
77 : NS_SCRIPTABLE NS_IMETHOD SizeShellTo(nsIDocShellTreeItem *shell, PRInt32 cx, PRInt32 cy) { return _to SizeShellTo(shell, cx, cy); } \
78 : NS_SCRIPTABLE NS_IMETHOD SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode) { return _to SetPersistence(aPersistPosition, aPersistSize, aPersistSizeMode); } \
79 : NS_SCRIPTABLE NS_IMETHOD GetPersistence(bool *aPersistPosition NS_OUTPARAM, bool *aPersistSize NS_OUTPARAM, bool *aPersistSizeMode NS_OUTPARAM) { return _to GetPersistence(aPersistPosition, aPersistSize, aPersistSizeMode); } \
80 : NS_SCRIPTABLE NS_IMETHOD GetTargetableShellCount(PRUint32 *aTargetableShellCount) { return _to GetTargetableShellCount(aTargetableShellCount); }
81 :
82 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
83 : #define NS_FORWARD_SAFE_NSIDOCSHELLTREEOWNER(_to) \
84 : NS_SCRIPTABLE NS_IMETHOD FindItemWithName(const PRUnichar * name, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindItemWithName(name, aRequestor, aOriginalRequestor, _retval); } \
85 : NS_SCRIPTABLE NS_IMETHOD ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary, bool aTargetable, const nsAString & aID) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContentShellAdded(aContentShell, aPrimary, aTargetable, aID); } \
86 : NS_SCRIPTABLE NS_IMETHOD ContentShellRemoved(nsIDocShellTreeItem *aContentShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContentShellRemoved(aContentShell); } \
87 : NS_SCRIPTABLE NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryContentShell(aPrimaryContentShell); } \
88 : NS_SCRIPTABLE NS_IMETHOD SizeShellTo(nsIDocShellTreeItem *shell, PRInt32 cx, PRInt32 cy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SizeShellTo(shell, cx, cy); } \
89 : NS_SCRIPTABLE NS_IMETHOD SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPersistence(aPersistPosition, aPersistSize, aPersistSizeMode); } \
90 : NS_SCRIPTABLE NS_IMETHOD GetPersistence(bool *aPersistPosition NS_OUTPARAM, bool *aPersistSize NS_OUTPARAM, bool *aPersistSizeMode NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersistence(aPersistPosition, aPersistSize, aPersistSizeMode); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetTargetableShellCount(PRUint32 *aTargetableShellCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetableShellCount(aTargetableShellCount); }
92 :
93 : #if 0
94 : /* Use the code below as a template for the implementation class for this interface. */
95 :
96 : /* Header file */
97 : class nsDocShellTreeOwner : public nsIDocShellTreeOwner
98 : {
99 : public:
100 : NS_DECL_ISUPPORTS
101 : NS_DECL_NSIDOCSHELLTREEOWNER
102 :
103 : nsDocShellTreeOwner();
104 :
105 : private:
106 : ~nsDocShellTreeOwner();
107 :
108 : protected:
109 : /* additional members */
110 : };
111 :
112 : /* Implementation file */
113 : NS_IMPL_ISUPPORTS1(nsDocShellTreeOwner, nsIDocShellTreeOwner)
114 :
115 : nsDocShellTreeOwner::nsDocShellTreeOwner()
116 : {
117 : /* member initializers and constructor code */
118 : }
119 :
120 : nsDocShellTreeOwner::~nsDocShellTreeOwner()
121 : {
122 : /* destructor code */
123 : }
124 :
125 : /* nsIDocShellTreeItem findItemWithName (in wstring name, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor); */
126 : NS_IMETHODIMP nsDocShellTreeOwner::FindItemWithName(const PRUnichar * name, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* void contentShellAdded (in nsIDocShellTreeItem aContentShell, in boolean aPrimary, in boolean aTargetable, in AString aID); */
132 : NS_IMETHODIMP nsDocShellTreeOwner::ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary, bool aTargetable, const nsAString & aID)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* void contentShellRemoved (in nsIDocShellTreeItem aContentShell); */
138 : NS_IMETHODIMP nsDocShellTreeOwner::ContentShellRemoved(nsIDocShellTreeItem *aContentShell)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* readonly attribute nsIDocShellTreeItem primaryContentShell; */
144 : NS_IMETHODIMP nsDocShellTreeOwner::GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* void sizeShellTo (in nsIDocShellTreeItem shell, in long cx, in long cy); */
150 : NS_IMETHODIMP nsDocShellTreeOwner::SizeShellTo(nsIDocShellTreeItem *shell, PRInt32 cx, PRInt32 cy)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* void setPersistence (in boolean aPersistPosition, in boolean aPersistSize, in boolean aPersistSizeMode); */
156 : NS_IMETHODIMP nsDocShellTreeOwner::SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* void getPersistence (out boolean aPersistPosition, out boolean aPersistSize, out boolean aPersistSizeMode); */
162 : NS_IMETHODIMP nsDocShellTreeOwner::GetPersistence(bool *aPersistPosition NS_OUTPARAM, bool *aPersistSize NS_OUTPARAM, bool *aPersistSizeMode NS_OUTPARAM)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* readonly attribute unsigned long targetableShellCount; */
168 : NS_IMETHODIMP nsDocShellTreeOwner::GetTargetableShellCount(PRUint32 *aTargetableShellCount)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* End of implementation class template. */
174 : #endif
175 :
176 :
177 : #endif /* __gen_nsIDocShellTreeOwner_h__ */
|